IQ.Pilot Release Commit @ 322eda2

This commit is contained in:
IQ.Lvbs CI [bot]
2026-07-21 13:54:43 -05:00
parent 5784b1e8b3
commit 215abacc04
717 changed files with 4347 additions and 3060 deletions

View File

@@ -4,7 +4,6 @@ import threading
from openpilot.common.params import Params
from openpilot.system.hardware import HARDWARE
from openpilot.common.swaglog import cloudlog
from openpilot.system.statsd import statlog
CAR_VOLTAGE_LOW_PASS_K = 0.011 # LPF gain for 45s tau (dt/tau / (dt/tau + 1))
@@ -56,7 +55,6 @@ class PowerMonitoring:
# Low-pass battery voltage
self.car_voltage_instant_mV = voltage
self.car_voltage_mV = ((voltage * CAR_VOLTAGE_LOW_PASS_K) + (self.car_voltage_mV * (1 - CAR_VOLTAGE_LOW_PASS_K)))
statlog.gauge("car_voltage", self.car_voltage_mV / 1e3)
# Cap the car battery power and save it in a param every 10-ish seconds
self.car_battery_capacity_uWh = max(self.car_battery_capacity_uWh, 0)