diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-04-24 22:38:19 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-04-24 22:38:19 +0200 |
commit | 63c50676f9757f18dfca9ec3735ce59a045cea33 (patch) | |
tree | 87e56d81b8033f1b727f2bba57b2d7b010320a03 /src/modules/commander | |
parent | 56592ec77d3863f135c10619b15a0591f957fdbf (diff) | |
download | px4-firmware-63c50676f9757f18dfca9ec3735ce59a045cea33.tar.gz px4-firmware-63c50676f9757f18dfca9ec3735ce59a045cea33.tar.bz2 px4-firmware-63c50676f9757f18dfca9ec3735ce59a045cea33.zip |
MISSION switch renamed to LOITER
Diffstat (limited to 'src/modules/commander')
-rw-r--r-- | src/modules/commander/commander.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index ac433b1c7..67b9d16e8 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -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(); |