summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2018-04-09 17:54:04 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2018-04-09 17:54:04 +0100
commit071efc336ef41fa82506baffa467d5bac7be3ebe (patch)
treedf954ae95c1aad8fee43a6242a30dabbb1342b89
parent29f8eaa7a53326686252e6015fbf6ef7f7a21bb9 (diff)
downloadcanopied-071efc336ef41fa82506baffa467d5bac7be3ebe.tar.bz2
Add vmcu initial bits
-rw-r--r--definitions/raw.yaml66
1 files changed, 65 insertions, 1 deletions
diff --git a/definitions/raw.yaml b/definitions/raw.yaml
index e9d970c..bfb34c3 100644
--- a/definitions/raw.yaml
+++ b/definitions/raw.yaml
@@ -762,4 +762,68 @@
# - name: pilot_duty_cycle
# offset: 19
# length: 1
-# kind: unsigned \ No newline at end of file
+# kind: unsigned
+
+- name: vmcu1
+ description: Vehicle Management Control Unit, first part
+ request:
+ sendto: 0x7E2
+ packet: [0x21, 0x01]
+ response:
+ length: 22
+ values:
+ - name: vmcu_fixed
+ length: 6
+ offset: 0
+ check: [0x61, 0x01, 0xff, 0xe0, 0x00, 0x00]
+ - name: gear_d
+ offset: 7
+ length: 1
+ kind: bit
+ base: 3
+ - name: gear_r
+ offset: 7
+ length: 1
+ kind: bit
+ base: 1
+ - name: gear_p
+ offset: 7
+ length: 1
+ kind: bit
+ base: 0
+ - name: gear_n
+ offset: 7
+ length: 1
+ kind: bit
+ base: 2
+ - name: brake_sw
+ offset: 8
+ length: 1
+ kind: bit
+ base: 1
+ - name: brake_lamp
+ offset: 8
+ length: 1
+ kind: bit
+ base: 0
+ - name: accel_pedal_depth
+ offset: 14
+ length: 1
+ kind: unsigned
+
+- name: vmcu2
+ description: Vehicle Management Control Unit, second part
+ request:
+ sendto: 0x7E2
+ packet: [0x21, 0x02]
+ response:
+ length: 23
+ values:
+ - name: vmcu_fixed
+ length: 6
+ offset: 0
+ check: [0x61, 0x02, 0xff, 0xe0, 0x00, 0x00]
+ - name: something_temp
+ length: 1
+ offset: 22
+ kind: unsigned