mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 01:05:21 +03:00
Merge pull request #6 from YuxinPan/YuxinPan-patch-2.2
Move max waypoint STATIC_ASSERT to navigation.c to ensure it is properly triggered
This commit is contained in:
commit
06666c8af6
2 changed files with 4 additions and 3 deletions
|
@ -83,6 +83,10 @@ PG_REGISTER_ARRAY(navSafeHome_t, MAX_SAFE_HOMES, safeHomeConfig, PG_SAFE_HOME_CO
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_NAV)
|
#if defined(USE_NAV)
|
||||||
|
|
||||||
|
// waypoint 254, 255 are special waypoints
|
||||||
|
STATIC_ASSERT(NAV_MAX_WAYPOINTS < 254, NAV_MAX_WAYPOINTS_exceeded_allowable_range);
|
||||||
|
|
||||||
#if defined(NAV_NON_VOLATILE_WAYPOINT_STORAGE)
|
#if defined(NAV_NON_VOLATILE_WAYPOINT_STORAGE)
|
||||||
PG_REGISTER_ARRAY(navWaypoint_t, NAV_MAX_WAYPOINTS, nonVolatileWaypointList, PG_WAYPOINT_MISSION_STORAGE, 0);
|
PG_REGISTER_ARRAY(navWaypoint_t, NAV_MAX_WAYPOINTS, nonVolatileWaypointList, PG_WAYPOINT_MISSION_STORAGE, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -67,9 +67,6 @@ bool foundNearbySafeHome(void); // Did we find a safehome nearb
|
||||||
|
|
||||||
#ifndef NAV_MAX_WAYPOINTS
|
#ifndef NAV_MAX_WAYPOINTS
|
||||||
#define NAV_MAX_WAYPOINTS 15
|
#define NAV_MAX_WAYPOINTS 15
|
||||||
|
|
||||||
// waypoint 254, 255 are special waypoints
|
|
||||||
STATIC_ASSERT(NAV_MAX_WAYPOINTS < 254, NAV_MAX_WAYPOINTS_exceeded_allowable_range);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define NAV_ACCEL_CUTOFF_FREQUENCY_HZ 2 // low-pass filter on XY-acceleration target
|
#define NAV_ACCEL_CUTOFF_FREQUENCY_HZ 2 // low-pass filter on XY-acceleration target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue