mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Dev
This commit is contained in:
parent
a423d617e5
commit
df626c3920
2 changed files with 23 additions and 2 deletions
|
@ -3,6 +3,12 @@
|
|||
/* This file contains all the battery settings and limits */
|
||||
/* They can be defined here, or later on in the WebUI */
|
||||
|
||||
/* */
|
||||
extern volatile uint8_t CAN_BATTERY;
|
||||
extern volatile uint8_t CAN_BATTERY_DOUBLE;
|
||||
extern volatile uint8_t CAN_INVERTER;
|
||||
|
||||
|
||||
/* Charger settings (Optional, when using generator charging) */
|
||||
volatile float CHARGER_SET_HV = 384; // Reasonably appropriate 4.0v per cell charging of a 96s pack
|
||||
volatile float CHARGER_MAX_HV = 420; // Max permissible output (VDC) of charger
|
||||
|
@ -12,8 +18,7 @@ volatile float CHARGER_MAX_A = 11.5; // Max current output (amps) of charge
|
|||
volatile float CHARGER_END_A = 1.0; // Current at which charging is considered complete
|
||||
|
||||
#ifdef WEBSERVER
|
||||
volatile uint8_t AccessPointEnabled =
|
||||
true; //Set to either true/false incase you want to enable direct wifi access point
|
||||
volatile uint8_t AccessPointEnabled = true; //Set to either true/false to enable direct wifi access point
|
||||
std::string ssid = "REPLACE_WITH_YOUR_SSID"; // Maximum of 63 characters;
|
||||
std::string password = "REPLACE_WITH_YOUR_PASSWORD"; // Minimum of 8 characters;
|
||||
const char* ssidAP = "Battery Emulator"; // Maximum of 63 characters;
|
||||
|
|
|
@ -19,6 +19,22 @@ String settings_processor(const String& var) {
|
|||
"<h4 style='color: white;'>Password: ######## <span id='Password'></span> <button "
|
||||
"onclick='editPassword()'>Edit</button></h4>";
|
||||
|
||||
/*
|
||||
If LilyGo used:
|
||||
Battery CAN channel: DISABLED / CAN / ADD-ON CAN MCP2515 / ADD-ON CAN-FD
|
||||
Inverter CAN channel: DISABLED / CAN / ADD-ON CAN MCP2515 / ADD-ON CAN-FD
|
||||
Battery#2 CAN channel: DISABLED / CAN / ADD-ON CAN MCP2515 / ADD-ON CAN-FD
|
||||
If Stark board used
|
||||
Battery CAN channel: DISABLED / CAN / CAN-FD
|
||||
Inverter CAN channel: DISABLED / CAN / CAN-FD
|
||||
Battery#2 CAN channel: DISABLED / CAN / CAN-FD
|
||||
*/
|
||||
|
||||
content +=
|
||||
"<h4 style='color: white;'>Password: ######## <span id='Password'></span> <button "
|
||||
"onclick='editPassword()'>Edit</button></h4>";
|
||||
|
||||
|
||||
// Close the block
|
||||
content += "</div>";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue