Skip to content

Commit

Permalink
Update task priorities in self_balancing.c and tuning_websocket_server.c
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperChamp234 committed Feb 1, 2024
1 parent 7b6ff5e commit ff89c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 7_self_balancing/main/self_balancing.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void app_main()
// Starts tuning server for wireless control
start_websocket_server();
// xTaskCreate -> Create a new task to start plotting the graph
xTaskCreatePinnedToCore(&plot_graph_task, "plot graph task", 4096, (void *)plot_graph_queue, 1, NULL, 1);
xTaskCreatePinnedToCore(&plot_graph_task, "plot graph task", 4096, (void *)plot_graph_queue, 6, NULL, 1);

// xTaskCreate -> Create a new task and add it to the list of tasks that are ready to run
xTaskCreatePinnedToCore(&balance_task, "balance task", 4096, NULL, 1, NULL, 0);
Expand Down
4 changes: 2 additions & 2 deletions 7_self_balancing/main/tuning_websocket_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,6 @@ void start_websocket_server()

// ESP_ERROR_CHECK(init_fs());
ws_server_start();
xTaskCreatePinnedToCore(&server_task, "server_task", 3000, NULL, 9, NULL, 1);
xTaskCreatePinnedToCore(&server_handle_task, "server_handle_task", 4000, NULL, 6, NULL, 1);
xTaskCreatePinnedToCore(&server_task, "server_task", 3000, NULL, 4, NULL, 1);
xTaskCreatePinnedToCore(&server_handle_task, "server_handle_task", 4000, NULL, 3, NULL, 1);
}

0 comments on commit ff89c79

Please sign in to comment.