Closed cuav-chen2 closed 1 year ago
The recommendation here is to use canard C++ API for thread-safe application. You will need to have a WITH_SEMAPHORE define like we have in Ardupilot, and a typedef for Semaphore.
Can I ask which RTOS are you using, I will add an example for ChibiOS RTOS.
The recommendation here is to use canard C++ API for thread-safe application. You will need to have a WITH_SEMAPHORE define like we have in Ardupilot, and a typedef for Semaphore.
Can I ask which RTOS are you using, I will add an example for ChibiOS RTOS.
OK. Thank you so much.
Use semaphore to ensure thread safety for operations on tx_queue