#$ TITLE: Reset GPS to 2026.6 default settings
#$ FIRMWARE_VERSION: 2026.6
#$ CATEGORY: OTHER
#$ STATUS: OFFICIAL
#$ KEYWORDS: defaults, reset, GPS, GPS_Rescue
#$ AUTHOR: Betaflight
#$ DESCRIPTION: Resets the GPS and GPS_RESCUE settings to 2026.6 defaults
#$ DESCRIPTION: Optionally enable GPS and GPS_RESCUE, default is off
#$ DESCRIPTION: Optionally enable Mag, default is off unless validated

set gps_provider = UBLOX
set gps_sbas_mode = NONE
set gps_auto_config = ON
set gps_auto_baud = OFF
set gps_ublox_acquire_model = STATIONARY
set gps_ublox_flight_model = AIRBORNE_4G
set gps_update_rate_hz = 10
set gps_ublox_use_galileo = OFF
set gps_ublox_enable_ana = OFF
set gps_set_home_point_once = OFF
set gps_use_3d_speed = OFF
set gps_sbas_integrity = OFF
set gps_ublox_utc_standard = AUTO

set gps_rescue_min_start_dist = 15
set gps_rescue_alt_mode = MAX_ALT
set gps_rescue_initial_climb = 10
set gps_rescue_ascend_rate = 750

set gps_rescue_return_alt = 30
set gps_rescue_ground_speed = 750

set gps_rescue_descent_dist = 20
set gps_rescue_descend_rate = 150

set ap_landing_altitude_m = 4
set ap_hover_throttle = 1275
set ap_throttle_min = 1100
set ap_throttle_max = 1900

set ap_altitude_p = 30
set ap_altitude_i = 30
set ap_altitude_d = 30
set ap_altitude_f = 30

set ap_position_p = 30
set ap_position_i = 30
set ap_position_d = 30
set ap_position_a = 30
set ap_position_f = 30
set ap_position_cutoff = 30
set ap_stop_threshold = 10
set ap_max_angle = 50
set ap_velocity_drag_coeff = 50
set ap_max_velocity = 500

set gps_rescue_allow_arming_without_fix = OFF
set gps_rescue_sanity_checks = RESCUE_SANITY_FS_ONLY
set gps_rescue_min_sats = 8

set gps_rescue_yaw_p = 20

set trust_mag = OFF

feature -GPS

#$ OPTION BEGIN (UNCHECKED): enable GPS?
    feature GPS
#$ OPTION END

#$ OPTION BEGIN (UNCHECKED): enable GPS_RESCUE?
    feature GPS
    set failsafe_procedure = GPS-RESCUE
#$ OPTION END

#$ OPTION BEGIN (UNCHECKED): enable Mag?
    set trust_mag = ON
#$ OPTION END
