bldc driver firmware based on hobbyking cheetah compact
Dependencies: BLDC_V2 mbed-dev-f303 FastPWM3
Diff: structs.h
- Revision:
- 47:f4ecf3e0576a
- Parent:
- 37:c0f352d6e8e3
--- a/structs.h Mon Jul 30 20:33:23 2018 +0000 +++ b/structs.h Wed May 13 09:53:27 2020 +0000 @@ -28,7 +28,7 @@ float v_u, v_v, v_w; float d_int, q_int; int adc1_offset, adc2_offset; - float i_d_ref, i_q_ref; + volatile float i_d_ref, i_q_ref; int loop_count; int timeout; int mode; @@ -47,4 +47,25 @@ float e_d_int, e_q_int; } ObserverStruct; +typedef union{ + struct{ + int init_flag1; + int init_flag2; + float I_a; + float I_b; + float I_c; + float I_q; + float I_d; + float Angle_mech; + float Angle_elec; + float Control_tff; + float Control_kp; + float Control_p; + float Control_kd; + float Control_v; + float check_num; + } info; + char decode[60]; +} DataPackage; + #endif