You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
997 B
41 lines
997 B
|
6 days ago
|
/*
|
||
|
|
* roughening_end_actions.c
|
||
|
|
*
|
||
|
|
* Created on: 2025年12月29日
|
||
|
|
* Author: xsq
|
||
|
|
*/
|
||
|
|
#include "roughening_end_actions.h"
|
||
|
|
#include "main.h"
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
transition_t current_roughening_state;
|
||
|
|
|
||
|
|
transition_state_t roughening_halt_state={NULL,RougheningEndHALT_Do,NULL}; /* State 成员,它会被默认初始化为 0 */
|
||
|
|
transition_state_t roughening_swing_clockwise_state={NULL,RougheningEndSwingClockWise_Do,NULL};
|
||
|
|
transition_state_t roughening_swing_anticlockwise_state={NULL,RougheningEndSwingAntiClockWise_Do,NULL};
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/* 拉毛函数控制
|
||
|
|
* */
|
||
|
|
void RougheningEndHALT_Do(transition_t *p_this)
|
||
|
|
{
|
||
|
|
|
||
|
|
GV.GroundManagementValue.DMK_WorkState=0;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
void RougheningEndSwingClockWise_Do(transition_t *p_this)
|
||
|
|
{
|
||
|
|
GV.GroundManagementValue.DMK_Speed=GV.PV.DmkSpeed;
|
||
|
|
GV.GroundManagementValue.DMK_WorkState=1;//顺时针
|
||
|
|
}
|
||
|
|
void RougheningEndSwingAntiClockWise_Do(transition_t *p_this)
|
||
|
|
{
|
||
|
|
GV.GroundManagementValue.DMK_Speed=GV.PV.DmkSpeed;
|
||
|
|
GV.GroundManagementValue.DMK_WorkState=2; //逆时针
|
||
|
|
}
|
||
|
|
|