This is my first time posting here, I am working on my first driver for PX4.
The developer guide states: “A task is scheduled by specifying a fixed time in the future. The advantage is that it uses less RAM, but the task is not allowed to sleep or poll on a message.”
I wanted to ask what the consequences of sleeping in the work_queue are? Is this a single threaded work queue and thus a sleep blocks and prevents other scheduled tasks from executing?
The reason I ask is I am interfacing with an ultrasonic driver over UART and there are many places where I need to wait until the device completes a task before moving on. (ie: take a measurement, write to eeprom, poll on a register write/read response)
Thanks!
Jake