Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: BREMS/BREMSStructs.h
- 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