mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 03:43:34 +08:00
Scale throttle outputs by battery level. Fixes #4751
This commit is contained in:
committed by
Lorenz Meier
parent
a94c8d7812
commit
a634c14582
@@ -1956,6 +1956,7 @@ int sdlog2_thread_main(int argc, char *argv[])
|
||||
log_msg.body.log_BATT.current_filtered = buf.battery.current_filtered_a;
|
||||
log_msg.body.log_BATT.discharged = buf.battery.discharged_mah;
|
||||
log_msg.body.log_BATT.remaining = buf.battery.remaining;
|
||||
log_msg.body.log_BATT.scale = buf.battery.scale;
|
||||
log_msg.body.log_BATT.warning = buf.battery.warning;
|
||||
LOGBUFFER_WRITE_AND_COUNT(BATT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user