售出,L27/28,大板。
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.

39 lines
679 B

/*
* tilt_action.c
*
* Created on: 20251229
* Author: xsq
*/
#include "tilt_action.h"
transition_t current_tilt_state;
transition_state_t tilt_up_state={NULL,TiltUp_Do,NULL};
transition_state_t tilt_down_state={NULL,TiltDown_Do,NULL};
transition_state_t tilt_halt_state={NULL,TiltHalt_Do,NULL};
/* 终端上下移动,在洗舱里是抬头低头,这里是上下,直接沿用Tilt Up 和 TiltDown函数
* */
void TiltUp_Do(transition_t *p_this)
{
GV.Strain_Gauge.MotorControl=1;
}
void TiltDown_Do(transition_t *p_this)
{
GV.Strain_Gauge.MotorControl=2;
}
void TiltHalt_Do(transition_t *p_this)
{
GV.Strain_Gauge.MotorControl=0;
}