mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-27 02:58:31 -04:00
AP_OSD: Add option to disable Crosshair on horizon element
This commit is contained in:
parent
9ab0d2e387
commit
8da8b34b49
@ -82,7 +82,7 @@ const AP_Param::GroupInfo AP_OSD::var_info[] = {
|
||||
// @Param: _OPTIONS
|
||||
// @DisplayName: OSD Options
|
||||
// @Description: This sets options that change the display
|
||||
// @Bitmask: 0:UseDecimalPack, 1:InvertedWindPointer, 2:InvertedAHRoll, 3:Convert feet to miles at 5280ft instead of 10000ft
|
||||
// @Bitmask: 0:UseDecimalPack, 1:InvertedWindPointer, 2:InvertedAHRoll, 3:Convert feet to miles at 5280ft instead of 10000ft, 4:DisableCrosshair
|
||||
// @User: Standard
|
||||
AP_GROUPINFO("_OPTIONS", 8, AP_OSD, options, OPTION_DECIMAL_PACK),
|
||||
|
||||
|
@ -476,6 +476,7 @@ public:
|
||||
OPTION_INVERTED_WIND = 1U<<1,
|
||||
OPTION_INVERTED_AH_ROLL = 1U<<2,
|
||||
OPTION_IMPERIAL_MILES = 1U<<3,
|
||||
OPTION_DISABLE_CROSSHAIR = 1U<<4,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
@ -1495,9 +1495,13 @@ void AP_OSD_Screen::draw_horizon(uint8_t x, uint8_t y)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!check_option(AP_OSD::OPTION_DISABLE_CROSSHAIR)) {
|
||||
backend->write(x-1,y, false, "%c%c%c", SYM_AH_CENTER_LINE_LEFT, SYM_AH_CENTER, SYM_AH_CENTER_LINE_RIGHT);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void AP_OSD_Screen::draw_distance(uint8_t x, uint8_t y, float distance)
|
||||
{
|
||||
char unit_icon = u_icon(DISTANCE);
|
||||
|
Loading…
Reference in New Issue
Block a user