| 1234567891011121314151617181920212223242526 |
- /**
- @copyright None
- @file Control.c
- @author Comment Vivre
- @date 2025-11-01
- @brief None
- */
- #include <MyProject.h>
- /**
- @function Get_Target_Ref
- @brief 速度给定
- @date 2025-11-01
- */
- void Get_Target_Ref(void)
- {
- if (powerControl.PowerSate == POWER_RUN)
- {
- #if (CONTROL_MODE == NONEMODE)
- isCtrlPowOn = true;
- motorControl.TargetRef = TARGET_SPEED_SET;
- mcFocCtrl.QoutValue = I_Value(1.0);
- #elif (CONTROL_MODE == UARTMODE)
- #endif
- }
- }
|