Commit graph

103 commits

Author SHA1 Message Date
josiahhiggs
ec1d0cf990 Update TESLA-BATTERY.cpp 2024-12-30 09:34:24 +13:00
lenvm
1a1ccd3069 update function name map_can_frame_to_variable_battery2() to handle_incoming_can_frame_battery2() 2024-12-29 21:09:41 +01:00
josiahhiggs
f7033b59d0 Update TESLA-BATTERY.cpp 2024-12-30 08:34:00 +13:00
josiahhiggs
12745d104e Update TESLA-BATTERY.cpp 2024-12-30 08:23:40 +13:00
josiahhiggs
9ba6a9691e Update TESLA-BATTERY.cpp 2024-12-30 08:05:53 +13:00
josiahhiggs
3503447899 Update TESLA-BATTERY.cpp 2024-12-30 07:52:29 +13:00
josiahhiggs
06a1eb061e Update TESLA-BATTERY.cpp
merge conflicts and compile fix
2024-12-30 07:52:11 +13:00
josiahhiggs
baf90931bd
Merge branch 'dalathegreat:main' into enhancement/tesla-safety-check 2024-12-30 07:38:57 +13:00
lenvm
eb4e5bc2b8 update function name map_can_frame_to_variable_battery() to handle_incoming_can_frame_battery() 2024-12-29 18:30:12 +01:00
lenvm
0b096010c1 reword functions in CAN communication 2024-12-29 18:30:10 +01:00
josiahhiggs
1bbbaacb70 Update TESLA-BATTERY.cpp 2024-12-29 23:02:32 +13:00
josiahhiggs
a0907b7ef6 Update TESLA-BATTERY.cpp
Update starting cell voltage to 3300mV, update starting pack energy to 0kWh,  add cellvoltageRead to 0x332, add check of cellvoltageRead in send_can.
2024-12-29 23:02:17 +13:00
josiahhiggs
a91e4845c9 Merge branch 'enhancement/tesla-safety-check' of https://github.com/josiahhiggs/Battery-Emulator into enhancement/tesla-safety-check 2024-12-29 22:18:32 +13:00
josiahhiggs
7b67eab81d Update TESLA-BATTERY.cpp 2024-12-28 09:11:54 +13:00
josiahhiggs
f27408b2f3 Update TESLA-BATTERY.cpp
Update 0x221 send time to 50ms. Adjust default values before CAN mapping cell voltage, remove delay that was not working.
2024-12-28 09:11:04 +13:00
josiahhiggs
22c8d7dbe3 Update TESLA-BATTERY.cpp 2024-12-26 13:03:03 +13:00
josiahhiggs
fc90d3eca9 Update TESLA-BATTERY.cpp
Change location of delay
2024-12-26 13:02:35 +13:00
josiahhiggs
3ef5bec6e2 Add delay
adding 3s delay to allow cell voltage min/max to be read before transmit_can to stop false under/over cell voltage events.
2024-12-26 12:35:28 +13:00
josiahhiggs
aadd9df470 Add delay
adding 3s delay to allow cell voltage min/max to be read before transmit_can to stop false under/over cell voltage events.
2024-12-26 12:33:41 +13:00
josiahhiggs
a113cd3093 Return to send 30ms message 2024-12-25 22:06:17 +13:00
josiahhiggs
7edba4efc6 Update TESLA-BATTERY.cpp 2024-12-25 21:38:58 +13:00
josiahhiggs
76efc1528f Update bool and battery2 2024-12-25 21:36:45 +13:00
josiahhiggs
931f99fb35 Update TESLA-BATTERY.cpp 2024-12-25 20:54:16 +13:00
josiahhiggs
c08cbb6689 Merge branch 'improvement/tesla-advanced-battery' of https://github.com/josiahhiggs/Battery-Emulator into improvement/tesla-advanced-battery 2024-12-25 20:25:03 +13:00
josiahhiggs
126ab438a7 Update TESLA-BATTERY.cpp
Change values that hold either a true/false could instead of being defined as:

