From 92c8eac4f2ec2c941d72059cac921c06586966bb Mon Sep 17 00:00:00 2001 From: Tatsuro Sakaguchi Date: Tue, 10 Dec 2024 12:04:06 +0900 Subject: [PATCH] Fix missing member --- src/systems/battery_plugin/LinearBatteryPlugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems/battery_plugin/LinearBatteryPlugin.cc b/src/systems/battery_plugin/LinearBatteryPlugin.cc index 92fb626253..f11fecc063 100644 --- a/src/systems/battery_plugin/LinearBatteryPlugin.cc +++ b/src/systems/battery_plugin/LinearBatteryPlugin.cc @@ -723,7 +723,7 @@ double LinearBatteryPlugin::OnUpdateVoltage( + this->dataPtr->r * this->dataPtr->ismooth; else voltage = this->dataPtr->e0 + this->dataPtr->e1 * ( - 1 - this->dataPtr->q / this->c) + 1 - this->dataPtr->q / this->dataPtr->c) - this->dataPtr->r * this->dataPtr->ismooth; // Estimate state of charge