Marvee Amasi
DIIDevHeads IoT Integration Server
•Created by Marvee Amasi on 6/24/2024 in #middleware-and-os
How can I debug this communication issue to ensure ControlTask always reads the latest data?
@Middleware & OS I'm working on a robotic arm controlled by FreeRTOS with two tasks;
SensorTask
which continuously reads joint angles and stores them in a shared variable (a global array), and ControlTask
which retrieves sensor data and calculates motor commands every 10ms.
ControlTask
sometimes reads outdated data, causing jittery movements. I've verified SensorTask
updates the variable correctly.
Error Message:
How can I debug this communication issue to ensure ControlTask always reads the latest data?5 replies