Skip to content

Commit

Permalink
Copter: let GCS base class handle proximity and rangefinder messages
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Dec 24, 2019
1 parent 0556296 commit a56ab91
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions ArduCopter/GCS_Mavlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1131,23 +1131,6 @@ void GCS_MAVLINK_Copter::handleMessage(const mavlink_message_t &msg)
}
#endif

case MAVLINK_MSG_ID_DISTANCE_SENSOR:
{
copter.rangefinder.handle_msg(msg);
#if PROXIMITY_ENABLED == ENABLED
copter.g2.proximity.handle_msg(msg);
#endif
break;
}

case MAVLINK_MSG_ID_OBSTACLE_DISTANCE:
{
#if PROXIMITY_ENABLED == ENABLED
copter.g2.proximity.handle_msg(msg);
#endif
break;
}

#if HIL_MODE != HIL_MODE_DISABLED
case MAVLINK_MSG_ID_HIL_STATE: // MAV ID: 90
{
Expand Down

0 comments on commit a56ab91

Please sign in to comment.