//Immediately shutdown all controllable items
 public void Shutdown()
 {
     Platform1Led.Reset();
     Platform2Led.Reset();
     Obstacle1Led.Reset();
     Obstacle2Led.Reset();
     HoverLed.Reset();
     StartLed.Reset();
     Motor.EmergencyStop();
 }
 //Turn off all lights and reset motor to the "start" position
 public void Reset()
 {
     Platform1Led.Reset();
     Platform2Led.Reset();
     Obstacle1Led.Reset();
     Obstacle2Led.Reset();
     HoverLed.Reset();
     StartLed.Reset();
     Motor.RollingStop();
 }
Beispiel #3
0
        private void SerialScanTimer_Tick(object sender, EventArgs e)
        {
            if (STMSerial.IsOpen)
            {
                ledMCU.LedIsOn();
            }
            else
            {
                ledMCU.LedIsOff();
            }

            if (M8128Serial.IsOpen)
            {
                ledHDT.LedIsOn();
            }
            else
            {
                ledHDT.LedIsOff();
            }

            if (IsPreReady)
            {
                PreReadyLed.LedIsOn();
            }
            else
            {
                PreReadyLed.LedIsOff();
            }

            if (IsStart)
            {
                StartLed.LedIsOn();
            }
            else
            {
                StartLed.LedIsOff();
            }
        }