feat:增加避障积分屏蔽出界停车,增加出界原因屏幕显示,注册分段速度系数eeprom

This commit is contained in:
2024-08-15 17:03:42 +08:00
parent c825014599
commit 9a4caf7b7c
6 changed files with 53 additions and 24 deletions

View File

@@ -66,7 +66,17 @@ static void Loop()
ips200_show_float(80, 200, set_speed, 4, 2);
ips200_show_string(0, 220, "dis");
ips200_show_float(80, 220, start_dis, 4, 2);
if (up_show_flag == 1) {
ips200_show_string(180, 200, "up ");
} else if (out_show_flag == 1) {
ips200_show_string(180, 200, "out ");
} else if (bug_show_flag == 1) {
ips200_show_string(180, 200, "bug ");
} else if (finish_show_flag == 1) {
ips200_show_string(180, 200, "finish");
} else {
ips200_show_string(180, 200, " ");
}
ips200_show_string(180, 0, "ls");
ips200_show_float(220, 0, pwm_duty_ls, 4, 1);
ips200_show_string(180, 20, "rs");

View File

@@ -30,6 +30,7 @@ static void Setup()
{
ips200_clear();
ips200_show_string(0, 2, "gocar");
Print_Curser(Curser, Curser_Last, RGB565_PURPLE);
ips200_show_string(10, 200, "go_flag:");
ips200_show_int(80, 200, go_cnt, 1);
@@ -103,7 +104,7 @@ static void Event(page_event event)
}
if (Curser == 4 && bt_run_flag != 0) {
bt_run_flag = 0;
go_cnt=0;
go_cnt = 0;
}
} else if (page_event_press_long == event) {

View File

@@ -26,7 +26,7 @@ static void jj_param_show();
static void Setup()
{
ips200_clear();
ips200_show_string(0, 2,"barrir");
ips200_show_string(0, 2,"stopsw");
Print_Curser(Curser, Curser_Last, RGB565_PURPLE);
for (int16 i = 0; i < LINE_END; i++) {
ips200_show_string(0, i * 18 + 20, Param_Data[i +Strat_param ].text);