mirror of https://github.com/ArduPilot/ardupilot
GCS_MAVLink: add build_options.py option to remove rallypoint protocol
This commit is contained in:
parent
941e9785d4
commit
7764d1d904
|
@ -3988,7 +3988,7 @@ void GCS_MAVLINK::handle_common_message(const mavlink_message_t &msg)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAL_RALLY_ENABLED
|
#if AP_MAVLINK_RALLY_POINT_PROTOCOL_ENABLED
|
||||||
case MAVLINK_MSG_ID_RALLY_POINT:
|
case MAVLINK_MSG_ID_RALLY_POINT:
|
||||||
case MAVLINK_MSG_ID_RALLY_FETCH_POINT:
|
case MAVLINK_MSG_ID_RALLY_FETCH_POINT:
|
||||||
handle_common_rally_message(msg);
|
handle_common_rally_message(msg);
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include <AP_Rally/AP_Rally.h>
|
#include <AP_Rally/AP_Rally.h>
|
||||||
#include <AP_Logger/AP_Logger.h>
|
#include <AP_Logger/AP_Logger.h>
|
||||||
|
|
||||||
#if HAL_RALLY_ENABLED
|
#if AP_MAVLINK_RALLY_POINT_PROTOCOL_ENABLED
|
||||||
|
|
||||||
void GCS_MAVLINK::handle_rally_point(const mavlink_message_t &msg) const
|
void GCS_MAVLINK::handle_rally_point(const mavlink_message_t &msg) const
|
||||||
{
|
{
|
||||||
|
@ -105,4 +105,4 @@ void GCS_MAVLINK::handle_common_rally_message(const mavlink_message_t &msg)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif //#if HAL_RALLY_ENABLED
|
#endif // AP_MAVLINK_RALLY_POINT_PROTOCOL_ENABLED
|
||||||
|
|
|
@ -49,3 +49,7 @@
|
||||||
#ifndef AP_MAVLINK_FAILURE_CREATION_ENABLED
|
#ifndef AP_MAVLINK_FAILURE_CREATION_ENABLED
|
||||||
#define AP_MAVLINK_FAILURE_CREATION_ENABLED 1
|
#define AP_MAVLINK_FAILURE_CREATION_ENABLED 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef AP_MAVLINK_RALLY_POINT_PROTOCOL_ENABLED
|
||||||
|
#define AP_MAVLINK_RALLY_POINT_PROTOCOL_ENABLED HAL_GCS_ENABLED && HAL_RALLY_ENABLED
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue