feat:
增加发车和停车菜单 增加停车相关条件开关功能 pref: 弯道速度控制一次函数->二次函数 删除图像下发无意义的0状态 fix: 修复下位机多次复位才能触发上位机复位
This commit is contained in:
@@ -6,15 +6,13 @@
|
||||
#include "jj_motion.h"
|
||||
|
||||
#define LINE_HEAD 1
|
||||
#define LINE_END 5
|
||||
#define LINE_END 7
|
||||
|
||||
static char Text[] = "Menu";
|
||||
|
||||
static int8_t Curser = LINE_HEAD; // 定义光标位置
|
||||
static int8_t Curser_Last = LINE_HEAD; // 定义光标位置
|
||||
uint32_t cnt = 0;
|
||||
|
||||
uint32_t reset[3];
|
||||
static void Print_Menu_p(void);
|
||||
/***************************************************************************************
|
||||
*
|
||||
@@ -29,10 +27,10 @@ static void Print_Menu_p(void);
|
||||
*/
|
||||
static void Setup()
|
||||
{
|
||||
|
||||
ips200_clear();
|
||||
Print_Menu_p();
|
||||
Print_Curser(Curser, Curser_Last, RGB565_PURPLE);
|
||||
reset[0] = 0x01;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -51,15 +49,6 @@ 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) {
|
||||
bt_fly_flag = 1;
|
||||
|
||||
} else if (go_flag == 2) {
|
||||
system_delay_ms(2000);
|
||||
bt_run_flag = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -81,18 +70,6 @@ static void Event(page_event event)
|
||||
Page_Shift(Curser); // 切换到光标选中的页面
|
||||
}
|
||||
} else if (page_event_press_long == event) {
|
||||
if (go_flag == 0) {
|
||||
go_flag = 1;
|
||||
} else if (go_flag == 1) {
|
||||
go_flag = 2;
|
||||
}
|
||||
|
||||
// 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