events: refactor temperature_calibration command to take options and use a single vehicle_command

This makes it easier to start calibration for all sensors at once.
This commit is contained in:
Beat Küng
2017-02-02 15:42:09 +01:00
committed by Lorenz Meier
parent 603cd1e6dc
commit b6f3cf9425
3 changed files with 62 additions and 82 deletions
+1 -1
View File
@@ -3978,7 +3978,7 @@ void *commander_low_prio_loop(void *arg)
answer_command(cmd, vehicle_command_s::VEHICLE_CMD_RESULT_ACCEPTED, command_ack_pub, command_ack);
calib_ret = do_gyro_calibration(&mavlink_log_pub);
} else if ((int)(cmd.param1) == 2) {
} else if ((int)(cmd.param1) == 2 || (int)(cmd.param5) == 2 || (int)(cmd.param7) == 2) {
/* temperature calibration: handled in events module */
break;