mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00

* Active power, SOH * Total and remaining capacity * pre-commit, baby! * Typo * pre-commit wrestling * Temp min/max * Voltage and current * Min/max design voltage * BMS status, max charge/discharge, cell min/max * BMS status cleanup * Pre-commit, we meet again * Cell voltages and minor fixes * Cell number * SOC * Missed a spot * Event handling moved, Wh bugs fixed, time measurements improved * Pre-commit, old friend... * Battery chemistry * Update TESLA-MODEL-3-BATTERY.cpp * Total capacity/Wh max, soem default values * Good ol' pre-comm * Some prio/core cleanup, docs... * Contactor closing variables * Max charge/discharge amps * Data layer variable documentation * USER_SETTINGS comments * Charger comment * Update datalayer.h
52 lines
1.4 KiB
C
52 lines
1.4 KiB
C
#ifndef SYSTEM_SETTINGS_H_
|
|
#define SYSTEM_SETTINGS_H_
|
|
/** TASKS
|
|
*
|
|
* Parameter: TASK_CORE_PRIO
|
|
* Description:
|
|
* Defines the priority of core functionality (CAN, Modbus, etc)
|
|
*
|
|
* Parameter: TASK_CONNECTIVITY_PRIO
|
|
* Description:
|
|
* Defines the priority of various wireless functionality (TCP, MQTT, etc)
|
|
*
|
|
* Parameter: TASK_MODBUS_PRIO
|
|
* Description:
|
|
* Defines the priority of MODBUS handling
|
|
*/
|
|
#define TASK_CORE_PRIO 4
|
|
#define TASK_CONNECTIVITY_PRIO 3
|
|
#define TASK_MODBUS_PRIO 8
|
|
|
|
/** MAX AMOUNT OF CELLS
|
|
*
|
|
* Parameter: MAX_AMOUNT_CELLS
|
|
* Description:
|
|
* Basically the length of the array used to hold individual cell voltages
|
|
*/
|
|
#define MAX_AMOUNT_CELLS 192
|
|
|
|
/** LED
|
|
*
|
|
* Parameter: LED_MODE_DEFAULT
|
|
* Description:
|
|
* The default LED mode. Available modes:
|
|
* CLASSIC - slow up/down ramp
|
|
* FLOW - slow ramp up or down depending on flow of energy
|
|
* HEARTBEAT - Heartbeat-like LED pattern that reacts to the system state with color and BPM
|
|
*
|
|
* Parameter: LED_PERIOD_MS
|
|
* Description:
|
|
* The period of whatever LED mode is active. If CLASSIC, then a ramp up and ramp down will finish in
|
|
* LED_PERIOD_MS milliseconds
|
|
*
|
|
* Parameter: LED_EXECUTION_FREQUENCY
|
|
* Description:
|
|
* Defines how often the LED handling will run, basically the FPS. The animation will honor its overall
|
|
* frequency but the animation will be choppier
|
|
*/
|
|
#define LED_MODE_DEFAULT FLOW
|
|
#define LED_PERIOD_MS 3000
|
|
#define LED_EXECUTION_FREQUENCY 50
|
|
|
|
#endif
|