Update send_event.cpp

do same as command module
This commit is contained in:
yaoling
2017-02-16 10:50:20 +08:00
committed by Lorenz Meier
parent 9bc5da6d2d
commit 0e34de08fb
+3 -3
View File
@@ -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;
}