Browse Source

AP_OSD: change AC_FENCE to AP_FENCE_ENABLED

apm_2208
Iampete1 3 years ago committed by Andrew Tridgell
parent
commit
94004db13f
  1. 2
      libraries/AP_OSD/AP_OSD.h
  2. 4
      libraries/AP_OSD/AP_OSD_Screen.cpp

2
libraries/AP_OSD/AP_OSD.h

@ -276,7 +276,7 @@ private: @@ -276,7 +276,7 @@ private:
void draw_current2(uint8_t x, uint8_t y);
void draw_vtx_power(uint8_t x, uint8_t y);
void draw_hgt_abvterr(uint8_t x, uint8_t y);
#if AC_FENCE
#if AP_FENCE_ENABLED
void draw_fence(uint8_t x, uint8_t y);
#endif
void draw_rngf(uint8_t x, uint8_t y);

4
libraries/AP_OSD/AP_OSD_Screen.cpp

@ -2124,7 +2124,7 @@ void AP_OSD_Screen::draw_hgt_abvterr(uint8_t x, uint8_t y) @@ -2124,7 +2124,7 @@ void AP_OSD_Screen::draw_hgt_abvterr(uint8_t x, uint8_t y)
}
#endif
#if AC_FENCE
#if AP_FENCE_ENABLED
void AP_OSD_Screen::draw_fence(uint8_t x, uint8_t y)
{
AC_Fence *fenceptr = AP::fence();
@ -2201,7 +2201,7 @@ void AP_OSD_Screen::draw(void) @@ -2201,7 +2201,7 @@ void AP_OSD_Screen::draw(void)
DRAW_SETTING(heading);
DRAW_SETTING(wind);
DRAW_SETTING(home);
#if AC_FENCE
#if AP_FENCE_ENABLED
DRAW_SETTING(fence);
#endif
DRAW_SETTING(roll_angle);

Loading…
Cancel
Save