mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 11:33:33 +08:00
Linux: Added commands to show threads and devices
The list_tasks and list_devices commands will show lists of running px4 threads and created virtual device nodes. The list_builtins command was removes and the list of commands will be shown if return is pressed. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -64,10 +64,10 @@ struct px4_dev_handle_t {
|
||||
int fd;
|
||||
int flags;
|
||||
void *priv;
|
||||
void *cdev;
|
||||
void *vdev;
|
||||
|
||||
px4_dev_handle_t() : fd(-1), flags(0), priv(NULL), cdev(NULL) {}
|
||||
px4_dev_handle_t(int f, void *c, int d) : fd(d), flags(f), priv(NULL), cdev(c) {}
|
||||
px4_dev_handle_t() : fd(-1), flags(0), priv(NULL), vdev(NULL) {}
|
||||
px4_dev_handle_t(int f, void *c, int d) : fd(d), flags(f), priv(NULL), vdev(c) {}
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -333,6 +333,7 @@ public:
|
||||
virtual int ioctl(px4_dev_handle_t *handlep, int cmd, unsigned long arg);
|
||||
|
||||
static VDev *getDev(const char *path);
|
||||
static void showDevices(void);
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user