AP_OSD: guard constructor requiring MAVLink with HAL_GCS_ENABLED

OSD_PARAM_NONE comes from mavlink headers
This commit is contained in:
Peter Barker 2022-11-08 15:03:43 +11:00 committed by Andrew Tridgell
parent 3ec938fae6
commit 40c420e2dc

View File

@ -349,8 +349,10 @@ public:
static const ParamMetadata _param_metadata[];
#if HAL_GCS_ENABLED
AP_OSD_ParamSetting(uint8_t param_number, bool enabled, uint8_t x, uint8_t y, int16_t key, int8_t idx, int32_t group,
int8_t type = OSD_PARAM_NONE, float min = 0.0f, float max = 1.0f, float incr = 0.001f);
#endif
AP_OSD_ParamSetting(uint8_t param_number);
AP_OSD_ParamSetting(const Initializer& initializer);