diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-01-11 07:35:40 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-01-11 07:35:40 +0100 |
commit | 65c802862979041efc6014f8c6fac240d49a806b (patch) | |
tree | 0c7c51baf52c1e74fef15d574fe70c0524fa041d /apps/commander | |
parent | 1d4feb690512fbb5e0ae3399c1b1595ca8ddb79a (diff) | |
download | px4-firmware-65c802862979041efc6014f8c6fac240d49a806b.tar.gz px4-firmware-65c802862979041efc6014f8c6fac240d49a806b.tar.bz2 px4-firmware-65c802862979041efc6014f8c6fac240d49a806b.zip |
Working on override channel mapping, allowed trim cal only with RC on
Diffstat (limited to 'apps/commander')
-rw-r--r-- | apps/commander/commander.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/commander/commander.c b/apps/commander/commander.c index 8323932c7..c39c3d6db 100644 --- a/apps/commander/commander.c +++ b/apps/commander/commander.c @@ -277,6 +277,11 @@ void tune_error(void) { void do_rc_calibration(int status_pub, struct vehicle_status_s *status) { + if (current_status.offboard_control_signal_lost) { + mavlink_log_critical(mavlink_fd, "TRIM CAL: ABORT. No RC signal."); + return; + } + int sub_man = orb_subscribe(ORB_ID(manual_control_setpoint)); struct manual_control_setpoint_s sp; orb_copy(ORB_ID(manual_control_setpoint), sub_man, &sp); |