safety_param: change to unsigned (#910)

* make safety_param unsigned

* final one

* uint32_t

* change flags as well

* Revert "change flags as well"

This reverts commit ed8897dd86b0dbfc80e6b8633f36d80c9bc91052.

* unsigned

* update health packet version

update health packet version

* update struct H->I

* bump health version

* actually used
This commit is contained in:
Shane Smiskol
2022-04-20 23:25:03 -07:00
committed by GitHub
parent a1d97f9a0b
commit 7dd9493eb1
20 changed files with 31 additions and 33 deletions

View File

@@ -170,8 +170,8 @@ class Panda(object):
HW_TYPE_RED_PANDA = b'\x07'
CAN_PACKET_VERSION = 2
HEALTH_PACKET_VERSION = 5
HEALTH_STRUCT = struct.Struct("<IIIIIIIIBBBBBBBHBBBHIf")
HEALTH_PACKET_VERSION = 6
HEALTH_STRUCT = struct.Struct("<IIIIIIIIBBBBBBBIBBBHIf")
F2_DEVICES = (HW_TYPE_PEDAL, )
F4_DEVICES = (HW_TYPE_WHITE_PANDA, HW_TYPE_GREY_PANDA, HW_TYPE_BLACK_PANDA, HW_TYPE_UNO, HW_TYPE_DOS)