public Robot() { this.robotConsole = new RobotConsole(); //this.radar = new Radar(Constants.IORadarSensor); this.drive = new Drive(); this.radar = new Radar(Constants.IORadarSensor); }
public Robot(RunMode aRunMode) { this.RunMode = aRunMode; RobotConsole = new RobotConsole(this.RunMode); RobotConsole.SwitchChanged += new EventHandler(RobotConsole_SwitchChanged); initDrive(); Radar = new Radar(this.RunMode); }
public Robot() { this.robotConsole = new RobotConsole(); this.radar = new Radar(Constants.IORadarSensor); this.drive = new Drive(); this.drive.Radar = this.radar; drive.DistanceToShort += Drive_DistanceToShort; }
public Form1() { InitializeComponent(); robotConsole = new RobotConsole(); consoleView.Console = robotConsole; robotConsole[Switches.Switch1].SwitchStateChanged += (s, e) => { robotConsole[Leds.Led1].LedEnabled = robotConsole[Switches.Switch1].SwitchEnabled; }; robotConsole[Switches.Switch2].SwitchStateChanged += (s, e) => { robotConsole[Leds.Led2].LedEnabled = robotConsole[Switches.Switch2].SwitchEnabled; }; robotConsole[Switches.Switch3].SwitchStateChanged += (s, e) => { robotConsole[Leds.Led3].LedEnabled = robotConsole[Switches.Switch3].SwitchEnabled; }; robotConsole[Switches.Switch4].SwitchStateChanged += (s, e) => { robotConsole[Leds.Led4].LedEnabled = robotConsole[Switches.Switch4].SwitchEnabled; }; }
public Form1() { InitializeComponent(); rc = new RobotConsole(RunMode.Real); consoleView1.RobotConsole = rc; rc[Switches.Switch1].SwitchStateChanged += SwitchStateChanged; rc[Switches.Switch2].SwitchStateChanged += SwitchStateChanged; rc[Switches.Switch3].SwitchStateChanged += SwitchStateChanged; rc[Switches.Switch4].SwitchStateChanged += SwitchStateChanged; }
public Robot() { this.robotConsole = new RobotConsole(); this.radar = new Radar(Constants.IORadarSensor); this.drive = new Drive(); //ToDo hier den Logger implementieren bool Logerinit = InitLogger(this.drive); if (!Logerinit) { Console.WriteLine("Fehler, Logger läuft bereits!"); } }
public Form1() { InitializeComponent(); RunMode runMode = RunMode.Real; if (!Constants.IsWinCE) { runMode = RunMode.Virtual; } RobotCtrl.RobotConsole robotConsole1 = new RobotCtrl.RobotConsole(runMode); this.consoleView1.RobotConsole = robotConsole1; this.consoleView2.RobotConsole = robotConsole1; }
public Robot() { this.robotConsole = new RobotConsole(); this.drive = new Drive(); }