mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_MSP: Telem_Backend: do not round vertical speed to 1m/s
This commit is contained in:
parent
d00f75203c
commit
f4e2d462f7
@ -820,7 +820,7 @@ MSPCommandResult AP_MSP_Telem_Backend::msp_process_out_altitude(sbuf_t *dst)
|
|||||||
update_home_pos(home_state);
|
update_home_pos(home_state);
|
||||||
|
|
||||||
sbuf_write_u32(dst, home_state.rel_altitude_cm); // relative altitude cm
|
sbuf_write_u32(dst, home_state.rel_altitude_cm); // relative altitude cm
|
||||||
sbuf_write_u16(dst, (int16_t)get_vspeed_ms() * 100); // climb rate cm/s
|
sbuf_write_u16(dst, int16_t(get_vspeed_ms() * 100)); // climb rate cm/s
|
||||||
return MSP_RESULT_ACK;
|
return MSP_RESULT_ACK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user