Control.c 457 B

12345678910111213141516171819202122
  1. /**
  2. @copyright None
  3. @file Control.c
  4. @author Comment Vivre
  5. @date 2025-11-01
  6. @brief None
  7. */
  8. #include <MyProject.h>
  9. /**
  10. @function Get_Target_Ref
  11. @brief 速度给定
  12. @date 2025-11-01
  13. */
  14. void Get_Target_Ref(void)
  15. {
  16. #if (CONTROL_MODE == NONEMODE)
  17. isCtrlPowOn = true;
  18. motorControl.TargetRef = TARGET_SPEED_SET;
  19. #elif (CONTROL_MODE == UARTMODE)
  20. #endif
  21. }