/** * This function resets the variables (chronometer sequence, flight’s * * <p>Boolean ..) and then start Piloting threads, which use * * <p>EnvoiTrameUDP() function to send the AT command. */ public void decollage() { mThreads.bWatchDog = false; iVal = 1; iSecondeU = 0; iSecondeD = 0; iMinuteU = 0; iMinuteD = 0; icSecondeU = 0; icSecondeD = 0; AttenteMs(50); mThreads.Startdecollage(); AttenteMs(50); mThreads.StartPilotage(); mScheduleTaskExecutor.scheduleAtFixedRate(mThreads.mTaskChrono, 0, 10, TimeUnit.MILLISECONDS); }