负压 STM32 程序1.1
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.

47 lines
852 B

2 weeks ago
/*
* paint_gun_action.c
*
* Created on: 2025年8月7日
* Author: xsq
*/
#include "paint_gun_action.h"
#include "fsm_state.h"
#include "BHBF_ROBOT.h"
transition_t current_paintgun_state; /*transition_t 成员是 指针的 transition_state_t */
transition_state_t paintgun_on_state={PaintGun_ON_Enter,PaintGun_ON_Do,NULL}; /* State 成员,它会被默认初始化为 0 */
transition_state_t paintgun_off_state={PaintGun_OFF_Enter,PaintGun_OFF_Do,NULL};
char Paint_Gun_ButtonReset_Flag = 0; //喷枪开启 1yes
/* 喷枪控制 */
void PaintGun_ON_Do()
{
GF_BSP_GPIO_SetIO(PaintGun_IO_CTL, K_ON_PaintGun);//0开
}
void PaintGun_OFF_Do()
{
GF_BSP_GPIO_SetIO(PaintGun_IO_CTL, K_OFF_PaintGun);//1关
}
void PaintGun_ON_Enter()
{
}
void PaintGun_ON_Exit()
{
}
void PaintGun_OFF_Enter()
{
}
void PaintGun_OFF_Exit()
{
}