mirror of https://github.com/ArduPilot/ardupilot
parent
d56bad781f
commit
2076da3a72
|
@ -47,10 +47,10 @@ public:
|
|||
Proximity_Good
|
||||
};
|
||||
|
||||
// detect and initialise any available rangefinders
|
||||
// detect and initialise any available proximity sensors
|
||||
void init(void);
|
||||
|
||||
// update state of all rangefinders. Should be called at high rate from main loop
|
||||
// update state of all proximity sensors. Should be called at high rate from main loop
|
||||
void update(void);
|
||||
|
||||
// return sensor orientation and yaw correction
|
||||
|
@ -61,7 +61,7 @@ public:
|
|||
Proximity_Status get_status(uint8_t instance) const;
|
||||
Proximity_Status get_status() const;
|
||||
|
||||
// Return the number of range finder instances
|
||||
// Return the number of proximity sensors
|
||||
uint8_t num_sensors(void) const {
|
||||
return num_instances;
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ public:
|
|||
uint8_t get_object_count() const;
|
||||
bool get_object_angle_and_distance(uint8_t object_number, float& angle_deg, float &distance) const;
|
||||
|
||||
// stucture holding distances in 8 directions
|
||||
// structure holding distances in 8 directions
|
||||
struct Proximity_Distance_Array {
|
||||
uint8_t orientation[8]; // orientation (i.e. rough direction) of the distance (see MAV_SENSOR_ORIENTATION)
|
||||
float distance[8]; // distance in meters
|
||||
|
|
Loading…
Reference in New Issue