iNavFlight / inav-configurator

GNU General Public License v3.0
581 stars 310 forks source link

Remove Plane Presets and new Fixed Wing defaults based on Plane type #1184

Closed b14ckyy closed 3 years ago

b14ckyy commented 3 years ago

After some thinking and a lot of tuning help with the same problems over and over again, I had the idea of completely revised INAV defaults for fixed wing.

So my Idea: Completely remove the Flying Wing Presets from configurator. Community engagement on this was close to zero over the years anyway and it caused more trouble than it helped. Just keep quad presets.

During first initialization of the FC, when user is asked for craft type, we should have 2 options: Airplane (with Tail) + Flying Wing (No Tail). The current defaults are way too agressive for many planes out there, especially on wingspans above 1.5m. It is much more appropriate to have very gentle and low values, than too agressive ones for a maiden.

Then the Initial Defaults should be set as following:

For both:

platform_type = AIRPLANE gyro_hardware_lpf = 256HZ set gyro_lpf_hz = 25 gyro_lpf_type = BIQUAD dynamic_gyro_notch_enabled = ON dynamic_gyro_notch_q = 250 dynamic_gyro_notch_min_hz = 30 motor_pwm_protocol = STANDARD rc_yaw_expo = 30 rc_expo = 30 roll_rate = 18 pitch_rate = 9 yaw_rate = 3 nav_fw_pos_z_p = 20 nav_fw_pos_z_d = 5 nav_fw_pos_xy_p = 50 small_angle=180 nav_rth_allow_landing = FS_ONLY nav_rth_altitude = 5000 nav_wp_radius = 1500 throttle_idle = 5.000 applied_defaults = 3 imu_acc_ignore_rate = 10 airmode_type = STICK_CENTER_ONCE nav_rth_climb_first = OFF

For Airplane with Tail Specific:

fw_turn_assist_pitch_gain = 0.5 //Default 1.0 is too high for most planes I have seen so far and attitude controller fights with it in navigation turns max_angle_inclination_rll = 35 //this is the default navigation inclination for roll too nav_fw_bank_angle = 35

fw_p_pitch = 15 fw_i_pitch = 10 fw_ff_pitch = 60 fw_p_roll = 10 fw_i_roll = 8 fw_ff_roll = 40 roll_rate = 18 pitch_rate = 9 fw_p_yaw = 20 fw_i_yaw = 0 fw_ff_yaw = 100

For Airplanes with No Tail (Wings, Drak style, etc):

fw_turn_assist_pitch_gain = 0.2 //With wings 0.2 was the best value I have seen so far that fits most Aircraft for smooth and stable turns max_angle_inclination_rll = 45 //needs more angle due to missing rudder and turns will take forever on 30 nav_fw_bank_angle = 45

fw_p_pitch = 10 fw_i_pitch = 15 fw_ff_pitch = 70 fw_p_roll = 5 fw_i_roll = 8 fw_ff_roll = 35 roll_rate = 18 pitch_rate = 9

b14ckyy commented 3 years ago

PIDs added. They will be tested by pilots during the next days.

Tested Planes:

Stealthwings Raphax 1000mm - stable Eachine Blackwing 680mm - stable Bixler 3 1500mm - stable