Ejemplo n.º 1
0
  /**
   * This function stops the steering threads using a boolean, it stops the
   *
   * <p>timer and starts the Atterissage and Watchdog threads (the emergency landing
   *
   * <p>function is the same, only the thread and thus the associated command
   *
   * <p>change).
   */
  public void atterissage() {

    mScheduleTaskExecutor.shutdownNow();
    mScheduleTaskExecutor = Executors.newSingleThreadScheduledExecutor();
    mThreads.bWatchDog = true;

    AttenteMs(50);

    mThreads.StartAtterissage();
    AttenteMs(50);
    mThreads.StartWatchDog();
  }