Skip to content

Commit

Permalink
AP_ESC_Telem_SITL: re-order fields in AP_ESC_Telem_Backend::Telemetry…
Browse files Browse the repository at this point in the history
…Data struct to save memory
  • Loading branch information
amilcarlucas committed Feb 22, 2024
1 parent 8e4f4cc commit 68fd962
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/AP_ESC_Telem/AP_ESC_Telem_SITL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ void AP_ESC_Telem_SITL::update()

// some fake values so that is_telemetry_active() returns true
TelemetryData t {
.temperature_cdeg = 3200,
.voltage = 16.8f,
.current = 0.8f,
.consumption_mah = 1.0f,
.usage_s = 0,
.last_update_ms = 0,
.temperature_cdeg = 3200,
};

update_telem_data(motor, t,
Expand Down

0 comments on commit 68fd962

Please sign in to comment.