Modified Motor Driver Firmware to include Flash + Thermal
Dependencies: FastPWM3 mbed-dev-STM-lean
Diff: structs.h
- Revision:
- 55:c4c9fec8539c
- Parent:
- 48:74a40481740c
- Child:
- 59:9d39f37e1c7b
--- 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