44 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_GYRO 1 45 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_ACC 2 46 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_MAG 4 47 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_ABSPRESSURE 8 48 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_DIFFPRESSURE 16 49 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_GPS 32 50 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_OPTICALFLOW 64 51 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_CVPOSITION 128 52 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_LASERPOSITION 256 53 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_EXTERNALGROUNDTRUTH 512 54 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_ANGULARRATECONTROL 1024 55 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_ATTITUDESTABILIZATION 2048 56 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_YAWPOSITION 4096 57 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_ALTITUDECONTROL 8192 58 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_POSITIONCONTROL 16384 59 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_MOTORCONTROL 32768 60 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_RCRECEIVER 65536 61 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_GYRO2 131072 62 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_ACC2 262144 63 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_MAG2 524288 64 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_GEOFENCE 1048576 65 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_AHRS 2097152 66 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_TERRAIN 4194304 67 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_REVERSEMOTOR 8388608 68 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_LOGGING 16777216 69 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_SENSORBATTERY 33554432 70 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_SENSORPROXIMITY 67108864 71 #define SUBSYSTEM_INFO_SUBSYSTEM_TYPE_SATCOM 134217728 72 #define SUBSYSTEM_INFO_ORB_QUEUE_LENGTH 5 91 static constexpr uint64_t SUBSYSTEM_TYPE_GYRO = 1;
92 static constexpr uint64_t SUBSYSTEM_TYPE_ACC = 2;
93 static constexpr uint64_t SUBSYSTEM_TYPE_MAG = 4;
94 static constexpr uint64_t SUBSYSTEM_TYPE_ABSPRESSURE = 8;
95 static constexpr uint64_t SUBSYSTEM_TYPE_DIFFPRESSURE = 16;
96 static constexpr uint64_t SUBSYSTEM_TYPE_GPS = 32;
97 static constexpr uint64_t SUBSYSTEM_TYPE_OPTICALFLOW = 64;
98 static constexpr uint64_t SUBSYSTEM_TYPE_CVPOSITION = 128;
99 static constexpr uint64_t SUBSYSTEM_TYPE_LASERPOSITION = 256;
100 static constexpr uint64_t SUBSYSTEM_TYPE_EXTERNALGROUNDTRUTH = 512;
101 static constexpr uint64_t SUBSYSTEM_TYPE_ANGULARRATECONTROL = 1024;
102 static constexpr uint64_t SUBSYSTEM_TYPE_ATTITUDESTABILIZATION = 2048;
103 static constexpr uint64_t SUBSYSTEM_TYPE_YAWPOSITION = 4096;
104 static constexpr uint64_t SUBSYSTEM_TYPE_ALTITUDECONTROL = 8192;
105 static constexpr uint64_t SUBSYSTEM_TYPE_POSITIONCONTROL = 16384;
106 static constexpr uint64_t SUBSYSTEM_TYPE_MOTORCONTROL = 32768;
107 static constexpr uint64_t SUBSYSTEM_TYPE_RCRECEIVER = 65536;
108 static constexpr uint64_t SUBSYSTEM_TYPE_GYRO2 = 131072;
109 static constexpr uint64_t SUBSYSTEM_TYPE_ACC2 = 262144;
110 static constexpr uint64_t SUBSYSTEM_TYPE_MAG2 = 524288;
111 static constexpr uint64_t SUBSYSTEM_TYPE_GEOFENCE = 1048576;
112 static constexpr uint64_t SUBSYSTEM_TYPE_AHRS = 2097152;
113 static constexpr uint64_t SUBSYSTEM_TYPE_TERRAIN = 4194304;
114 static constexpr uint64_t SUBSYSTEM_TYPE_REVERSEMOTOR = 8388608;
115 static constexpr uint64_t SUBSYSTEM_TYPE_LOGGING = 16777216;
116 static constexpr uint64_t SUBSYSTEM_TYPE_SENSORBATTERY = 33554432;
117 static constexpr uint64_t SUBSYSTEM_TYPE_SENSORPROXIMITY = 67108864;
118 static constexpr uint64_t SUBSYSTEM_TYPE_SATCOM = 134217728;
119 static constexpr uint8_t ORB_QUEUE_LENGTH = 5;
API for the uORB lightweight object broker.
ORB_DECLARE(subsystem_info)