mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 17:13:34 +08:00
msg landing_gear: change type to int8
This commit is contained in:
committed by
Dennis Mannhart
parent
ee41e3181f
commit
aac9221d95
@@ -773,7 +773,7 @@ MulticopterAttitudeControl::publish_actuator_controls()
|
||||
_actuators.control[1] = (PX4_ISFINITE(_att_control(1))) ? _att_control(1) : 0.0f;
|
||||
_actuators.control[2] = (PX4_ISFINITE(_att_control(2))) ? _att_control(2) : 0.0f;
|
||||
_actuators.control[3] = (PX4_ISFINITE(_thrust_sp)) ? _thrust_sp : 0.0f;
|
||||
_actuators.control[7] = _landing_gear_state.landing_gear;
|
||||
_actuators.control[7] = (float)_landing_gear_state.landing_gear;
|
||||
_actuators.timestamp = hrt_absolute_time();
|
||||
_actuators.timestamp_sample = _sensor_gyro.timestamp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user