Austin Brown
/
ESCmk2_Inductance
Inductance Testing Code
Fork of CurrentModeSine by
Embed:
(wiki syntax)
Show/hide line numbers
structs.h
00001 #ifndef STRUCTS_H 00002 #define STRUCTS_H 00003 00004 #include "mbed.h" 00005 00006 00007 typedef struct{ 00008 00009 float i_a, i_b, i_c; 00010 float v_bus; 00011 float theta_mech, theta_elec, theta_elec_adv; 00012 float i_d, i_q; 00013 float v_d, v_q; 00014 float dtc_u, dtc_v, dtc_w; 00015 float v_u, v_v, v_w; 00016 float test_d, test_q; 00017 float d_int, q_int; 00018 float i_d_ref, i_q_ref; 00019 int loop_count; 00020 int mode; 00021 } FocStruct; 00022 00023 00024 00025 00026 00027 typedef struct{ 00028 int can_dead_count; 00029 float throttle_frac; 00030 int status; 00031 } CommandStruct; 00032 00033 00034 00035 #endif
Generated on Wed Jul 13 2022 19:52:22 by 1.7.2