mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
simulator: rename parameter variable according to convention
This commit is contained in:
@@ -369,7 +369,7 @@ void Simulator::handle_message_hil_sensor(const mavlink_message_t *msg)
|
||||
|
||||
float ibatt = -1.0f; // no current sensor in simulation
|
||||
|
||||
battery_percentage = math::max(battery_percentage, _battery_min_percentage.get() / 100.f);
|
||||
battery_percentage = math::max(battery_percentage, _param_bat_min_pct.get() / 100.f);
|
||||
float vbatt = math::gradual(battery_percentage, 0.f, 1.f, _battery.empty_cell_voltage(), _battery.full_cell_voltage());
|
||||
vbatt *= _battery.cell_count();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user