Skip to content

Instantly share code, notes, and snippets.

@dz0ny
Last active November 3, 2023 10:31
Show Gist options
  • Save dz0ny/4ff4c7cad2bf55ec00e929c86faf7b51 to your computer and use it in GitHub Desktop.
Save dz0ny/4ff4c7cad2bf55ec00e929c86faf7b51 to your computer and use it in GitHub Desktop.
# diff full
# version
# INAV/SPEEDYBEEF405V3 7.0.0 Oct 29 2023 / 09:23:34 (6c0b501a)
# GCC-10.3.1 20210824 (release)
# start the command batch
batch start
# resources
# Timer overrides
# Outputs [servo]
# safehome
# features
feature -BLACKBOX
feature GPS
feature LED_STRIP
feature PWM_OUTPUT_ENABLE
# beeper
# blackbox
blackbox -NAV_ACC
blackbox NAV_POS
blackbox NAV_PID
blackbox MAG
blackbox ACC
blackbox ATTI
blackbox RC_DATA
blackbox RC_COMMAND
blackbox MOTORS
blackbox -GYRO_RAW
blackbox -PEAKS_R
blackbox -PEAKS_P
blackbox -PEAKS_Y
# Receiver: Channel map
# Ports
serial 0 33554432 115200 115200 0 115200
serial 5 2 115200 115200 0 115200
# LEDs
# LED color
# LED mode_color
# Modes [aux]
aux 0 0 0 1800 2100
aux 1 2 1 900 1600
aux 2 2 2 900 1200
aux 3 2 2 1800 2100
aux 4 53 1 900 1200
aux 5 11 2 900 1200
aux 6 10 2 1800 2100
aux 7 3 1 900 1200
aux 8 3 2 900 1200
# Adjustments [adjrange]
# Receiver rxrange
# temp_sensor
# Mission Control Waypoints [wp]
#wp 0 invalid
# OSD [osd_layout]
osd_layout 0 0 23 0 H
osd_layout 0 1 12 0 H
osd_layout 0 2 0 0 V
osd_layout 0 3 8 6 V
osd_layout 0 4 8 6 V
osd_layout 0 7 3 1 V
osd_layout 0 9 18 4 V
osd_layout 0 11 3 14 V
osd_layout 0 12 8 15 V
osd_layout 0 14 36 15 V
osd_layout 0 15 27 4 V
osd_layout 0 22 25 4 V
osd_layout 0 23 27 2 V
osd_layout 0 24 19 3 V
osd_layout 0 28 3 16 V
osd_layout 0 30 12 17 V
osd_layout 0 31 44 15 V
osd_layout 0 32 7 14 V
osd_layout 0 34 21 1 V
osd_layout 0 38 3 15 V
osd_layout 0 40 9 16 V
osd_layout 0 48 3 17 H
osd_layout 0 85 28 3 V
osd_layout 0 96 19 2 V
osd_layout 0 97 36 16 V
osd_layout 0 110 3 2 V
# Programming: logic
# Programming: global variables
# Programming: PID controllers
# master
set looptime = 500
set gyro_main_lpf_hz = 110
set gyro_main_lpf_type = PT1
set gyro_use_dyn_lpf = ON
set gyro_dyn_lpf_min_hz = 125
set gyro_dyn_lpf_max_hz = 250
set gyro_dyn_lpf_curve_expo = 3
set dynamic_gyro_notch_q = 300
set dynamic_gyro_notch_min_hz = 120
set dynamic_gyro_notch_mode = 3D
set setpoint_kalman_q = 200
set gyro_zero_x = 2
set gyro_zero_y = -3
set gyro_zero_z = 2
set ins_gravity_cmss = 979.296
set acc_hardware = BMI270
set acczero_x = -50
set acczero_y = -9
set acczero_z = 24
set accgain_x = 3942
set accgain_y = 4065
set accgain_z = 4054
set align_mag = CW180FLIP
set mag_hardware = QMC5883
set mag_declination = 430
set magzero_x = -8
set magzero_y = -836
set magzero_z = 82
set maggain_x = 1450
set maggain_y = 1459
set maggain_z = 1469
set align_mag_pitch = 1580
set align_mag_yaw = 1800
set baro_hardware = SPL06
set serialrx_provider = CRSF
set blackbox_rate_denom = 2
set motor_pwm_protocol = DSHOT300
set failsafe_procedure = RTH
set applied_defaults = 2
set gps_sbas_mode = EGNOS
set gps_ublox_use_galileo = ON
set gps_ublox_use_beidou = ON
set airmode_type = THROTTLE_THRESHOLD
set nav_auto_speed = 856
set nav_manual_speed = 2000
set nav_land_maxalt_vspd = 400
set nav_rth_alt_control_override = ON
set nav_rth_home_altitude = 3000
set nav_rth_linear_descent_start_distance = 100
set nav_rth_use_linear_descent = ON
set nav_mc_bank_angle = 45
set nav_mc_braking_timeout = 5000
set nav_mc_braking_bank_angle = 45
set osd_video_system = AVATAR
set osd_crsf_lq_format = TYPE2
set osd_switch_indicators_align_left = OFF
set i2c_speed = 800KHZ
set tz_automatic_dst = EU
# mixer_profile
mixer_profile 1
set motor_direction_inverted = ON
set model_preview_type = 3
# Mixer: motor mixer
mmix reset
mmix 0 1.000 -1.000 1.000 -1.000
mmix 1 1.000 -1.000 -1.000 1.000
mmix 2 1.000 1.000 1.000 1.000
mmix 3 1.000 1.000 -1.000 -1.000
# Mixer: servo mixer
# profile
profile 1
set mc_p_pitch = 35
set mc_i_pitch = 45
set mc_cd_pitch = 150
set mc_p_roll = 33
set mc_i_roll = 43
set mc_d_roll = 20
set mc_cd_roll = 135
set mc_p_yaw = 40
set mc_i_yaw = 40
set mc_cd_yaw = 100
set max_angle_inclination_rll = 450
set max_angle_inclination_pit = 450
set dterm_lpf_hz = 135
set pidsum_limit = 1000
set pidsum_limit_yaw = 1000
set d_boost_min = 1.000
set d_boost_max = 1.500
set antigravity_gain = 3.000
set antigravity_accelerator = 5.000
set smith_predictor_delay = 1.447
set tpa_rate = 20
set rc_expo = 80
set rc_yaw_expo = 80
set roll_rate = 100
set pitch_rate = 100
set yaw_rate = 70
# battery_profile
battery_profile 1
set battery_capacity = 3200
set battery_capacity_warning = 320
set battery_capacity_critical = 160
set throttle_idle = 5.000
set failsafe_throttle = 1260
set nav_mc_hover_thr = 1350
# save configuration
save
# end the command batch
batch end
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment