mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 00:13:59 -04:00
AP_MSP: Telem_Backend: fix temperature
This commit is contained in:
parent
1b84852d79
commit
0090d8b1c0
@ -894,7 +894,7 @@ MSPCommandResult AP_MSP_Telem_Backend::msp_process_out_esc_sensor_data(sbuf_t *d
|
||||
float rpm = 0.0f;
|
||||
telem.get_rpm(i, rpm);
|
||||
telem.get_temperature(i, temp);
|
||||
sbuf_write_u8(dst, uint8_t(temp)); // deg
|
||||
sbuf_write_u8(dst, uint8_t(temp / 100)); // deg
|
||||
sbuf_write_u16(dst, uint16_t(rpm * 0.1));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user