Be sure to feed values to shift indicator
This commit is contained in:
parent
5f68484afa
commit
eda71d1d0c
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,10 @@ cdef cluster_update(cluster: Cluster,
|
||||||
hexagram_window *window,
|
hexagram_window *window,
|
||||||
can_frame *frame):
|
can_frame *frame):
|
||||||
if frame.can_id == 0x280:
|
if frame.can_id == 0x280:
|
||||||
cluster.tacho.value = 0.25 * float(frame.data[2] | (frame.data[3] << 8))
|
rpm = 0.25 * float(frame.data[2] | (frame.data[3] << 8))
|
||||||
|
|
||||||
|
cluster.tacho.value = rpm
|
||||||
|
cluster.shift_indicator.value = rpm
|
||||||
elif frame.can_id == 0x288:
|
elif frame.can_id == 0x288:
|
||||||
cluster.thermo.value = 0.75 * float(frame.data[1] - 48)
|
cluster.thermo.value = 0.75 * float(frame.data[1] - 48)
|
||||||
elif frame.can_id == 0x320:
|
elif frame.can_id == 0x320:
|
||||||
|
|
Loading…
Add table
Reference in a new issue