menuconfig MODULES_NAVIGATOR
	bool "navigator"
	default n
	---help---
		Enable support for navigator

menuconfig USER_NAVIGATOR
	bool "navigator running as userspace module"
	default y
	depends on BOARD_PROTECTED && MODULES_NAVIGATOR
	---help---
		Put navigator in userspace memory

menuconfig MODE_NAVIGATOR_VTOL_TAKEOFF
	bool "Include VTOL takeoff mode support"
	default n
	depends on MODULES_NAVIGATOR
	---help---
		Add VTOL takeoff mode to enable support for MAV_CMD_NAV_VTOL_TAKEOFF.
		The VTOL takes off in MC mode and transition to FW. The mode ends with
		an infinite loiter

menuconfig NAVIGATOR_ADSB
	bool "Include traffic reporting and avoidance"
	default y
	depends on MODULES_NAVIGATOR
	---help---
		Evaluate cooperative traffic reports and request configured warnings or
		navigation actions. The crosstrack conflict model is built by default;
		enabling NAVIGATOR_ADSB_F3442 selects the F3442-derived model instead.

menuconfig NAVIGATOR_ADSB_F3442
	bool "Use F3442-derived traffic conflict evaluation"
	default n
	depends on NAVIGATOR_ADSB
	---help---
		Build the conflict model based on selected ASTM F3442 alert concepts
		instead of the crosstrack model. This option alone does not establish
		compliance.

menuconfig NAVIGATOR_GEOFENCE_AVOIDANCE
	bool "Include geofence avoidance path planning for Return mode"
	default y
	depends on MODULES_NAVIGATOR
	---help---
		Add support for Return mode to route around geofences.
		The node budget (and thus RAM usage) is set at runtime with GF_AVOID_NODES.

menuconfig NAVIGATOR_GEOFENCE_PATH_CHECKS
	bool "Check the mission flight path against the geofence at upload"
	default y
	depends on MODULES_NAVIGATOR
	---help---
		Reject an uploaded mission whose flight path crosses a geofence, not only a
		mission with a waypoint outside it. Boards without the flash for it keep the
		waypoint-only check.

menuconfig NAVIGATOR_ADSB_FAKE_TRAFFIC
	bool "Include fake-traffic injection for DAA testing"
	default n
	depends on NAVIGATOR_ADSB
	---help---
		Adds the `navigator fake_traffic` shell command and the scripted scenarios
		used to validate the Detect and Avoid pipeline without a real transponder.

config NAVIGATOR_FULL_MISSION_CACHE_SIZE
	int "Maximum number of mission items cached for route planning"
	default 500 if PLATFORM_POSIX
	default 0
	range 0 NUM_MISSION_ITEMS_SUPPORTED
	depends on MODULES_NAVIGATOR
	---help---
		Maximum number of mission items reserved in RAM for full-route planning helpers:
		56 bytes per item, allocated once at Navigator start. Set to 0 to disable the
		cache on boards without the extra RAM. Longer missions are not cached at all.
		After upload or reboot the cache refills asynchronously. Navigator polls the
		Dataman response subscription while each read is pending, then immediately
		queues the next item without blocking its main loop.

config NAVIGATOR_SAFE_POINT_BATCH_SIZE
	int "Rally points per route planning batch"
	default 32 if BOARD_TESTING
	default 16
	range 16 32
	depends on MODULES_NAVIGATOR
	---help---
		Number of rally points the route planner projects onto the mission
		route in one pass. Each batch takes one pass over the route.
		The minimum of 16 keeps planning fast by limiting the number of
		passes. The maximum of 32 is the number of rally points that can be
		stored, so they all fit in one batch.
		Each slot uses 312 bytes of static RAM, plus 1.4 KB in total for
		geofence path checks. Only used when NAVIGATOR_FULL_MISSION_CACHE_SIZE
		is above 0.
