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.
Dependencies: mbed-dev-f303 FastPWM3
Diff: structs.h
- Revision:
- 55:c4c9fec8539c
- Parent:
- 48:74a40481740c
--- a/structs.h Thu Aug 08 17:39:43 2019 +0000
+++ b/structs.h Fri Oct 04 14:18:39 2019 +0000
@@ -36,11 +36,20 @@
float p_des, v_des, kp, kd, t_ff; // Desired position, velocity, gians, torque
float v_ref, fw_int; // output voltage magnitude, field-weakening integral
float cogging[128];
+ int current_sector;
+ int otw_flag; // Over-temp warning
+ float i_max;
+ float inverter_tab[128];
+ int oc_flag;
} ControllerStruct;
typedef struct{
double temperature; // Estimated temperature
- double temperature2;
+ float temp_measured;
+ float q_in, q_out;
float resistance;
+ float k;
+ float trust;
+ float delta_t;
} ObserverStruct;
#endif