Copter: allow OSD for TX-only screens

This commit is contained in:
Andy Piper 2020-10-19 21:31:18 +01:00 committed by Andrew Tridgell
parent 06feecfaf2
commit 304d05f918
2 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@
# include <AP_Button/AP_Button.h>
#endif
#if OSD_ENABLED == ENABLED
#if OSD_ENABLED || OSD_PARAM_ENABLED
#include <AP_OSD/AP_OSD.h>
#endif
@ -442,7 +442,7 @@ private:
FUNCTOR_BIND_MEMBER(&Copter::handle_battery_failsafe, void, const char*, const int8_t),
_failsafe_priorities};
#if OSD_ENABLED == ENABLED
#if OSD_ENABLED || OSD_PARAM_ENABLED
AP_OSD osd;
#endif

View File

@ -709,7 +709,7 @@ const AP_Param::Info Copter::var_info[] = {
// @User: Standard
GSCALAR(rtl_alt_type, "RTL_ALT_TYPE", 0),
#if OSD_ENABLED == ENABLED
#if OSD_ENABLED || OSD_PARAM_ENABLED
// @Group: OSD
// @Path: ../libraries/AP_OSD/AP_OSD.cpp
GOBJECT(osd, "OSD", AP_OSD),