feat: 开启速度闭环

fix: 暂时修复通信卡死问题
This commit is contained in:
2024-03-05 21:28:08 +08:00
parent 6c0cfe1248
commit bab1667efb
7 changed files with 112 additions and 23 deletions

View File

@@ -63,18 +63,9 @@ int main(void)
while (1) {
Page_Run();
by_frame_parse(2, &test_data[0].u32);
// uart_write_byte(UART_8, 0x1F);
by_buzzer_run();
jj_bt_run();
in_pos = test_data[1].f32;
in_angle = test_data[0].f32;
ips200_show_float(40, 40, test_data[0].f32, 4, 1);
ips200_show_float(40, 60, test_data[1].f32, 4, 1);
ips200_show_float(40, 80, in_gyro, 4, 2);
ips200_show_float(40, 100, in_speed, 4, 4);
ips200_show_string(0, 120, "outang");
ips200_show_float(80, 120, out_angle, 4, 1);
ips200_show_string(0, 140, "outgyr");
ips200_show_float(80, 140, out_gyro, 4, 1);
}
}