From 8fc624309dee233ff17f7c2c8778e04dea72ecbc Mon Sep 17 00:00:00 2001
From: nrs1g15 <nrs1g15@soton.ac.uk>
Date: Tue, 30 Jul 2019 10:21:54 +0100
Subject: [PATCH] Changed daq to be zero index based

---
 sufst-controller/daq.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/sufst-controller/daq.h b/sufst-controller/daq.h
index 23423ca..18a6102 100644
--- a/sufst-controller/daq.h
+++ b/sufst-controller/daq.h
@@ -24,17 +24,17 @@ struct DaqEvoScannPressureFormat
 } __attribute__((packed));
 
 static const uint8_t daqEcuDataToTag[8][4] = {
-    {1, 2, 3, 4},
-    {5, 6, 7, 8},
-    {9, 10, 11, 12},
-    {13, 14, 15, 16},
-    {17, 18, 19, 20},
-    {21, 22, 23, 24},
-    {25, 26, 27, 28},
-    {29, 30, 31, 32},
+    {0, 1, 2, 3},
+    {4, 5, 6, 7},
+    {8, 9, 10, 11},
+    {12, 13, 14, 15},
+    {16, 17, 18, 19},
+    {20, 21, 22, 23},
+    {24, 25, 26, 27},
+    {28, 29, 30, 31},
 };
 
-static const uint8_t daqEvoScannPressSensToTag[8] = {33, 34, 35, 36, 37, 38, 39, 40};
+static const uint8_t daqEvoScannPressSensToTag[8] = {32, 33, 34, 35, 36, 37, 38, 39};
 
 void daqEcuWrite(CanMsgTemplate *canMsg, uint8_t index);
 
-- 
GitLab