Files
simulation/config/ardupilot_gps_denied.parm
2026-02-10 23:40:06 -05:00

73 lines
2.0 KiB
Plaintext

# ArduPilot Parameters for GPS-Denied Navigation Simulation
# =========================================================
# GPS is ENABLED for: Geofence safety, LOCAL_POSITION_NED telemetry
# GPS is SIMULATED DENIED for: Control (using GUIDED_NOGPS mode)
# ====================
# GPS Configuration
# ====================
# Enable GPS (needed for geofence and position telemetry)
GPS_TYPE 1 # Auto-detect
# ====================
# Geofence Settings
# ====================
# Disabled for now - causes "fence requires position" errors
# TODO: Re-enable after basic flight works
FENCE_ENABLE 0
FENCE_TYPE 3 # Alt + Circle
FENCE_ACTION 2 # Land on breach
FENCE_ALT_MAX 10 # Maximum altitude (meters)
FENCE_RADIUS 20 # Circular fence radius (meters)
FENCE_MARGIN 2 # Margin inside fence for warning
# ====================
# EKF Configuration
# ====================
# Use EKF3 with GPS (for telemetry)
AHRS_EKF_TYPE 3
EK3_ENABLE 1
EK2_ENABLE 0
# EKF3 Source - GPS for position (enables LOCAL_POSITION_NED)
EK3_SRC1_POSXY 3 # GPS for XY position
EK3_SRC1_POSZ 1 # Barometer for Z position
EK3_SRC1_VELXY 3 # GPS for XY velocity
EK3_SRC1_VELZ 0 # None for Z velocity
EK3_SRC1_YAW 1 # Compass for yaw
# ====================
# Failsafe Settings
# ====================
FS_EKF_ACTION 1 # Land on EKF failsafe
FS_EKF_THRESH 0.8 # EKF failsafe threshold
FS_GPS_ENABLE 0 # Disable GPS failsafe (we simulate GPS-denied)
# ====================
# Flight Modes
# ====================
FLTMODE1 0 # Stabilize
FLTMODE2 2 # Alt Hold
FLTMODE3 5 # Loiter
FLTMODE4 4 # Guided
FLTMODE5 6 # RTL
FLTMODE6 9 # Land
# ====================
# Scheduler (WSL fix)
# ====================
SCHED_LOOP_RATE 200
# ====================
# Arming / Failsafes
# ====================
ARMING_CHECK 0
FS_THR_ENABLE 0
FS_GCS_ENABLE 0
# ====================
# Logging
# ====================
LOG_BITMASK 176126
LOG_DISARMED 0