MISSION switch renamed to LOITER

This commit is contained in:
Anton Babushkin
2014-04-24 22:38:19 +02:00
parent 56592ec77d
commit 63c50676f9
5 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -1231,12 +1231,12 @@ int commander_thread_main(int argc, char *argv[])
} else {
/* MISSION switch */
if (sp_man.mission_switch == SWITCH_POS_ON) {
if (sp_man.loiter_switch == SWITCH_POS_ON) {
/* stick is in LOITER position */
status.set_nav_state = NAV_STATE_LOITER;
status.set_nav_state_timestamp = hrt_absolute_time();
} else if (sp_man.mission_switch != SWITCH_POS_NONE) {
} else if (sp_man.loiter_switch != SWITCH_POS_NONE) {
/* stick is in MISSION position */
status.set_nav_state = NAV_STATE_MISSION;
status.set_nav_state_timestamp = hrt_absolute_time();