mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 18:29:48 +02:00
Swap dis/cha limits in 0x150
This commit is contained in:
parent
22381739c1
commit
363ac51945
1 changed files with 4 additions and 4 deletions
|
@ -156,11 +156,11 @@ void update_values_can_byd() { //This function maps all the values fetched from
|
|||
BYD_150.data.u8[2] = (system_SOH_pptt >> 8);
|
||||
BYD_150.data.u8[3] = (system_SOH_pptt & 0x00FF);
|
||||
//Maximum charge power allowed (Unit: A+1)
|
||||
BYD_150.data.u8[4] = (charge_current >> 8);
|
||||
BYD_150.data.u8[5] = (charge_current & 0x00FF);
|
||||
BYD_150.data.u8[4] = (discharge_current >> 8);
|
||||
BYD_150.data.u8[5] = (discharge_current & 0x00FF);
|
||||
//Maximum discharge power allowed (Unit: A+1)
|
||||
BYD_150.data.u8[6] = (discharge_current >> 8);
|
||||
BYD_150.data.u8[7] = (discharge_current & 0x00FF);
|
||||
BYD_150.data.u8[6] = (charge_current >> 8);
|
||||
BYD_150.data.u8[7] = (charge_current & 0x00FF);
|
||||
|
||||
//Voltage (ex 370.0)
|
||||
BYD_1D0.data.u8[0] = (system_battery_voltage_dV >> 8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue