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: structs.h
- Revision:
- 22:60276ba87ac6
- Parent:
- 20:bf9ea5125d52
- Child:
- 23:2adf23ee0305
--- a/structs.h Thu Mar 02 15:31:45 2017 +0000
+++ b/structs.h Fri Mar 31 18:24:46 2017 +0000
@@ -9,6 +9,7 @@
typedef struct{
DigitalOut *enable;
FastPWM *pwm_u, *pwm_v, *pwm_w;
+ int phasing;
} GPIOStruct;
typedef struct{
@@ -28,7 +29,19 @@
float d_int, q_int;
int adc1_offset, adc2_offset;
float i_d_ref, i_q_ref;
+ int loop_count;
+ int mode;
} ControllerStruct;
-
+typedef struct{
+ float vel_1;
+ float vel_1_old;
+ float vel_1_est;
+ float vel_2;
+ float vel_2_old;
+ float vel_2_est;
+ float ts;
+ float est;
+ } VelocityEstimatorStruct;
+
#endif