Shao Rui
/
AGV
1
struct.h@0:571a1835428e, 2021-01-25 (annotated)
- Committer:
- shaorui
- Date:
- Mon Jan 25 08:36:48 2021 +0000
- Revision:
- 0:571a1835428e
1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
shaorui | 0:571a1835428e | 1 | #ifndef STRUCT_H |
shaorui | 0:571a1835428e | 2 | #define STRUCT_H |
shaorui | 0:571a1835428e | 3 | |
shaorui | 0:571a1835428e | 4 | #include "mbed.h" |
shaorui | 0:571a1835428e | 5 | |
shaorui | 0:571a1835428e | 6 | |
shaorui | 0:571a1835428e | 7 | |
shaorui | 0:571a1835428e | 8 | typedef struct{ |
shaorui | 0:571a1835428e | 9 | DigitalIn *indicate;//brake chufa tiaojian |
shaorui | 0:571a1835428e | 10 | DigitalOut *brake; //used for brake |
shaorui | 0:571a1835428e | 11 | } GPIOStruct; |
shaorui | 0:571a1835428e | 12 | |
shaorui | 0:571a1835428e | 13 | |
shaorui | 0:571a1835428e | 14 | typedef struct{ |
shaorui | 0:571a1835428e | 15 | |
shaorui | 0:571a1835428e | 16 | float theta_mech, theta_elec; // Rotor mechanical and electrical angle |
shaorui | 0:571a1835428e | 17 | float dtheta_mech, dtheta_elec, dtheta_elec_filt; // Rotor mechanical and electrical angular velocit |
shaorui | 0:571a1835428e | 18 | |
shaorui | 0:571a1835428e | 19 | float theta_joint, theta_joint_raw, theta_joint_raw_pre,theta_joint_raw_fil; //hjb added |
shaorui | 0:571a1835428e | 20 | int loop_count; // Degubbing counter |
shaorui | 0:571a1835428e | 21 | float v_ref, fw_int; // output voltage magnitude, field-weakening integral |
shaorui | 0:571a1835428e | 22 | float cogging[128]; |
shaorui | 0:571a1835428e | 23 | float angle,angle1;//shaorui add for test |
shaorui | 0:571a1835428e | 24 | } ControllerStruct; |
shaorui | 0:571a1835428e | 25 | #endif |