From 0e34de08fb9403c2817df82fd9143971cacf9381 Mon Sep 17 00:00:00 2001 From: yaoling <165577564@qq.com> Date: Thu, 16 Feb 2017 10:50:20 +0800 Subject: [PATCH] Update send_event.cpp do same as command module --- src/modules/events/send_event.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/events/send_event.cpp b/src/modules/events/send_event.cpp index 638d395ac9..56d465fdf6 100644 --- a/src/modules/events/send_event.cpp +++ b/src/modules/events/send_event.cpp @@ -124,17 +124,17 @@ void SendEvent::process_commands() switch (cmd.command) { case vehicle_command_s::VEHICLE_CMD_PREFLIGHT_CALIBRATION: - if ((int)(cmd.param1) == 2) { //TODO: this (and the others) needs to be specified in mavlink... + if ((int)(cmd.param1) == 3) { //TODO: this (and the others) needs to be specified in mavlink... gyro = true; got_temperature_calibration_command = true; } - if ((int)(cmd.param5) == 2) { + if ((int)(cmd.param5) == 3) { accel = true; got_temperature_calibration_command = true; } - if ((int)(cmd.param7) == 2) { + if ((int)(cmd.param7) == 3) { baro = true; got_temperature_calibration_command = true; }