mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 14:00:34 +08:00
esc_report: change esc_temperature field to allow negative values
Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
7d7200cf2f
commit
fa4fc5f347
@@ -82,7 +82,8 @@ private:
|
||||
for (int esc_index = 0; esc_index < batch_size ; esc_index++) {
|
||||
msg.failure_flags[esc_index] = esc_status.esc[esc_index].failures;
|
||||
msg.error_count[esc_index] = esc_status.esc[esc_index].esc_errorcount;
|
||||
msg.temperature[esc_index] = esc_status.esc[esc_index].esc_temperature;
|
||||
msg.temperature[esc_index] = static_cast<int16_t>(esc_status.esc[esc_index].esc_temperature *
|
||||
100.f); // convert to centiDegrees
|
||||
}
|
||||
|
||||
mavlink_msg_esc_info_send_struct(_mavlink->get_channel(), &msg);
|
||||
|
||||
Reference in New Issue
Block a user