Skip to content

Commit

Permalink
SITL: SIM_Battery: provde dt in voltage filter apply function
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 authored and tridge committed Aug 19, 2024
1 parent e97569d commit ee8a8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/SITL/SIM_Battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void Battery::set_current(float current)
voltage = get_resting_voltage(100 * remaining_Ah / capacity_Ah) - voltage_delta;
}

voltage_filter.apply(voltage);
voltage_filter.apply(voltage, dt);

{
const uint64_t temperature_dt = now - temperature.last_update_micros;
Expand Down

0 comments on commit ee8a8f0

Please sign in to comment.