Example #1
0
 public Robot()
 {
     this.robotConsole = new RobotConsole();
     //this.radar = new Radar(Constants.IORadarSensor);
     this.drive = new Drive();
     this.radar = new Radar(Constants.IORadarSensor);
 }
Example #2
0
File: Robot.cs Project: maesi/prgsy
        public Robot(RunMode aRunMode)
        {
            this.RunMode = aRunMode;

            RobotConsole = new RobotConsole(this.RunMode);
            RobotConsole.SwitchChanged += new EventHandler(RobotConsole_SwitchChanged);
            initDrive();
            Radar = new Radar(this.RunMode);
        }
Example #3
0
        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;
        }
Example #4
0
        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; };
        }
Example #5
0
        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;
        }
Example #6
0
        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!");
            }
        }
Example #7
0
File: Form1.cs Project: maesi/prgsy
        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;
        }
Example #8
0
 public Robot()
 {
     this.robotConsole = new RobotConsole();
     this.drive        = new Drive();
 }