Skip to content

Commit

Permalink
Exclude F722
Browse files Browse the repository at this point in the history
  • Loading branch information
Scavanger committed Nov 8, 2024
1 parent a523ad4 commit 39b1012
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/main/fc/runtime_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ typedef enum {
WAS_EVER_ARMED = (1 << 3),
SIMULATOR_MODE_HITL = (1 << 4),
SIMULATOR_MODE_SITL = (1 << 5),

ARMING_DISABLED_GEOZONE = (1 << 6),
ARMING_DISABLED_FAILSAFE_SYSTEM = (1 << 7),
ARMING_DISABLED_NOT_LEVEL = (1 << 8),
Expand Down
1 change: 0 additions & 1 deletion src/main/fc/settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3829,7 +3829,6 @@ groups:
condition: USE_OSD || USE_DJI_HD_OSD
members:
- name: osd_speed_source
condition: USE_GEOZONE
description: "Sets the speed type displayed by the DJI OSD and OSD canvas (FrSky Pixel): GROUND, 3D, AIR"
default_value: "GROUND"
field: speedSource
Expand Down
6 changes: 6 additions & 0 deletions src/main/io/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,8 +866,14 @@ static const char * osdArmingDisabledReasonMessage(void)
return OSD_MESSAGE_STR(OSD_MSG_NO_PREARM);
case ARMING_DISABLED_DSHOT_BEEPER:
return OSD_MESSAGE_STR(OSD_MSG_DSHOT_BEEPER);

case ARMING_DISABLED_GEOZONE:
#ifdef USE_GEOZONE
return OSD_MESSAGE_STR(OSD_MSG_NFZ);
#else
FALLTHROUGH;
#endif

// Cases without message
case ARMING_DISABLED_LANDING_DETECTED:
FALLTHROUGH;
Expand Down
3 changes: 3 additions & 0 deletions src/main/navigation/navigation.c
Original file line number Diff line number Diff line change
Expand Up @@ -4515,13 +4515,16 @@ static navigationFSMEvent_t selectNavEventFromBoxModeInput(void)
return NAV_FSM_EVENT_SWITCH_TO_RTH;
}

#ifdef USE_GEOZONE
if (posControl.flags.sendToActive) {
return NAV_FSM_EVENT_SWITCH_TO_SEND_TO;
}


if (posControl.flags.forcedPosholdActive) {
return NAV_FSM_EVENT_SWITCH_TO_POSHOLD_3D;
}
#endif

/* WP mission activation control:
* canActivateWaypoint & waypointWasActivated are used to prevent WP mission
Expand Down
5 changes: 2 additions & 3 deletions src/main/target/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
#define USE_34CHANNELS
#define MAX_MIXER_PROFILE_COUNT 2
#define USE_SMARTPORT_MASTER
#define USE_GEOZONE
#define MAX_GEOZONES_IN_CONFIG 63
#define MAX_VERTICES_IN_CONFIG 126
#elif !defined(STM32F7)
Expand All @@ -219,10 +220,8 @@
#define SKIP_CLI_COMMAND_HELP
#undef USE_SERIALRX_SPEKTRUM
#undef USE_TELEMETRY_SRXL
#define MAX_GEOZONES_IN_CONFIG 32
#define MAX_VERTICES_IN_CONFIG 64
#endif

#define USE_EZ_TUNE
#define USE_ADAPTIVE_FILTER
#define USE_GEOZONE

0 comments on commit 39b1012

Please sign in to comment.