AP_MSP: Telem_Backend: do not round vertical speed to 1m/s

This commit is contained in:
Michel Pastor 2021-05-25 01:55:54 +02:00 committed by Andrew Tridgell
parent d00f75203c
commit f4e2d462f7
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,7 @@ MSPCommandResult AP_MSP_Telem_Backend::msp_process_out_altitude(sbuf_t *dst)
update_home_pos(home_state);
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;
}