|
|
@ -58,15 +58,12 @@ void app_main(void) { |
|
|
|
// double encoder = 0.0; |
|
|
|
|
|
|
|
while (true) { |
|
|
|
// bluetooth_gatts_try_process_data(); |
|
|
|
bluetooth_gatts_try_process_data(); |
|
|
|
// if (s_bluetooth_processer.auto_report_flag) { |
|
|
|
// receipt_json_get_status(); |
|
|
|
// s_bluetooth_processer.auto_report_flag = false; |
|
|
|
// } |
|
|
|
|
|
|
|
// motor_drive_set_packages_ctr(26.34); |
|
|
|
ESP_LOGI(MAIN_TAG,"%d",motor_drive_set_motor_current_size()); |
|
|
|
|
|
|
|
// if ((motor_drive_read_encoder() == s_bluetooth_processer.position) && s_bluetooth_processer.motor_drive_turn_flag == true) { |
|
|
|
// ESP_LOGI("test", "info log ok\n"); |
|
|
|
// s_bluetooth_processer.motor_drive_turn_flag = false; |
|
|
@ -77,10 +74,6 @@ void app_main(void) { |
|
|
|
// ESP_LOGI(MAIN_TAG, "encoder :%.2lf",encoder); |
|
|
|
// s_bluetooth_processer.auto_report_flag = false; |
|
|
|
// } |
|
|
|
|
|
|
|
// uart_write_bytes(UART_NUM_1, (const char*)test_str, strlen(test_str)); |
|
|
|
// ets_delay_us(1000000); |
|
|
|
// ble_receive(UART_NUM_2); |
|
|
|
} |
|
|
|
|
|
|
|
return; |
|
|
|