44 #define DISTANCE_SENSOR_MAV_DISTANCE_SENSOR_LASER 0 45 #define DISTANCE_SENSOR_MAV_DISTANCE_SENSOR_ULTRASOUND 1 46 #define DISTANCE_SENSOR_MAV_DISTANCE_SENSOR_INFRARED 2 47 #define DISTANCE_SENSOR_MAV_DISTANCE_SENSOR_RADAR 3 48 #define DISTANCE_SENSOR_ROTATION_YAW_0 0 49 #define DISTANCE_SENSOR_ROTATION_YAW_45 1 50 #define DISTANCE_SENSOR_ROTATION_YAW_90 2 51 #define DISTANCE_SENSOR_ROTATION_YAW_135 3 52 #define DISTANCE_SENSOR_ROTATION_YAW_180 4 53 #define DISTANCE_SENSOR_ROTATION_YAW_225 5 54 #define DISTANCE_SENSOR_ROTATION_YAW_270 6 55 #define DISTANCE_SENSOR_ROTATION_YAW_315 7 56 #define DISTANCE_SENSOR_ROTATION_FORWARD_FACING 0 57 #define DISTANCE_SENSOR_ROTATION_RIGHT_FACING 2 58 #define DISTANCE_SENSOR_ROTATION_BACKWARD_FACING 4 59 #define DISTANCE_SENSOR_ROTATION_LEFT_FACING 6 60 #define DISTANCE_SENSOR_ROTATION_UPWARD_FACING 24 61 #define DISTANCE_SENSOR_ROTATION_DOWNWARD_FACING 25 62 #define DISTANCE_SENSOR_ROTATION_CUSTOM 100 88 static constexpr uint8_t MAV_DISTANCE_SENSOR_LASER = 0;
89 static constexpr uint8_t MAV_DISTANCE_SENSOR_ULTRASOUND = 1;
90 static constexpr uint8_t MAV_DISTANCE_SENSOR_INFRARED = 2;
91 static constexpr uint8_t MAV_DISTANCE_SENSOR_RADAR = 3;
92 static constexpr uint8_t ROTATION_YAW_0 = 0;
100 static constexpr uint8_t ROTATION_FORWARD_FACING = 0;
101 static constexpr uint8_t ROTATION_RIGHT_FACING = 2;
102 static constexpr uint8_t ROTATION_BACKWARD_FACING = 4;
103 static constexpr uint8_t ROTATION_LEFT_FACING = 6;
104 static constexpr uint8_t ROTATION_UPWARD_FACING = 24;
105 static constexpr uint8_t ROTATION_DOWNWARD_FACING = 25;
106 static constexpr uint8_t ROTATION_CUSTOM = 100;
API for the uORB lightweight object broker.
ORB_DECLARE(distance_sensor)