feat:发车靠积分屏蔽斑马线;发车起步先检查侧面风扇能否成功拖动;负压状态停车
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "page.h"
|
||||
#include "by_frame.h"
|
||||
#include "jj_blueteeth.h"
|
||||
#include "jj_motion.h"
|
||||
|
||||
#define LINE_HEAD 1
|
||||
#define LINE_END 5
|
||||
@@ -12,7 +13,7 @@ static char Text[] = "Menu";
|
||||
static int8_t Curser = LINE_HEAD; // 定义光标位置
|
||||
static int8_t Curser_Last = LINE_HEAD; // 定义光标位置
|
||||
uint32_t cnt = 0;
|
||||
uint8_t go_flag = 0;
|
||||
|
||||
uint32_t reset[3];
|
||||
static void Print_Menu_p(void);
|
||||
/***************************************************************************************
|
||||
@@ -50,13 +51,14 @@ static void Exit()
|
||||
*/
|
||||
static void Loop()
|
||||
{
|
||||
ips200_show_string(0, 200, "go_flag:");
|
||||
ips200_show_int(180, 200, go_flag, 2);
|
||||
if (go_flag == 1) {
|
||||
system_delay_ms(1000);
|
||||
bt_fly_flag = 1;
|
||||
system_delay_ms(1000);
|
||||
bt_run_flag = 1;
|
||||
|
||||
go_flag = 0;
|
||||
} else if (go_flag == 2) {
|
||||
system_delay_ms(2000);
|
||||
bt_run_flag = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,13 +81,18 @@ static void Event(page_event event)
|
||||
Page_Shift(Curser); // 切换到光标选中的页面
|
||||
}
|
||||
} else if (page_event_press_long == event) {
|
||||
go_flag = 1;
|
||||
uint32_t temp = 0x5c;
|
||||
for (int i = 0; i < 3; i++) {
|
||||
by_frame_send(&temp);
|
||||
if (go_flag == 0) {
|
||||
go_flag = 1;
|
||||
} else if (go_flag == 1) {
|
||||
go_flag = 2;
|
||||
}
|
||||
|
||||
ips200_clear();
|
||||
// uint32_t temp = 0x5c;
|
||||
// for (int i = 0; i < 3; i++) {
|
||||
// by_frame_send(&temp);
|
||||
// }
|
||||
|
||||
// ips200_clear();
|
||||
}
|
||||
|
||||
if (Curser < LINE_HEAD) {
|
||||
|
||||
Reference in New Issue
Block a user