mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 07:23:33 +08:00
msg: Use the correctly data types on vehicle_command
Lets save a few bytes using the right data types.
This commit is contained in:
committed by
Lorenz Meier
parent
1af5ed9024
commit
a8cfd6f36a
@@ -257,8 +257,8 @@ int SendEvent::custom_command(int argc, char *argv[])
|
||||
}
|
||||
|
||||
vehicle_command_s cmd = {};
|
||||
cmd.target_system = -1;
|
||||
cmd.target_component = -1;
|
||||
cmd.target_system = 0;
|
||||
cmd.target_component = 0;
|
||||
|
||||
cmd.command = vehicle_command_s::VEHICLE_CMD_PREFLIGHT_CALIBRATION;
|
||||
cmd.param1 = (gyro_calib || calib_all) ? vehicle_command_s::PREFLIGHT_CALIBRATION_TEMPERATURE_CALIBRATION : NAN;
|
||||
|
||||
Reference in New Issue
Block a user