mirror of https://github.com/ArduPilot/ardupilot
Plane: let GCS superclass specify compass and param float capabilitiy
This commit is contained in:
parent
976acb3a58
commit
ba90a1a5df
|
@ -1389,7 +1389,6 @@ void GCS_MAVLINK_Plane::handle_mission_set_current(AP_Mission &mission, const ma
|
||||||
uint64_t GCS_MAVLINK_Plane::capabilities() const
|
uint64_t GCS_MAVLINK_Plane::capabilities() const
|
||||||
{
|
{
|
||||||
return (MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT |
|
return (MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT |
|
||||||
MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT |
|
|
||||||
MAV_PROTOCOL_CAPABILITY_COMMAND_INT |
|
MAV_PROTOCOL_CAPABILITY_COMMAND_INT |
|
||||||
MAV_PROTOCOL_CAPABILITY_MISSION_INT |
|
MAV_PROTOCOL_CAPABILITY_MISSION_INT |
|
||||||
MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT |
|
MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT |
|
||||||
|
@ -1397,6 +1396,5 @@ uint64_t GCS_MAVLINK_Plane::capabilities() const
|
||||||
#if AP_TERRAIN_AVAILABLE
|
#if AP_TERRAIN_AVAILABLE
|
||||||
(plane.terrain.enabled() ? MAV_PROTOCOL_CAPABILITY_TERRAIN : 0) |
|
(plane.terrain.enabled() ? MAV_PROTOCOL_CAPABILITY_TERRAIN : 0) |
|
||||||
#endif
|
#endif
|
||||||
MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATION |
|
|
||||||
GCS_MAVLINK::capabilities());
|
GCS_MAVLINK::capabilities());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue