mirror of https://github.com/ArduPilot/ardupilot
AP_OSD: remove GCS.h from library header files
This commit is contained in:
parent
1b4f200cfd
commit
aea39a1d18
|
@ -36,6 +36,7 @@
|
|||
#include <AP_Notify/AP_Notify.h>
|
||||
#include <AP_Terrain/AP_Terrain.h>
|
||||
#include <AP_RSSI/AP_RSSI.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
|
||||
// macro for easy use of var_info2
|
||||
#define AP_SUBGROUPINFO2(element, name, idx, thisclazz, elclazz) { AP_PARAM_GROUP, idx, name, AP_VAROFFSET(thisclazz, element), { group_info : elclazz::var_info2 }, AP_PARAM_FLAG_NESTED_OFFSET }
|
||||
|
|
|
@ -22,11 +22,13 @@
|
|||
#include <AP_Math/AP_Math.h>
|
||||
#include <AP_ESC_Telem/AP_ESC_Telem.h>
|
||||
#include <RC_Channel/RC_Channel.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
#include <GCS_MAVLink/GCS_config.h>
|
||||
#include <AP_OLC/AP_OLC.h>
|
||||
#include <AP_MSP/msp.h>
|
||||
#include <AP_Baro/AP_Baro.h>
|
||||
#if HAL_GCS_ENABLED
|
||||
#include <GCS_MAVLink/GCS_MAVLink.h>
|
||||
#endif
|
||||
#include <AC_Fence/AC_Fence_config.h>
|
||||
|
||||
#ifndef OSD_ENABLED
|
||||
|
@ -410,8 +412,8 @@ public:
|
|||
void draw(void) override;
|
||||
#endif
|
||||
#if HAL_GCS_ENABLED
|
||||
void handle_write_msg(const mavlink_osd_param_config_t& packet, const GCS_MAVLINK& link);
|
||||
void handle_read_msg(const mavlink_osd_param_show_config_t& packet, const GCS_MAVLINK& link);
|
||||
void handle_write_msg(const mavlink_osd_param_config_t& packet, const class GCS_MAVLINK& link);
|
||||
void handle_read_msg(const mavlink_osd_param_show_config_t& packet, const class GCS_MAVLINK& link);
|
||||
#endif
|
||||
// get a setting and associated metadata
|
||||
AP_OSD_ParamSetting* get_setting(uint8_t param_idx);
|
||||
|
@ -595,7 +597,7 @@ public:
|
|||
#endif
|
||||
// handle OSD parameter configuration
|
||||
#if HAL_GCS_ENABLED
|
||||
void handle_msg(const mavlink_message_t &msg, const GCS_MAVLINK& link);
|
||||
void handle_msg(const mavlink_message_t &msg, const class GCS_MAVLINK& link);
|
||||
#endif
|
||||
|
||||
// allow threads to lock against OSD update
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
#include <AP_OSD/AP_OSD_Backend.h>
|
||||
#include <AP_HAL/Util.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
#include <ctype.h>
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
|
||||
#if HAL_WITH_MSP_DISPLAYPORT
|
||||
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
|
||||
static const struct AP_Param::defaults_table_struct defaults_table[] = {
|
||||
/*
|
||||
{ "PARAM_NAME", value_float }
|
||||
|
@ -131,4 +133,4 @@ AP_OSD_Backend *AP_OSD_MSP_DisplayPort::probe(AP_OSD &osd)
|
|||
}
|
||||
return backend;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <AP_Vehicle/AP_Vehicle_Type.h>
|
||||
#include <AP_Arming/AP_Arming.h>
|
||||
#include <AP_Vehicle/AP_Vehicle_Type.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
|
||||
extern const AP_HAL::HAL& hal;
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "AP_OSD.h"
|
||||
#include <AP_Vehicle/AP_Vehicle_Type.h>
|
||||
#include <GCS_MAVLink/GCS.h>
|
||||
#include <SRV_Channel/SRV_Channel.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue