NEURoboticsClub / Space-Drone-Embedded

Embedded firmware for the Space Building Drone project.
GNU General Public License v3.0
0 stars 0 forks source link

[State] Add a State Machine and RTOS thread and queue #2

Closed jr1221 closed 3 months ago

jr1221 commented 6 months ago

Add a state machine setup with a pretty simple switch statement and enum.

Use a freertos task to be run in the background, waiting for queue get: https://github.com/DiegoPaezA/ESP32-freeRTOS/blob/master/Task_FreeRTOS/main.c Use a queue recieve wait: https://github.com/LetsControltheController/queue/blob/master/main/main.c Then check the enum value passed into the queue, and print the state change that occurs.

Priority should be high, the task should not be pinned.

jr1221 commented 6 months ago

States: