Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gps related changes for 4.5 #428

Merged
merged 2 commits into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 52 additions & 29 deletions presets/4.5/other/reset_gps.txt
Original file line number Diff line number Diff line change
@@ -1,49 +1,72 @@
#$ TITLE: Reset GPS settings
#$ TITLE: Reset GPS to 4.5 default settings
#$ FIRMWARE_VERSION: 4.5
#$ CATEGORY: OTHER
#$ STATUS: OFFICIAL
#$ KEYWORDS: defaults, reset, GPS
#$ KEYWORDS: defaults, reset, GPS, GPS_Rescue
#$ AUTHOR: Betaflight
#$ DESCRIPTION: Resets the GPS settings to 4.3 defaults
#$ DESCRIPTION: Optionally enable GPS feature, default is off
#$ 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 = NMEA
set gps_provider = UBLOX
set gps_sbas_mode = NONE
set gps_sbas_integrity = OFF
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_mode = AIRBORNE
set gps_set_home_point_once = OFF
set gps_use_3d_speed = OFF
set gps_rescue_angle = 32
set gps_rescue_alt_buffer = 15
set gps_rescue_initial_alt = 50
set gps_rescue_descent_dist = 200
set gps_rescue_landing_alt = 5
set gps_rescue_landing_dist = 10
set gps_rescue_ground_speed = 2000
set gps_rescue_throttle_p = 150
set gps_rescue_throttle_i = 20
set gps_rescue_throttle_d = 50
set gps_rescue_velocity_p = 80
set gps_rescue_velocity_i = 20
set gps_rescue_velocity_d = 15
set gps_rescue_yaw_p = 40
set gps_rescue_throttle_min = 1100
set gps_rescue_throttle_max = 1600
set gps_rescue_ascend_rate = 500
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_throttle_hover = 1280
set gps_rescue_sanity_checks = RESCUE_SANITY_ON
set gps_rescue_min_sats = 8
set gps_rescue_min_dth = 100
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_alt_mode = MAX_ALT
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

Loading