Streamlined ar drone interface, removed a lot of old cruft, preparing for generic multirotor control

This commit is contained in:
Lorenz Meier
2012-08-12 01:25:41 +02:00
parent 22c1a03af7
commit 5adb691f89
26 changed files with 2339 additions and 329 deletions
+3 -1
View File
@@ -1092,8 +1092,10 @@ int commander_main(int argc, char *argv[])
last_print_time = hrt_absolute_time();
}
/* flag as lost and update interval since when the signal was lost (to initiate RTL after some time) */
current_status.rc_signal_lost = true;
current_status.rc_signal_cutting_off = true;
current_status.rc_signal_lost_interval = hrt_absolute_time() - rc.timestamp;
/* if the RC signal is gone for a full second, consider it lost */
if (current_status.rc_signal_lost_interval > 1000000) current_status.rc_signal_lost = true;
}
/* End mode switch */