AP_Proximity: fixup handle_msg comment

This commit is contained in:
Randy Mackay 2022-08-17 10:56:18 +09:00 committed by Andrew Tridgell
parent 7dbbca8d58
commit 1f0a633425
3 changed files with 4 additions and 4 deletions

View File

@ -185,7 +185,7 @@ void AP_Proximity::init()
drivers[instance] = new AP_Proximity_AirSimSITL(*this, state[instance], params[instance]); drivers[instance] = new AP_Proximity_AirSimSITL(*this, state[instance], params[instance]);
break; break;
#endif #endif
} // switch (get_type(instance)) }
if (drivers[instance] != nullptr) { if (drivers[instance] != nullptr) {
// we loaded a driver for this instance, so it must be // 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); 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) void AP_Proximity::handle_msg(const mavlink_message_t &msg)
{ {
for (uint8_t i=0; i<num_instances; i++) { for (uint8_t i=0; i<num_instances; i++) {

View File

@ -116,7 +116,7 @@ public:
// mavlink related methods // mavlink related methods
// //
// handle mavlink DISTANCE_SENSOR messages // handle mavlink messages
void handle_msg(const mavlink_message_t &msg); void handle_msg(const mavlink_message_t &msg);
// methods for mavlink SYS_STATUS message (send_sys_status) // methods for mavlink SYS_STATUS message (send_sys_status)

View File

@ -42,7 +42,7 @@ public:
// get distance upwards in meters. returns true on success // get distance upwards in meters. returns true on success
virtual bool get_upward_distance(float &distance) const { return false; } 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) {} virtual void handle_msg(const mavlink_message_t &msg) {}
// store rangefinder values // store rangefinder values