Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankasam committed Jan 25, 2025
1 parent aeca7c4 commit b8529c4
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/bms_boss/src/CANIO_componentSpecific.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,15 @@ CAN_prechargeContactorState_E CANIO_tx_getContactorState(void)

return ret;
}


uint8_t CANIO_tx_getElconControlByte(void)
{
uint8_t ret = 0x01;
if (SYS.contacts == SYS_CONTACTORS_HVP_CLOSED)
{
ret = 0x00;
}

return ret;
}
32 changes: 32 additions & 0 deletions network/definition/data/components/bmsb/bmsb-signals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,35 @@ signals:
range:
min: 0
max: 18446744073709551615

elconControlByte:
cycleTimeMs: 1000
description: Elcon Control Byte
nativeRepresentation:
bitWidth: 8

elconMaxChargeVoltage:
cycleTimeMs: 1000
unit: 'V'
description: Elcon Max Battery Voltage During Charging
nativeRepresentation:
endianness: 0
bitWidth: 16
resolution: 0.1
range:
min: 0
max: 450
continuous: true

elconMaxChargeCurrent:
cycleTimeMs: 1000
unit: 'A'
description: Elcon Max Battery Voltage During Charging
nativeRepresentation:
endianness: 0
bitWidth: 16
resolution: 0.1
range:
min: 0
max: 25
continuous: true
9 changes: 9 additions & 0 deletions network/definition/data/components/elcon/elcon-message.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
messages:
criticalData:
description: Elcon Critical Data
id: 0x18FF50E5
lengthBytes: 8
signals:
busVoltage:
busCurrent:
busStatusFlags:
35 changes: 35 additions & 0 deletions network/definition/data/components/elcon/elcon-signals.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
signals:
busVoltage:
cycleTimeMs: 1000
unit: 'V'
description: Charger DC Bus Voltage
nativeRepresentation:
endianness: 0
bitWidth: 16
resolution: 0.1
range:
min: 0
max: 1000
continuous: true
busCurrent:
cycleTimeMs: 1000
unit: 'A'
description: Charger DC BUS Current
nativeRepresentation:
endianness: 0
bitWidth: 16
resolution: 0.1
range:
min: 0
max: 150
continuous: true
busStatusFlags:
cycleTimeMs: 1000
description: Charger Bus Status Flags
nativeRepresentation:
endianness: 0
bitWidth: 8
range:
min: 0
max: 256
continuous: true

0 comments on commit b8529c4

Please sign in to comment.