#$ TITLE: Reset GPS to 4.5 default settings
#$ FIRMWARE_VERSION: 4.5
#$ CATEGORY: OTHER
#$ STATUS: OFFICIAL
#$ KEYWORDS: defaults, reset, GPS, GPS_Rescue
#$ AUTHOR: Betaflight
#$ DESCRIPTION: Resets the GPS and GPS_RESCUE settings to 4.5 defaults
#$ DESCRIPTION: Optionally enable GPS and GPS_RESCUE, default is off
#$ DESCRIPTION: Optionally disable Mag, best to disable 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_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 = 30
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_max_angle = 45
set gps_rescue_roll_mix = 150
set gps_rescue_pitch_cutoff = 75

set gps_rescue_descent_dist = 20
set gps_rescue_descend_rate = 150
set gps_rescue_landing_alt = 4
set gps_rescue_disarm_threshold = 20

set gps_rescue_throttle_min = 1100
set gps_rescue_throttle_max = 1700
set gps_rescue_throttle_hover = 1275

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_throttle_p = 15
set gps_rescue_throttle_i = 15
set gps_rescue_throttle_d = 20
set gps_rescue_velocity_p = 8
set gps_rescue_velocity_i = 40
set gps_rescue_velocity_d = 12
set gps_rescue_yaw_p = 20

set gps_rescue_use_mag = ON
set gps_rescue_imu_yaw_gain = 10

feature -GPS

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

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

#$ OPTION BEGIN (UNCHECKED): disable Mag?
set gps_rescue_use_mag = OFF
#$ OPTION END

