Exemplo n.º 1
0
 public Robot()
 {
     this.robotConsole = new RobotConsole();
     //this.radar = new Radar(Constants.IORadarSensor);
     this.drive = new Drive();
     this.radar = new Radar(Constants.IORadarSensor);
 }
Exemplo n.º 2
0
Arquivo: Robot.cs Projeto: 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 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; };
        }
Exemplo n.º 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;
        }
Exemplo n.º 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!");
            }
        }
Exemplo n.º 7
0
Arquivo: Form1.cs Projeto: 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;
        }
Exemplo n.º 8
0
 public Robot()
 {
     this.robotConsole = new RobotConsole();
     this.drive        = new Drive();
 }