mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Add arming disabled reasons to OSD
This commit is contained in:
parent
1d5145b869
commit
dbbe79a9f4
6 changed files with 30 additions and 18 deletions
|
@ -113,7 +113,8 @@ osd_unittest_SRC := \
|
|||
$(USER_DIR)/common/typeconversion.c \
|
||||
$(USER_DIR)/drivers/display.c \
|
||||
$(USER_DIR)/common/maths.c \
|
||||
$(USER_DIR)/common/printf.c
|
||||
$(USER_DIR)/common/printf.c \
|
||||
$(USER_DIR)/fc/runtime_config.c
|
||||
|
||||
osd_unittest_DEFINES := \
|
||||
OSD
|
||||
|
|
|
@ -48,9 +48,6 @@ extern "C" {
|
|||
|
||||
void osdRefresh(timeUs_t currentTimeUs);
|
||||
|
||||
uint8_t stateFlags;
|
||||
uint8_t armingFlags;
|
||||
uint16_t flightModeFlags;
|
||||
uint16_t rssi;
|
||||
attitudeEulerAngles_t attitude;
|
||||
pidProfile_t *currentPidProfile;
|
||||
|
@ -498,9 +495,8 @@ TEST(OsdTest, TestElementRssi)
|
|||
|
||||
// STUBS
|
||||
extern "C" {
|
||||
bool sensors(uint32_t mask) {
|
||||
UNUSED(mask);
|
||||
return true;
|
||||
void beeperConfirmationBeeps(uint8_t beepCount) {
|
||||
UNUSED(beepCount);
|
||||
}
|
||||
|
||||
bool IS_RC_MODE_ACTIVE(boxId_e boxId) {
|
||||
|
@ -574,7 +570,4 @@ extern "C" {
|
|||
UNUSED(pDisplay);
|
||||
return false;
|
||||
}
|
||||
|
||||
void setArmingDisabled(armingDisableFlags_e flag) { UNUSED(flag); }
|
||||
void unsetArmingDisabled(armingDisableFlags_e flag) { UNUSED(flag); }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue