wip
This commit is contained in:
@@ -211,6 +211,8 @@ class CarState(CarStateBase):
|
||||
|
||||
self.params_memory.put_int("CarSpeedLimitLiteral", self.calculate_speed_limit(cp, cp_cam))
|
||||
self.params_memory.put_float("CarSpeedLimit", self.calculate_speed_limit(cp, cp_cam) * speed_conv)
|
||||
self.params_memory.put_float("CarCruiseDisplayActual", cp_cruise.vl["SCC11"]["VSetDis"])
|
||||
|
||||
|
||||
return ret
|
||||
|
||||
|
||||
@@ -129,6 +129,9 @@ def create_buttons(packer, CP, CAN, cnt, btn):
|
||||
|
||||
|
||||
def create_buttons_alt(packer, CP, CAN, cnt, btn, template):
|
||||
params_memory = Params("/dev/shm/params")
|
||||
self.params_memory.get_float("CarCruiseDisplayActual")
|
||||
|
||||
values = {
|
||||
"COUNTER": cnt,
|
||||
"NEW_SIGNAL_1": 0.0,
|
||||
@@ -143,9 +146,9 @@ def create_buttons_alt(packer, CP, CAN, cnt, btn, template):
|
||||
"NEW_SIGNAL_5": 0.0,
|
||||
"SET_ME_2": 2.0,
|
||||
"NEW_SIGNAL_5": 1.0,
|
||||
"BYTE_6": 38.0, # Target speed?
|
||||
"BYTE_6": CarCruiseDisplayActual+1, # Target
|
||||
"BYTE_7": 0.0,
|
||||
"BYTE_8": 31.0, # Current spedometer speed?
|
||||
"BYTE_8": CarCruiseDisplayActual, # Current cruise sets
|
||||
"BYTE_9": 0.0,
|
||||
"BYTE_10": 0.0,
|
||||
"BYTE_11": 0.0,
|
||||
|
||||
Reference in New Issue
Block a user