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:
- 20:bf9ea5125d52
- Child:
- 22:60276ba87ac6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/structs.h Thu Mar 02 15:31:23 2017 +0000
@@ -0,0 +1,34 @@
+#ifndef STRUCTS_H
+#define STRUCTS_H
+
+//#include "CANnucleo.h"
+#include "mbed.h"
+#include "FastPWM.h"
+
+
+typedef struct{
+ DigitalOut *enable;
+ FastPWM *pwm_u, *pwm_v, *pwm_w;
+ } GPIOStruct;
+
+typedef struct{
+
+ }COMStruct;
+
+typedef struct{
+ int adc1_raw, adc2_raw;
+ float i_a, i_b, i_c;
+ float v_bus;
+ float theta_mech, theta_elec;
+ float dtheta_mech, dtheta_elec;
+ float i_d, i_q;
+ float v_d, v_q;
+ float dtc_u, dtc_v, dtc_w;
+ float v_u, v_v, v_w;
+ float d_int, q_int;
+ int adc1_offset, adc2_offset;
+ float i_d_ref, i_q_ref;
+ } ControllerStruct;
+
+
+#endif