Remove include.h, does not build yet

This commit is contained in:
Jaakko Haakana 2025-07-23 09:32:53 +03:00
parent 3d3ca6018d
commit 64d1fa418a
153 changed files with 15 additions and 198 deletions

View file

@ -26,7 +26,10 @@
#include "src/devboard/utils/value_mapping.h" #include "src/devboard/utils/value_mapping.h"
#include "src/devboard/webserver/webserver.h" #include "src/devboard/webserver/webserver.h"
#include "src/devboard/wifi/wifi.h" #include "src/devboard/wifi/wifi.h"
#include "src/include.h"
#if !defined(HW_LILYGO) && !defined(HW_STARK) && !defined(HW_3LB) && !defined(HW_DEVKIT)
#error You must select a target hardware in the USER_SETTINGS.h file!
#endif
#ifdef PERIODIC_BMS_RESET_AT #ifdef PERIODIC_BMS_RESET_AT
#include "src/devboard/utils/ntp_time.h" #include "src/devboard/utils/ntp_time.h"

View file

@ -1,5 +1,4 @@
#include "../include.h" #include "BATTERIES.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "CanBattery.h" #include "CanBattery.h"
#include "RS485Battery.h" #include "RS485Battery.h"

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* Do not change code below unless you are sure what you are doing */ /* Do not change code below unless you are sure what you are doing */

View file

