Plane: let GCS superclass specify compass and param float capabilitiy

This commit is contained in:
Peter Barker 2019-10-29 11:47:44 +11:00 committed by Andrew Tridgell
parent 976acb3a58
commit ba90a1a5df
1 changed files with 0 additions and 2 deletions

View File

@ -1389,7 +1389,6 @@ void GCS_MAVLINK_Plane::handle_mission_set_current(AP_Mission &mission, const ma
uint64_t GCS_MAVLINK_Plane::capabilities() const
{
return (MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT |
MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT |
MAV_PROTOCOL_CAPABILITY_COMMAND_INT |
MAV_PROTOCOL_CAPABILITY_MISSION_INT |
MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT |
@ -1397,6 +1396,5 @@ uint64_t GCS_MAVLINK_Plane::capabilities() const
#if AP_TERRAIN_AVAILABLE
(plane.terrain.enabled() ? MAV_PROTOCOL_CAPABILITY_TERRAIN : 0) |
#endif
MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATION |
GCS_MAVLINK::capabilities());
}