From 291f8584882166089c4f14486482e848c28e8d5e Mon Sep 17 00:00:00 2001 From: Fredrik Date: Tue, 19 Aug 2025 07:47:34 +0200 Subject: [PATCH] Default SOC method changed to measured --- Software/src/battery/BYD-ATTO-3-BATTERY.cpp | 6 ------ Software/src/battery/BYD-ATTO-3-BATTERY.h | 8 ++++++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Software/src/battery/BYD-ATTO-3-BATTERY.cpp b/Software/src/battery/BYD-ATTO-3-BATTERY.cpp index 97db58ad..db969772 100644 --- a/Software/src/battery/BYD-ATTO-3-BATTERY.cpp +++ b/Software/src/battery/BYD-ATTO-3-BATTERY.cpp @@ -4,12 +4,6 @@ #include "../datalayer/datalayer_extended.h" #include "../devboard/utils/events.h" -/* Notes -SOC% by default is now ESTIMATED. -If you have a crash-locked pack, See the Wiki for more info on how to attempt an unlock -After battery has been unlocked, you can remove the "USE_ESTIMATED_SOC" from the BYD-ATTO-3-BATTERY.h file -*/ - #define POLL_FOR_BATTERY_VOLTAGE 0x0008 #define POLL_FOR_BATTERY_CURRENT 0x0009 #define POLL_FOR_LOWEST_TEMP_CELL 0x002f diff --git a/Software/src/battery/BYD-ATTO-3-BATTERY.h b/Software/src/battery/BYD-ATTO-3-BATTERY.h index a34c32dd..3d409e84 100644 --- a/Software/src/battery/BYD-ATTO-3-BATTERY.h +++ b/Software/src/battery/BYD-ATTO-3-BATTERY.h @@ -7,8 +7,12 @@ #include "BYD-ATTO-3-HTML.h" #include "CanBattery.h" -#define USE_ESTIMATED_SOC // If enabled, SOC is estimated from pack voltage. Useful for locked packs. \ - // Comment out this only if you know your BMS is unlocked and able to send SOC% +/* Notes +SOC% by default is now MEASURED by BMS. +If you have a crash-locked pack, See the Wiki for more info on how to attempt an unlock. +Remove the comment from "USE_ESTIMATED_SOC" below if you still decide to use a locked battery and want to use estimated SOC. +*/ +//#define USE_ESTIMATED_SOC //Uncomment and configure this line, if you want to filter out a broken temperature sensor (1-10) //Make sure you understand risks associated with disabling. Values can be read via "More Battery info"