日常更新

This commit is contained in:
2024-03-04 22:33:43 +08:00
parent 4cc3fd8864
commit 8c21e784d8
6 changed files with 32 additions and 28 deletions

View File

@@ -50,22 +50,29 @@ int main(void)
jj_bt_init();
by_rb_init();
by_pwm_init();
// by_buzzer_init();
by_buzzer_init();
by_frame_init();
Page_Init();
sport_pid_init();
pit_ms_init(TIM6_PIT, 10); // 陀螺仪
pit_ms_init(TIM1_PIT, 1); // 运动解算bianmaqi
printf("ok\r\n");
while (1) {
Page_Run();
by_frame_parse(2, &test_data[1].u32);
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);
}
}