|
@ -821,8 +821,8 @@ void app_main(void) |
|
|
{ |
|
|
{ |
|
|
esp_err_t ret; |
|
|
esp_err_t ret; |
|
|
|
|
|
|
|
|
// motor_init(); |
|
|
|
|
|
// motor_encoder_init(); |
|
|
|
|
|
|
|
|
motor_init(); |
|
|
|
|
|
motor_encoder_init(); |
|
|
|
|
|
|
|
|
// timer_group_init(TIMER_GROUP_0, TIMER_0, false, timer_interval_num, timer_interval_ms); |
|
|
// timer_group_init(TIMER_GROUP_0, TIMER_0, false, timer_interval_num, timer_interval_ms); |
|
|
timer_group_init(TIMER_GROUP_0, TIMER_0, false, timer_group0_interval_num, timer_interval_ms); |
|
|
timer_group_init(TIMER_GROUP_0, TIMER_0, false, timer_group0_interval_num, timer_interval_ms); |
|
@ -972,7 +972,7 @@ void bluetooth_gatts_try_process_data() |
|
|
if (strcmp(s_bluetooth_processer.order, set_position) == 0) |
|
|
if (strcmp(s_bluetooth_processer.order, set_position) == 0) |
|
|
{ |
|
|
{ |
|
|
ESP_LOGI(GATTS_TAG, set_position); |
|
|
ESP_LOGI(GATTS_TAG, set_position); |
|
|
// motor_cmd_set_position(s_bluetooth_processer.speed_level, s_bluetooth_processer.position, s_bluetooth_processer.direction); |
|
|
|
|
|
|
|
|
motor_cmd_set_position(s_bluetooth_processer.speed_level, s_bluetooth_processer.position, s_bluetooth_processer.direction); |
|
|
receipt_json_set_position(); |
|
|
receipt_json_set_position(); |
|
|
} |
|
|
} |
|
|
if (strcmp(s_bluetooth_processer.order, get_status) == 0) |
|
|
if (strcmp(s_bluetooth_processer.order, get_status) == 0) |
|
|