Merge branch 'master' of http://git.brisky.space:441/btl143/firmware_zinnia
This commit is contained in:
20
app/main.c
20
app/main.c
@@ -37,13 +37,12 @@
|
||||
|
||||
int main(void)
|
||||
{
|
||||
TYPE_UNION test_data;
|
||||
TYPE_UNION test_data_last;
|
||||
TYPE_UNION test_data[2];
|
||||
clock_init(SYSTEM_CLOCK_120M);
|
||||
system_delay_init();
|
||||
debug_init();
|
||||
|
||||
encoder_dir_init(TIM5_ENCOEDER, TIM5_ENCOEDER_MAP0_CH1_A0, TIM5_ENCOEDER_MAP0_CH2_A1);
|
||||
encoder_quad_init(TIM5_ENCOEDER, TIM5_ENCOEDER_MAP0_CH1_A0, TIM5_ENCOEDER_MAP0_CH2_A1);
|
||||
ips200_init(IPS200_TYPE_SPI);
|
||||
while (imu660ra_init())
|
||||
;
|
||||
@@ -63,17 +62,10 @@ int main(void)
|
||||
printf("ok\r\n");
|
||||
|
||||
while (1) {
|
||||
// Page_Run();
|
||||
by_frame_parse(1, &test_data.u32);
|
||||
|
||||
if (test_data.u32 != test_data_last.u32) {
|
||||
ips200_show_float(0, 50, test_data.f32, 4, 2);
|
||||
// printf("- %ld\r\n", (uint32_t)(test_data.f32 * 100));
|
||||
}
|
||||
Page_Run();
|
||||
by_frame_parse(2, &test_data[1].u32);
|
||||
|
||||
test_data_last.u32 = test_data.u32;
|
||||
|
||||
// by_buzzer_run();
|
||||
// jj_bt_run();
|
||||
by_buzzer_run();
|
||||
jj_bt_run();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user