robot

Dependencies:   FastPWM3 mbed

Revision:
82:5e741c5ffd9f
Parent:
70:5e39beeb4a21
Child:
83:eb3704d4943f
--- a/BREMS/BREMSStructs.h	Sat Feb 25 01:12:27 2017 +0000
+++ b/BREMS/BREMSStructs.h	Fri Mar 10 08:29:13 2017 +0000
@@ -6,6 +6,7 @@
 #include "FastPWM.h"
 #include "PwmIn.h"
 #include "PositionSensor.h"
+#include "PreferenceWriter.h"
 
 typedef struct {
     FastPWM *a, *b, *c;
@@ -13,6 +14,7 @@
     PwmIn *throttle_in;
     PositionSensorEncoder *pos;
     Serial *pc;
+    PreferenceWriter *pref;
 } IOStruct;
 
 typedef struct {
@@ -32,6 +34,7 @@
     float d_ref, q_ref;
     float d_filtered, q_filtered;
     float torque_percent;
+    bool enabled;
 } ControlStruct;
     
 #endif
\ No newline at end of file