mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 14:58:53 +08:00
px4_work_queue: command line status output and shutdown empty queues
* adds a work_queue systemcmd that will bring a tree view of all active work queues and work items * WorkQueues now track attached WorkItems and will shutdown when the last WorkItem is detached
This commit is contained in:
@@ -192,7 +192,7 @@ static uint8_t crc8(uint8_t *p, uint8_t len)
|
||||
|
||||
TERARANGER::TERARANGER(const int bus, const uint8_t orientation, const int address) :
|
||||
I2C("TERARANGER", TERARANGER_DEVICE_PATH, bus, address, 100000),
|
||||
ScheduledWorkItem(px4::device_bus_to_wq(get_device_id())),
|
||||
ScheduledWorkItem(MODULE_NAME, px4::device_bus_to_wq(get_device_id())),
|
||||
_orientation(orientation)
|
||||
{
|
||||
// up the retries since the device misses the first measure attempts
|
||||
|
||||
Reference in New Issue
Block a user