Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. typedef struct
  2. {
  3. uint16_t StatusWord;
  4. uint16_t ControlWord;
  5. uint16_t ZeroPosition; // Unit: Counts based on abs encoder
  6. float HomePosition; // Unit: Degrees
  7. uint16_t AbsPosition;
  8. uint16_t IncPosition;
  9. bool IsEnabled; // Shows whether it is included in the motion or not
  10. int32_t Trajectory[MAX_MOTION_LEN];
  11. DriveObjectsType DriveInfo;
  12. int32_t LimitMin;
  13. int32_t LimitMax;
  14. EMainSensorType MainSensor;
  15. } ExoDriveType;
  16.  
  17. /**
  18. * @brief Data type to represent the exoskeleton
  19. */
  20. typedef struct
  21. {
  22. ExoDriveType Motors[MAX_NO_OF_MOTORS]; //TODO: Dynamic memory allocation
  23. uint8_t NoOfMotors;
  24. uint32_t MotionLen;
  25. uint16_t IntPolTime;
  26. EExoState State;
  27. EExoState PrevState;
  28. volatile uint32_t CurPosIndex;
  29. } ExoType;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement