mirror of https://github.com/ArduPilot/ardupilot
AP_Proximity: fixup handle_msg comment
This commit is contained in:
parent
7dbbca8d58
commit
1f0a633425
|
@ -185,7 +185,7 @@ void AP_Proximity::init()
|
|||
drivers[instance] = new AP_Proximity_AirSimSITL(*this, state[instance], params[instance]);
|
||||
break;
|
||||
#endif
|
||||
} // switch (get_type(instance))
|
||||
}
|
||||
|
||||
if (drivers[instance] != nullptr) {
|
||||
// we loaded a driver for this instance, so it must be
|
||||
|
@ -310,7 +310,7 @@ bool AP_Proximity::get_object_angle_and_distance(uint8_t object_number, float& a
|
|||
return boundary.get_horizontal_object_angle_and_distance(object_number, angle_deg, distance);
|
||||
}
|
||||
|
||||
// handle mavlink DISTANCE_SENSOR messages
|
||||
// handle mavlink messages
|
||||
void AP_Proximity::handle_msg(const mavlink_message_t &msg)
|
||||
{
|
||||
for (uint8_t i=0; i<num_instances; i++) {
|
||||
|
|
|
@ -116,7 +116,7 @@ public:
|
|||
// mavlink related methods
|
||||
//
|
||||
|
||||
// handle mavlink DISTANCE_SENSOR messages
|
||||
// handle mavlink messages
|
||||
void handle_msg(const mavlink_message_t &msg);
|
||||
|
||||
// methods for mavlink SYS_STATUS message (send_sys_status)
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
// get distance upwards in meters. returns true on success
|
||||
virtual bool get_upward_distance(float &distance) const { return false; }
|
||||
|
||||
// handle mavlink DISTANCE_SENSOR messages
|
||||
// handle mavlink messages
|
||||
virtual void handle_msg(const mavlink_message_t &msg) {}
|
||||
|
||||
// store rangefinder values
|
||||
|
|
Loading…
Reference in New Issue