@ -2,7 +2,6 @@
#define BMW_I3_BATTERY_H #define BMW_I3_BATTERY_H
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../include.h"
#include "BMW-I3-HTML.h" #include "BMW-I3-HTML.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -1,5 +1,4 @@
#include "BMW-I3-HTML.h" #include "BMW-I3-HTML.h"
#include "../include.h"
#include "BMW-I3-BATTERY.h" #include "BMW-I3-BATTERY.h"
// Helper function for safe array access // Helper function for safe array access

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
// Function to check if a value has gone stale over a specified time period // Function to check if a value has gone stale over a specified time period
bool BmwIXBattery::isStale(int16_t currentValue, uint16_t& lastValue, unsigned long& lastChangeTime) { bool BmwIXBattery::isStale(int16_t currentValue, uint16_t& lastValue, unsigned long& lastChangeTime) {

View file

@ -1,7 +1,6 @@
#ifndef BMW_IX_BATTERY_H #ifndef BMW_IX_BATTERY_H
#define BMW_IX_BATTERY_H #define BMW_IX_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "BMW-IX-HTML.h" #include "BMW-IX-HTML.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -1,5 +1,4 @@
#include "BMW-IX-HTML.h" #include "BMW-IX-HTML.h"
#include "../include.h"
#include "BMW-IX-BATTERY.h" #include "BMW-IX-BATTERY.h"
String BmwIXHtmlRenderer::get_status_html() { String BmwIXHtmlRenderer::get_status_html() {

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
const unsigned char crc8_table[256] = const unsigned char crc8_table[256] =
{ // CRC8_SAE_J1850_ZER0 formula,0x1D Poly,initial value 0x3F,Final XOR value varies { // CRC8_SAE_J1850_ZER0 formula,0x1D Poly,initial value 0x3F,Final XOR value varies

View file

@ -1,7 +1,6 @@
#ifndef BMW_PHEV_BATTERY_H #ifndef BMW_PHEV_BATTERY_H
#define BMW_PHEV_BATTERY_H #define BMW_PHEV_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "BMW-PHEV-HTML.h" #include "BMW-PHEV-HTML.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -1,7 +1,6 @@
#include "BMW-SBOX.h" #include "BMW-SBOX.h"
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../include.h"
uint8_t reverse_bits(uint8_t byte) { uint8_t reverse_bits(uint8_t byte) {
uint8_t reversed = 0; uint8_t reversed = 0;

View file

@ -1,6 +1,5 @@
#ifndef BMW_SBOX_CONTROL_H #ifndef BMW_SBOX_CONTROL_H
#define BMW_SBOX_CONTROL_H #define BMW_SBOX_CONTROL_H
#include "../include.h"
#ifdef BMW_SBOX #ifdef BMW_SBOX
#define SELECTED_SHUNT_CLASS BmwSbox #define SELECTED_SHUNT_CLASS BmwSbox

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* /*
TODOs left for this implementation TODOs left for this implementation

View file

@ -1,7 +1,6 @@
#ifndef BOLT_AMPERA_BATTERY_H #ifndef BOLT_AMPERA_BATTERY_H
#define BOLT_AMPERA_BATTERY_H #define BOLT_AMPERA_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "BOLT-AMPERA-HTML.h" #include "BOLT-AMPERA-HTML.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* Notes /* Notes
SOC% by default is now ESTIMATED. SOC% by default is now ESTIMATED.

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../include.h"
#include "BYD-ATTO-3-HTML.h" #include "BYD-ATTO-3-HTML.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" //For "More battery info" webpage #include "../datalayer/datalayer_extended.h" //For "More battery info" webpage
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
void CellPowerBms::update_values() { void CellPowerBms::update_values() {

View file

@ -1,7 +1,6 @@
#ifndef CELLPOWER_BMS_H #ifndef CELLPOWER_BMS_H
#define CELLPOWER_BMS_H #define CELLPOWER_BMS_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CELLPOWER-HTML.h" #include "CELLPOWER-HTML.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -1,7 +1,6 @@
#include "CHADEMO-BATTERY.h" #include "CHADEMO-BATTERY.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
#include "CHADEMO-SHUNTS.h" #include "CHADEMO-SHUNTS.h"
//This function maps all the values fetched via CAN to the correct parameters used for the inverter //This function maps all the values fetched via CAN to the correct parameters used for the inverter

View file

@ -3,7 +3,6 @@
#include <Arduino.h> #include <Arduino.h>
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../include.h"
#include "CHADEMO-BATTERY-HTML.h" #include "CHADEMO-BATTERY-HTML.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -21,7 +21,6 @@
#include "CHADEMO-SHUNTS.h" #include "CHADEMO-SHUNTS.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
#include "CHADEMO-BATTERY.h" #include "CHADEMO-BATTERY.h"
/* Initial frames received from ISA shunts provide invalid during initialization */ /* Initial frames received from ISA shunts provide invalid during initialization */

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* The raw SOC value sits at 90% when the battery is full, so we should report back 100% once this value is reached /* The raw SOC value sits at 90% when the battery is full, so we should report back 100% once this value is reached
Same goes for low point, when 10% is reached we report 0% */ Same goes for low point, when 10% is reached we report 0% */

View file

@ -1,6 +1,5 @@
#ifndef CMFA_EV_BATTERY_H #ifndef CMFA_EV_BATTERY_H
#define CMFA_EV_BATTERY_H #define CMFA_EV_BATTERY_H
#include "../include.h"
#include "CMFA-EV-HTML.h" #include "CMFA-EV-HTML.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -1,5 +1,4 @@
#include "CanBattery.h" #include "CanBattery.h"
#include "../../src/include.h"
CanBattery::CanBattery(CAN_Speed speed) { CanBattery::CanBattery(CAN_Speed speed) {
can_interface = can_config.battery; can_interface = can_config.battery;

View file

@ -2,7 +2,6 @@
#include <cstdint> #include <cstdint>
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* Do not change code below unless you are sure what you are doing */ /* Do not change code below unless you are sure what you are doing */

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" //For More Battery Info page #include "../datalayer/datalayer_extended.h" //For More Battery Info page
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* TODO: /* TODO:
This integration is still ongoing. Here is what still needs to be done in order to use this battery type This integration is still ongoing. Here is what still needs to be done in order to use this battery type

View file

@ -1,7 +1,6 @@
#ifndef STELLANTIS_ECMP_BATTERY_H #ifndef STELLANTIS_ECMP_BATTERY_H
#define STELLANTIS_ECMP_BATTERY_H #define STELLANTIS_ECMP_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#include "ECMP-HTML.h" #include "ECMP-HTML.h"

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* /*
Can bus @ 500k - all Extended ID, little endian Can bus @ 500k - all Extended ID, little endian

View file

@ -1,7 +1,6 @@
#ifndef FOXESS_BATTERY_H #ifndef FOXESS_BATTERY_H
#define FOXESS_BATTERY_H #define FOXESS_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" //For "More battery info" webpage #include "../datalayer/datalayer_extended.h" //For "More battery info" webpage
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* TODO /* TODO
- Contactor closing: CAN log needed from complete H-CAN of Geely Geometry C vehicle. We are not sure what needs to be sent towards the battery yet to get contactor closing working. DTC readout complains that a "Power CAN BUS Data Missing" message is still missing - Contactor closing: CAN log needed from complete H-CAN of Geely Geometry C vehicle. We are not sure what needs to be sent towards the battery yet to get contactor closing working. DTC readout complains that a "Power CAN BUS Data Missing" message is still missing

View file

@ -2,7 +2,6 @@
#define GEELY_GEOMETRY_C_BATTERY_H #define GEELY_GEOMETRY_C_BATTERY_H
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#include "GEELY-GEOMETRY-C-HTML.h" #include "GEELY-GEOMETRY-C-HTML.h"

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
//Code still work in progress, TODO: //Code still work in progress, TODO:
//Figure out if CAN messages need to be sent to keep the system happy? //Figure out if CAN messages need to be sent to keep the system happy?

View file

@ -1,7 +1,6 @@
#ifndef IMIEV_CZERO_ION_BATTERY_H #ifndef IMIEV_CZERO_ION_BATTERY_H
#define IMIEV_CZERO_ION_BATTERY_H #define IMIEV_CZERO_ION_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* Do not change code below unless you are sure what you are doing */ /* Do not change code below unless you are sure what you are doing */
static unsigned long previousMillisKeepAlive = 0; static unsigned long previousMillisKeepAlive = 0;

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
const unsigned char crc8_table[256] = const unsigned char crc8_table[256] =
{ // CRC8_SAE_J1850_ZER0 formula,0x1D Poly,initial value 0x3F,Final XOR value varies { // CRC8_SAE_J1850_ZER0 formula,0x1D Poly,initial value 0x3F,Final XOR value varies

View file

@ -1,7 +1,6 @@
#ifndef KIA_E_GMP_BATTERY_H #ifndef KIA_E_GMP_BATTERY_H
#define KIA_E_GMP_BATTERY_H #define KIA_E_GMP_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#define ESTIMATE_SOC_FROM_CELLVOLTAGE #define ESTIMATE_SOC_FROM_CELLVOLTAGE

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
void KiaHyundai64Battery:: void KiaHyundai64Battery::
update_values() { //This function maps all the values fetched via CAN to the correct parameters used for modbus update_values() { //This function maps all the values fetched via CAN to the correct parameters used for modbus

View file

@ -3,7 +3,6 @@
#include <Arduino.h> #include <Arduino.h>
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#include "KIA-HYUNDAI-64-HTML.h" #include "KIA-HYUNDAI-64-HTML.h"

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* TODO: /* TODO:
- The HEV battery seems to turn off after 1 minute of use. When this happens SOC% stops updating. - The HEV battery seems to turn off after 1 minute of use. When this happens SOC% stops updating.

View file

@ -1,7 +1,6 @@
#ifndef KIA_HYUNDAI_HYBRID_BATTERY_H #ifndef KIA_HYUNDAI_HYBRID_BATTERY_H
#define KIA_HYUNDAI_HYBRID_BATTERY_H #define KIA_HYUNDAI_HYBRID_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -5,7 +5,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" //For "More battery info" webpage #include "../datalayer/datalayer_extended.h" //For "More battery info" webpage
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* /*
TODO list TODO list

View file

@ -1,7 +1,6 @@
#ifndef MEB_BATTERY_H #ifndef MEB_BATTERY_H
#define MEB_BATTERY_H #define MEB_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#include "MEB-HTML.h" #include "MEB-HTML.h"

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* TODO: /* TODO:
- Get contactor closing working - Get contactor closing working

View file

@ -1,7 +1,6 @@
#ifndef MG_5_BATTERY_H #ifndef MG_5_BATTERY_H
#define MG_5_BATTERY_H #define MG_5_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -1,10 +1,9 @@
#include "../include.h"
#ifdef MG_HS_PHEV_BATTERY_H #ifdef MG_HS_PHEV_BATTERY_H
#include "MG-HS-PHEV-BATTERY.h"
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../communication/contactorcontrol/comm_contactorcontrol.h" #include "../communication/contactorcontrol/comm_contactorcontrol.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "MG-HS-PHEV-BATTERY.h"
/* /*
MG HS PHEV 16.6kWh battery integration MG HS PHEV 16.6kWh battery integration

View file

@ -1,7 +1,6 @@
#ifndef MG_HS_PHEV_BATTERY_H #ifndef MG_HS_PHEV_BATTERY_H
#define MG_HS_PHEV_BATTERY_H #define MG_HS_PHEV_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -4,7 +4,6 @@
#include "../datalayer/datalayer_extended.h" //For "More battery info" webpage #include "../datalayer/datalayer_extended.h" //For "More battery info" webpage
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../devboard/utils/logging.h" #include "../devboard/utils/logging.h"
#include "../include.h"
#include "../charger/CanCharger.h" #include "../charger/CanCharger.h"

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#include "NISSAN-LEAF-HTML.h" #include "NISSAN-LEAF-HTML.h"

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
void findMinMaxCellvoltages(const uint16_t arr[], size_t size, uint16_t& Minimum_Cell_Voltage, void findMinMaxCellvoltages(const uint16_t arr[], size_t size, uint16_t& Minimum_Cell_Voltage,
uint16_t& Maximum_Cell_Voltage) { uint16_t& Maximum_Cell_Voltage) {

View file

@ -1,7 +1,6 @@
#ifndef ORION_BMS_H #ifndef ORION_BMS_H
#define ORION_BMS_H #define ORION_BMS_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
void PylonBattery::update_values() { void PylonBattery::update_values() {

View file

@ -3,7 +3,6 @@
#include <Arduino.h> #include <Arduino.h>
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#ifdef PYLON_BATTERY #ifdef PYLON_BATTERY

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* TODO /* TODO
- LOG files from vehicle needed to determine CAN content needed to send towards battery! - LOG files from vehicle needed to determine CAN content needed to send towards battery!

View file

@ -1,7 +1,6 @@
#ifndef RANGE_ROVER_PHEV_BATTERY_H #ifndef RANGE_ROVER_PHEV_BATTERY_H
#define RANGE_ROVER_PHEV_BATTERY_H #define RANGE_ROVER_PHEV_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* TODO: /* TODO:
There seems to be some values on the Kangoo that differ between the 22/33 kWh version There seems to be some values on the Kangoo that differ between the 22/33 kWh version

View file

@ -1,7 +1,6 @@
#ifndef RENAULT_KANGOO_BATTERY_H #ifndef RENAULT_KANGOO_BATTERY_H
#define RENAULT_KANGOO_BATTERY_H #define RENAULT_KANGOO_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -2,7 +2,6 @@
#include <cstdint> #include <cstdint>
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
int16_t max_value(int16_t* entries, size_t len) { int16_t max_value(int16_t* entries, size_t len) {
int result = INT16_MIN; int result = INT16_MIN;

View file

@ -1,6 +1,5 @@
#ifndef RENAULT_TWIZY_BATTERY_H #ifndef RENAULT_TWIZY_BATTERY_H
#define RENAULT_TWIZY_BATTERY_H #define RENAULT_TWIZY_BATTERY_H
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#ifdef RENAULT_TWIZY_BATTERY #ifdef RENAULT_TWIZY_BATTERY

View file

@ -2,7 +2,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" #include "../datalayer/datalayer_extended.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
void transmit_can_frame(CAN_frame* tx_frame, int interface); void transmit_can_frame(CAN_frame* tx_frame, int interface);

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" //For "More battery info" webpage #include "../datalayer/datalayer_extended.h" //For "More battery info" webpage
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* TODO /* TODO
- Add //NVROL Reset - Add //NVROL Reset

View file

@ -1,6 +1,5 @@
#ifndef RENAULT_ZOE_GEN2_BATTERY_H #ifndef RENAULT_ZOE_GEN2_BATTERY_H
#define RENAULT_ZOE_GEN2_BATTERY_H #define RENAULT_ZOE_GEN2_BATTERY_H
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#include "RENAULT-ZOE-GEN2-HTML.h" #include "RENAULT-ZOE-GEN2-HTML.h"

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
void RjxzsBms::update_values() { void RjxzsBms::update_values() {

View file

@ -1,7 +1,6 @@
#ifndef RJXZS_BMS_H #ifndef RJXZS_BMS_H
#define RJXZS_BMS_H #define RJXZS_BMS_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* Credits go to maciek16c for these findings! /* Credits go to maciek16c for these findings!
https://github.com/maciek16c/hyundai-santa-fe-phev-battery https://github.com/maciek16c/hyundai-santa-fe-phev-battery

View file

@ -2,7 +2,6 @@
#define SANTA_FE_PHEV_BATTERY_H #define SANTA_FE_PHEV_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#ifdef SANTA_FE_PHEV_BATTERY #ifdef SANTA_FE_PHEV_BATTERY

View file

@ -1,7 +1,6 @@
#include "SIMPBMS-BATTERY.h" #include "SIMPBMS-BATTERY.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
void SimpBmsBattery::update_values() { void SimpBmsBattery::update_values() {

View file

@ -1,7 +1,6 @@
#ifndef SIMPBMS_BATTERY_H #ifndef SIMPBMS_BATTERY_H
#define SIMPBMS_BATTERY_H #define SIMPBMS_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -2,7 +2,6 @@
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
void SonoBattery:: void SonoBattery::
update_values() { //This function maps all the values fetched via CAN to the correct parameters used for modbus update_values() { //This function maps all the values fetched via CAN to the correct parameters used for modbus

View file

@ -1,7 +1,6 @@
#ifndef SONO_BATTERY_H #ifndef SONO_BATTERY_H
#define SONO_BATTERY_H #define SONO_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"

View file

@ -4,6 +4,7 @@
#include "src/communication/Transmitter.h" #include "src/communication/Transmitter.h"
#include "src/communication/can/CanReceiver.h" #include "src/communication/can/CanReceiver.h"
#include "src/communication/can/comm_can.h" #include "src/communication/can/comm_can.h"
#include "src/devboard/safety/safety.h"
#include "src/devboard/utils/types.h" #include "src/devboard/utils/types.h"
enum class ShuntType { None = 0, BmwSbox = 1, Highest }; enum class ShuntType { None = 0, BmwSbox = 1, Highest };

View file

@ -1,4 +1,3 @@
#include "../include.h"
#include "Shunt.h" #include "Shunt.h"
CanShunt* shunt = nullptr; CanShunt* shunt = nullptr;

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" //For Advanced Battery Insights webpage #include "../datalayer/datalayer_extended.h" //For Advanced Battery Insights webpage
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
/* Credits: */ /* Credits: */
/* Some of the original CAN frame parsing code below comes from Per Carlen's bms_comms_tesla_model3.py (https://gitlab.com/pelle8/batt2gen24/) */ /* Some of the original CAN frame parsing code below comes from Per Carlen's bms_comms_tesla_model3.py (https://gitlab.com/pelle8/batt2gen24/) */

View file

@ -1,7 +1,6 @@
#ifndef TESLA_BATTERY_H #ifndef TESLA_BATTERY_H
#define TESLA_BATTERY_H #define TESLA_BATTERY_H
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#include "TESLA-HTML.h" #include "TESLA-HTML.h"

View file

@ -1,6 +1,5 @@
#include "TEST-FAKE-BATTERY.h" #include "TEST-FAKE-BATTERY.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../include.h"
static void print_units(const char* header, int value, const char* units) { static void print_units(const char* header, int value, const char* units) {
logging.print(header); logging.print(header);

View file

@ -1,7 +1,6 @@
#ifndef TEST_FAKE_BATTERY_H #ifndef TEST_FAKE_BATTERY_H
#define TEST_FAKE_BATTERY_H #define TEST_FAKE_BATTERY_H
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#ifdef TEST_FAKE_BATTERY #ifdef TEST_FAKE_BATTERY

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" //For "More battery info" webpage #include "../datalayer/datalayer_extended.h" //For "More battery info" webpage
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
void VolvoSpaBattery:: void VolvoSpaBattery::
update_values() { //This function maps all the values fetched via CAN to the correct parameters used for the inverter update_values() { //This function maps all the values fetched via CAN to the correct parameters used for the inverter

View file

@ -1,7 +1,6 @@
#ifndef VOLVO_SPA_BATTERY_H #ifndef VOLVO_SPA_BATTERY_H
#define VOLVO_SPA_BATTERY_H #define VOLVO_SPA_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#include "VOLVO-SPA-HTML.h" #include "VOLVO-SPA-HTML.h"

View file

@ -3,7 +3,6 @@
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../datalayer/datalayer_extended.h" //For "More battery info" webpage #include "../datalayer/datalayer_extended.h" //For "More battery info" webpage
#include "../devboard/utils/events.h" #include "../devboard/utils/events.h"
#include "../include.h"
void VolvoSpaHybridBattery:: void VolvoSpaHybridBattery::
update_values() { //This function maps all the values fetched via CAN to the correct parameters used for the inverter update_values() { //This function maps all the values fetched via CAN to the correct parameters used for the inverter

View file

@ -1,7 +1,6 @@
#ifndef VOLVO_SPA_HYBRID_BATTERY_H #ifndef VOLVO_SPA_HYBRID_BATTERY_H
#define VOLVO_SPA_HYBRID_BATTERY_H #define VOLVO_SPA_HYBRID_BATTERY_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanBattery.h" #include "CanBattery.h"
#include "VOLVO-SPA-HYBRID-HTML.h" #include "VOLVO-SPA-HYBRID-HTML.h"

View file

@ -1,4 +1,3 @@
#include "../include.h"
CanCharger* charger = nullptr; CanCharger* charger = nullptr;

View file

@ -1,7 +1,6 @@
#include "CHEVY-VOLT-CHARGER.h" #include "CHEVY-VOLT-CHARGER.h"
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../include.h"
/* This implements Chevy Volt / Ampera charger support (2011-2015 model years). /* This implements Chevy Volt / Ampera charger support (2011-2015 model years).
* *

View file

@ -2,7 +2,6 @@
#define CHEVYVOLT_CHARGER_H #define CHEVYVOLT_CHARGER_H
#include <Arduino.h> #include <Arduino.h>
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../include.h"
#include "CanCharger.h" #include "CanCharger.h"
#ifdef CHEVYVOLT_CHARGER #ifdef CHEVYVOLT_CHARGER

View file

@ -1,7 +1,6 @@
#include "NISSAN-LEAF-CHARGER.h" #include "NISSAN-LEAF-CHARGER.h"
#include "../communication/can/comm_can.h" #include "../communication/can/comm_can.h"
#include "../datalayer/datalayer.h" #include "../datalayer/datalayer.h"
#include "../include.h"
/* This implements Nissan LEAF PDM charger support. 2013-2024 Gen2/3 PDMs are supported /* This implements Nissan LEAF PDM charger support. 2013-2024 Gen2/3 PDMs are supported
* *

View file

@ -1,7 +1,6 @@
#ifndef NISSANLEAF_CHARGER_H #ifndef NISSANLEAF_CHARGER_H
#define NISSANLEAF_CHARGER_H #define NISSANLEAF_CHARGER_H
#include <Arduino.h> #include <Arduino.h>
#include "../include.h"
#include "CanCharger.h" #include "CanCharger.h"

View file

@ -1,7 +1,6 @@
#include "comm_can.h" #include "comm_can.h"
#include <algorithm> #include <algorithm>
#include <map> #include <map>
#include "../../include.h"
#include "../../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h" #include "../../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
#include "../../lib/pierremolinaro-ACAN2517FD/ACAN2517FD.h" #include "../../lib/pierremolinaro-ACAN2517FD/ACAN2517FD.h"
#include "../../lib/pierremolinaro-acan2515/ACAN2515.h" #include "../../lib/pierremolinaro-acan2515/ACAN2515.h"

View file

@ -1,7 +1,6 @@
#ifndef _OBD_H_ #ifndef _OBD_H_
#define _OBD_H_ #define _OBD_H_
#include "../../include.h"
#include "../../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h" #include "../../lib/miwagner-ESP32-Arduino-CAN/ESP32CAN.h"
void handle_obd_frame(CAN_frame& rx_frame); void handle_obd_frame(CAN_frame& rx_frame);

View file

@ -1,5 +1,4 @@
#include "comm_contactorcontrol.h" #include "comm_contactorcontrol.h"
#include "../../include.h"
#ifdef CONTACTOR_CONTROL #ifdef CONTACTOR_CONTROL
const bool contactor_control_enabled_default = true; const bool contactor_control_enabled_default = true;

View file

@ -1,8 +1,6 @@
#ifndef _COMM_CONTACTORCONTROL_H_ #ifndef _COMM_CONTACTORCONTROL_H_
#define _COMM_CONTACTORCONTROL_H_ #define _COMM_CONTACTORCONTROL_H_
#include "../../include.h"
#include "../../datalayer/datalayer.h" #include "../../datalayer/datalayer.h"
#include "../../devboard/utils/events.h" #include "../../devboard/utils/events.h"

View file

@ -1,5 +1,4 @@
#include "comm_equipmentstopbutton.h" #include "comm_equipmentstopbutton.h"
#include "../../include.h"
STOP_BUTTON_BEHAVIOR equipment_stop_behavior = stop_button_default_behavior; STOP_BUTTON_BEHAVIOR equipment_stop_behavior = stop_button_default_behavior;

View file

@ -2,7 +2,6 @@
#include "../../communication/can/comm_can.h" #include "../../communication/can/comm_can.h"
#include "../../devboard/mqtt/mqtt.h" #include "../../devboard/mqtt/mqtt.h"
#include "../../devboard/wifi/wifi.h" #include "../../devboard/wifi/wifi.h"
#include "../../include.h"
#include "../contactorcontrol/comm_contactorcontrol.h" #include "../contactorcontrol/comm_contactorcontrol.h"
// Parameters // Parameters

View file

@ -1,8 +1,6 @@
#ifndef _COMM_NVM_H_ #ifndef _COMM_NVM_H_
#define _COMM_NVM_H_ #define _COMM_NVM_H_
#include "../../include.h"
#include <limits> #include <limits>
#include "../../datalayer/datalayer.h" #include "../../datalayer/datalayer.h"
#include "../../devboard/utils/events.h" #include "../../devboard/utils/events.h"

View file

@ -1,7 +1,6 @@
#include "precharge_control.h" #include "precharge_control.h"
#include "../../datalayer/datalayer.h" #include "../../datalayer/datalayer.h"
#include "../../datalayer/datalayer_extended.h" #include "../../datalayer/datalayer_extended.h"
#include "../../include.h"
#ifdef PRECHARGE_CONTROL #ifdef PRECHARGE_CONTROL
const bool precharge_control_enabled_default = true; const bool precharge_control_enabled_default = true;

View file

@ -1,8 +1,6 @@
#ifndef _PRECHARGE_CONTROL_H_ #ifndef _PRECHARGE_CONTROL_H_
#define _PRECHARGE_CONTROL_H_ #define _PRECHARGE_CONTROL_H_
#include "../../include.h"
#include "../../devboard/utils/events.h" #include "../../devboard/utils/events.h"
/** /**

View file

@ -1,5 +1,4 @@
#include "comm_rs485.h" #include "comm_rs485.h"
#include "../../include.h"
#include <list> #include <list>

View file

@ -1,4 +1,3 @@
#include "datalayer.h" #include "datalayer.h"
#include "../include.h"
DataLayer datalayer; DataLayer datalayer;

View file

@ -1,4 +1,3 @@
#include "datalayer_extended.h" #include "datalayer_extended.h"
#include "../include.h"
DataLayerExtended datalayer_extended; DataLayerExtended datalayer_extended;

View file

@ -36,7 +36,6 @@
#include <Arduino.h> #include <Arduino.h>
#include <vector> #include <vector>
#include "../../include.h"
#define MQTT_MSG_BUFFER_SIZE (1024) #define MQTT_MSG_BUFFER_SIZE (1024)

View file

@ -1,6 +1,5 @@
#include "safety.h" #include "safety.h"
#include "../../datalayer/datalayer.h" #include "../../datalayer/datalayer.h"
#include "../../include.h"
#include "../utils/events.h" #include "../utils/events.h"
static uint16_t cell_deviation_mV = 0; static uint16_t cell_deviation_mV = 0;

View file

@ -1,5 +1,4 @@
#include "sdcard.h" #include "sdcard.h"
#include "../../include.h"
#include "freertos/ringbuf.h" #include "freertos/ringbuf.h"
File can_log_file; File can_log_file;

View file

@ -1,6 +1,5 @@
#include "events.h" #include "events.h"
#include "../../datalayer/datalayer.h" #include "../../datalayer/datalayer.h"
#include "../../include.h"
#include "../../../USER_SETTINGS.h" #include "../../../USER_SETTINGS.h"

Some files were not shown because too many files have changed in this diff Show more