/// <summary> /// Testing method for MotorDriverL298 module (function never returns) /// </summary> static void TestMotor() { MotorDriverL298 motor = new MotorDriverL298(FEZRaptor.Socket18.PwmPin.Controller0.Id, FEZRaptor.Socket18.PwmPin.Controller1.Id, FEZRaptor.Socket18.PwmPin.Controller0.PC18, FEZRaptor.Socket18.PwmPin.Controller1.PC19, FEZRaptor.Socket18.Pin6, FEZRaptor.Socket18.Pin9); motor.SetSpeed(MotorDriverL298.Motor.Motor1, -0.8); motor.SetSpeed(MotorDriverL298.Motor.Motor2, -0.8); Thread.Sleep(Timeout.Infinite); }
public Train(MotorDriverL298 motor) { Engine = motor; Engine.DebugPrintEnabled = true; CurrentStation = null; if (CurrentStation == null) { Lost = true; } }
public Motor(MotorDriverL298 motorDriverL298, BreakOut breakOut, MulticolorLED multicolorLED2) { // TODO: Complete member initialization this.motorDriverL298 = motorDriverL298; this.breakOut = breakOut; this.multicolorLED2 = multicolorLED2; this.lastAction = 0; this.counter = 0; this.moveTimer.Tick += new Gadgeteer.Timer.TickEventHandler(moveTimer_Tick); this.stopTimer.Tick += new Gadgeteer.Timer.TickEventHandler(stopTimer_Tick); }
public LanceurBalle(int socket) : base(socket) { this.moteur = new MotorDriverL298(socket); }