2025-10-15 下班备份
This commit is contained in:
@@ -12,14 +12,17 @@
|
||||
|
||||
#define SLOPE_VPT 1000
|
||||
#define FOLLOW_VPT 20
|
||||
#define SHIELD_VPT 5000
|
||||
#define SHIELD_VPT 2500
|
||||
|
||||
#define STOP_TIME_MS 500
|
||||
#define RUN_TIME_MS 0
|
||||
|
||||
#define TRAVEL_TIME_MS 30000
|
||||
|
||||
|
||||
#define BDC_STOP() (SET_TWIN_BIT0(),SET_TWIN_BIT1())
|
||||
#define BDC_UP() (SET_TWIN_BIT0(),CLR_TWIN_BIT1())
|
||||
#define BDC_DOWN() (CLR_TWIN_BIT0(),SET_TWIN_BIT1())
|
||||
#define BDC_DOWN() (SET_TWIN_BIT1(),CLR_TWIN_BIT0())
|
||||
|
||||
/*控制等级*/
|
||||
typedef enum {
|
||||
@@ -33,6 +36,7 @@ typedef enum {
|
||||
/*设备阈值*/
|
||||
typedef struct{
|
||||
int32_t Slope_VPT;
|
||||
int32_t Stop_VPT;
|
||||
|
||||
int32_t LeftUpVPT;//左上设备阈值
|
||||
int32_t LeftLowVPT;//左下设备阈值
|
||||
@@ -70,8 +74,9 @@ typedef enum {
|
||||
APP_STATUS_IDLE,
|
||||
APP_STATUS_ON,
|
||||
APP_STATUS_OFF,
|
||||
APP_STATUS_UP_2S,
|
||||
APP_STATUS_DOWN_2S,
|
||||
APP_STATUS_UP1,
|
||||
APP_STATUS_DOWN,
|
||||
APP_STATUS_UP2,
|
||||
APP_STATUS_WAIT,
|
||||
}AppStatus_m;
|
||||
|
||||
@@ -93,7 +98,6 @@ typedef struct {
|
||||
uint32_t Read1mSDelayCnt;
|
||||
uint32_t Uart1Delay1mSCnt;
|
||||
uint32_t StopCollDelay1mSCnt;
|
||||
uint32_t RunCollDelay1mSCnt;
|
||||
uint32_t EvenRunDelay1mSCnt;
|
||||
uint8_t FeedDogDlyCnt;
|
||||
|
||||
@@ -103,6 +107,7 @@ typedef struct {
|
||||
bool EvenRunning;//平稳运行标志位
|
||||
bool LeftRunFalg;
|
||||
bool RightRunFalg;
|
||||
bool CentreRunFalg;
|
||||
|
||||
bool LeftUpCS1237ReadEndFlag;
|
||||
bool LeftLowCS1237ReadEndFlag;
|
||||
|
||||
Reference in New Issue
Block a user