Skip to content

Commit

Permalink
🔋 Hybrid Battery Saver, Turn off after a Max of 8 Hours
Browse files Browse the repository at this point in the history
  • Loading branch information
krkeegan committed Nov 21, 2023
1 parent a55d14d commit 392a335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/thermald/power_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
CAR_VOLTAGE_LOW_PASS_K = 0.011 # LPF gain for 45s tau (dt/tau / (dt/tau + 1))

# While driving, a battery charges completely in about 30-60 minutes
CAR_BATTERY_CAPACITY_uWh = 30e6
CAR_BATTERY_CAPACITY_uWh = 14e6
CAR_CHARGING_RATE_W = 45

VBATT_PAUSE_CHARGING = 11.8 # Lower limit on the LPF car battery voltage
VBATT_INSTANT_PAUSE_CHARGING = 7.0 # Lower limit on the instant car battery voltage measurements to avoid triggering on instant power loss
MAX_TIME_OFFROAD_S = 30*3600
MAX_TIME_OFFROAD_S = 8*3600
MIN_ON_TIME_S = 3600
DELAY_SHUTDOWN_TIME_S = 300 # Wait at least DELAY_SHUTDOWN_TIME_S seconds after offroad_time to shutdown.
VOLTAGE_SHUTDOWN_MIN_OFFROAD_TIME_S = 60
Expand Down

0 comments on commit 392a335

Please sign in to comment.