2022-07-14 02:23:04 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_HAL/AP_HAL_Boards.h>
|
2023-08-03 00:31:40 -03:00
|
|
|
#include <AP_Relay/AP_Relay_config.h>
|
2022-07-14 02:23:04 -03:00
|
|
|
|
|
|
|
#ifndef HAL_GCS_ENABLED
|
|
|
|
#define HAL_GCS_ENABLED 1
|
|
|
|
#endif
|
2022-10-14 21:50:49 -03:00
|
|
|
|
|
|
|
// BATTERY2 is slated to be removed:
|
|
|
|
#ifndef AP_MAVLINK_BATTERY2_ENABLED
|
|
|
|
#define AP_MAVLINK_BATTERY2_ENABLED 1
|
|
|
|
#endif
|
2023-03-16 03:14:28 -03:00
|
|
|
|
2023-08-01 22:44:09 -03:00
|
|
|
#ifndef HAL_HIGH_LATENCY2_ENABLED
|
|
|
|
#define HAL_HIGH_LATENCY2_ENABLED 1
|
|
|
|
#endif
|
|
|
|
|
2023-03-16 03:14:28 -03:00
|
|
|
// handling of MISSION_SET_CURRENT (the message) is slated to be
|
|
|
|
// removed. It has signficant deficiencies vs MAV_CMD_DO_SET_CURRENT.
|
|
|
|
// The command was added to the spec in January 2019 and to MAVLink in
|
|
|
|
// ArduPilot in 4.1.x
|
|
|
|
#ifndef AP_MAVLINK_MISSION_SET_CURRENT_ENABLED
|
|
|
|
#define AP_MAVLINK_MISSION_SET_CURRENT_ENABLED 1
|
|
|
|
#endif
|
2022-10-26 23:46:13 -03:00
|
|
|
|
|
|
|
// AUTOPILOT_VERSION_REQUEST is slated to be removed; an instance of
|
|
|
|
// AUTOPILOT_VERSION can be requested with MAV_CMD_REQUEST_MESSAGE,
|
|
|
|
// which gets you an ACK/NACK
|
|
|
|
#ifndef AP_MAVLINK_AUTOPILOT_VERSION_REQUEST_ENABLED
|
|
|
|
#define AP_MAVLINK_AUTOPILOT_VERSION_REQUEST_ENABLED 1
|
|
|
|
#endif
|
2022-10-26 23:52:41 -03:00
|
|
|
|
|
|
|
// handling of MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES is slated to be
|
|
|
|
// removed; the message can be requested with MAV_CMD_REQUEST_MESSAGE
|
|
|
|
#ifndef AP_MAVLINK_MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES_ENABLED
|
|
|
|
#define AP_MAVLINK_MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES_ENABLED 1
|
|
|
|
#endif
|
2023-05-14 22:44:22 -03:00
|
|
|
|
|
|
|
#ifndef HAL_MAVLINK_INTERVALS_FROM_FILES_ENABLED
|
|
|
|
#define HAL_MAVLINK_INTERVALS_FROM_FILES_ENABLED ((AP_FILESYSTEM_FATFS_ENABLED || AP_FILESYSTEM_POSIX_ENABLED) && BOARD_FLASH_SIZE > 1024)
|
|
|
|
#endif
|
|
|
|
|
2023-08-03 00:31:40 -03:00
|
|
|
#ifndef AP_MAVLINK_MSG_RELAY_STATUS_ENABLED
|
|
|
|
#define AP_MAVLINK_MSG_RELAY_STATUS_ENABLED HAL_GCS_ENABLED && AP_RELAY_ENABLED
|
|
|
|
#endif
|
2023-06-21 04:25:06 -03:00
|
|
|
|
|
|
|
// allow removal of developer-centric mavlink commands
|
|
|
|
#ifndef AP_MAVLINK_FAILURE_CREATION_ENABLED
|
|
|
|
#define AP_MAVLINK_FAILURE_CREATION_ENABLED 1
|
|
|
|
#endif
|