@@ -44,7 +44,7 @@ static uint8_t g_page_num = 0;
4444
4545static mpu6050_acce_value_t acce ;
4646static mpu6050_gyro_value_t gyro ;
47- static complimentary_angle_t complimentary_angle ;
47+ static complementary_angle_t complementary_angle ;
4848
4949static void display_show_signs (void )
5050{
@@ -132,12 +132,12 @@ static void display_show_gyro_data(void)
132132 bsp_display_unlock ();
133133}
134134
135- static void display_show_complimentary_angle (void )
135+ static void display_show_complementary_angle (void )
136136{
137- ESP_LOGI (TAG , "roll:%.2f, pitch:%.2f" , complimentary_angle .roll , complimentary_angle .pitch );
137+ ESP_LOGI (TAG , "roll:%.2f, pitch:%.2f" , complementary_angle .roll , complementary_angle .pitch );
138138
139139 bsp_display_lock (0 );
140- lv_label_set_text_fmt (main_label , "Roll: %.2f\nPitch: %.2f" , complimentary_angle .roll , complimentary_angle .pitch );
140+ lv_label_set_text_fmt (main_label , "Roll: %.2f\nPitch: %.2f" , complementary_angle .roll , complementary_angle .pitch );
141141 lv_obj_set_style_text_align (main_label , LV_TEXT_ALIGN_LEFT , 0 );
142142 bsp_display_unlock ();
143143}
@@ -197,7 +197,7 @@ static void display_show_task(void *pvParameters)
197197 display_show_gyro_data ();
198198 break ;
199199 case 3 :
200- display_show_complimentary_angle ();
200+ display_show_complementary_angle ();
201201 break ;
202202 case 4 :
203203 display_show_barometer_data ();
@@ -215,7 +215,7 @@ static void mpu6050_read(void *pvParameters)
215215{
216216 mpu6050_get_acce (mpu6050_dev , & acce );
217217 mpu6050_get_gyro (mpu6050_dev , & gyro );
218- mpu6050_complimentory_filter (mpu6050_dev , & acce , & gyro , & complimentary_angle );
218+ mpu6050_complimentory_filter (mpu6050_dev , & acce , & gyro , & complementary_angle );
219219}
220220
221221static void btn_handler (void * button_handle , void * usr_data )
@@ -277,7 +277,7 @@ void app_main(void)
277277 q_page_num = xQueueCreate (10 , sizeof (uint8_t ));
278278 xTaskCreate (display_show_task , "display_show_task" , 2048 * 2 , NULL , 5 , NULL );
279279
280- // In order to get accurate calculation of complimentary angle we need fast reading (5ms)
280+ // In order to get accurate calculation of complementary angle we need fast reading (5ms)
281281 // FreeRTOS resolution is 10ms, so esp_timer is used
282282 const esp_timer_create_args_t cal_timer_config = {
283283 .callback = mpu6050_read ,
0 commit comments