static uint8_t battery_packCtrsOpenNowRequested = 0;

Instead be defined as:

static bool battery_packCtrsOpenNowRequested = false;
2024-12-25 20:14:05 +13:00
josiahhiggs
d07443f8be
Merge branch 'dalathegreat:main' into improvement/tesla-advanced-battery 2024-12-25 20:07:21 +13:00
mvgalen
c713d0a94e
Change Serial logging to flexible logging (#690)
* Add Logging class
Add Logging class which inherits from Print class, to be able to route logging to USB Serial or to memory for display in the webpage. Adds a log webpage only visible when DEBUG_VIA_WEB is defined.
2024-12-22 22:48:35 +01:00
josiahhiggs
ad215a0a06 Factoring changes 2024-12-22 18:35:48 +13:00
josiahhiggs
6d96808de4 factoring changes 2024-12-22 18:35:12 +13:00
josiahhiggs
320416e204 Update TESLA-BATTERY.cpp Update advance_battery_html.cpp 2024-12-21 21:54:14 +13:00
josiahhiggs
dd510f40ca Update TESLA-BATTERY.cpp Update advanced_battery_html.cpp 2024-12-21 21:51:15 +13:00
josiahhiggs
b4ea3dcf35 Update TESLA-BATTERY.cpp 2024-12-18 22:06:28 +13:00
josiahhiggs
6ed3b7ea08 Update TESLA-BATTERY.cpp
Update battery2 info to match.
2024-12-18 22:05:08 +13:00
josiahhiggs
34f749d864 Update TESLA-BATTERY.cpp 2024-12-18 20:48:28 +13:00
josiahhiggs
320c58a22e Update TESLA-BATTERY.cpp
Update all CAN ID's battery is sending, reorganize and add comments for reference. Change names to match DBC files. Need to update DOUBLE BATTERY.
2024-12-18 20:47:24 +13:00
josiahhiggs
b7bc1da203 Update TESLA-BATTERY.cpp 2024-11-26 17:41:38 +13:00
josiahhiggs
2338d8c87c added mux for 0x352 and webserver updated 2024-11-23 17:02:47 +13:00
josiahhiggs
7249d6d646 Update TESLA-BATTERY.cpp
Fix compile issues, missed a few ()
2024-11-20 08:35:24 +13:00
josiahhiggs
992defca33 Factor correction
Change factoring back to battery .cpp
Add DBC info for reference
2024-11-19 22:40:57 +13:00
josiahhiggs
7eaeb7e15e Tesla webserver
Add multiplex messages to Tesla Battery, update datalayer exptended and add lines for advanced battery.
2024-11-18 22:28:33 +13:00
Daniel Öster
8bba614053 Add init function for inverters 2024-11-14 19:36:37 +02:00
Daniel Öster
950b0bbb26 Remove comment 2024-11-14 18:40:09 +02:00
Daniel Öster
edb6dcd39b Add battery text to datalayer 2024-11-14 18:38:23 +02:00
Daniel Öster
1e50394b0f Centralize active_power_w writing 2024-11-13 22:41:51 +02:00
Daniel Öster
774c544bca Add contactor opening incase of FAULT 2024-10-29 20:38:24 +02:00
chasovskiy.vitalii
846af0342c Tesla SX batteries support 2024-10-21 20:49:10 +03:00
Daniel Öster
868c667929 Rename datalayer interface 2024-10-13 10:45:44 +03:00
Daniel Öster
d096caf9bb Add separate web datalayer 2024-10-11 13:50:25 +03:00
Daniel Öster
ce54203382 Refactor cellvoltage safeties 2024-10-03 11:36:47 +03:00
Daniel Öster
80866d8310 Combine SX and 3Y 2024-09-15 22:14:13 +03:00