aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander
diff options
context:
space:
mode:
authorTickTock- <lukecell@safe-mail.net>2014-04-22 18:23:27 -0700
committerTickTock- <lukecell@safe-mail.net>2014-04-22 18:23:27 -0700
commit7e621070ca0f002e2e1ccd863c31a24166ece0c2 (patch)
tree750cac39cf7cd662bd204943cc5295c4c2ee9ad4 /src/modules/commander
parentd6e6ee34401d79d428c025458940bbbf42f62236 (diff)
downloadpx4-firmware-7e621070ca0f002e2e1ccd863c31a24166ece0c2.tar.gz
px4-firmware-7e621070ca0f002e2e1ccd863c31a24166ece0c2.tar.bz2
px4-firmware-7e621070ca0f002e2e1ccd863c31a24166ece0c2.zip
renamed mission_switch to loiter_switch and assisted_switch to easy_switch
Diffstat (limited to 'src/modules/commander')
-rw-r--r--src/modules/commander/commander.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp
index e7cf2b3fa..ee818d0f5 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();
@@ -1296,7 +1296,7 @@ int commander_thread_main(int argc, char *argv[])
// TODO remove this hack
/* flight termination in manual mode if assisted switch is on easy position */
- if (!status.is_rotary_wing && parachute_enabled && armed.armed && status.main_state == MAIN_STATE_MANUAL && sp_man.assisted_switch == SWITCH_POS_ON) {
+ if (!status.is_rotary_wing && parachute_enabled && armed.armed && status.main_state == MAIN_STATE_MANUAL && sp_man.easy_switch == SWITCH_POS_ON) {
if (TRANSITION_CHANGED == failsafe_state_transition(&status, FAILSAFE_STATE_TERMINATION)) {
tune_positive(armed.armed);
}
@@ -1528,7 +1528,7 @@ set_main_state_rc(struct vehicle_status_s *status, struct manual_control_setpoin
break;
case SWITCH_POS_MIDDLE: // ASSISTED
- if (sp_man->assisted_switch == SWITCH_POS_ON) {
+ if (sp_man->easy_switch == SWITCH_POS_ON) {
res = main_state_transition(status, MAIN_STATE_EASY);
if (res != TRANSITION_DENIED) {
@@ -1545,7 +1545,7 @@ set_main_state_rc(struct vehicle_status_s *status, struct manual_control_setpoin
break; // changed successfully or already in this mode
}
- if (sp_man->assisted_switch != SWITCH_POS_ON) {
+ if (sp_man->easy_switch != SWITCH_POS_ON) {
print_reject_mode(status, "SEATBELT");
}