MoppelMat / AirGradient-DIY_Mod

0 stars 0 forks source link

Betaflight question #1

Open Arne-W opened 2 years ago

Arne-W commented 2 years ago

Hi @MoppelMat, I didn't find an other way to contact you than creation this issue :smile: You are the only one I know who uses a Diatone Mamba MK4 with BMI270 gyro stack on a 5 inch quad with betaflight. Could you please send me a diff of your settings or some screenshots of your PIDs and filter settings?? I have a lot of problems with my mk4 stack on my quad. I am using BF4.3 RC6 and it won't fly. I have massive noise problems on every small throttle punch the system freaks out and crashes with the default filter and PID settings. This is my 4th build and I never had such problems and therefore I though I should ask someone who has a flying mk4 stack. It would be very cool if you could help a me little bit.

MoppelMat commented 2 years ago

Hi Arne,

soweit ich weiß, bist du doch such von he? Falls nicht, schreib ich dir später einfach nochmal neu :-).

ja ich hab den stack, aber auf nem 7“ ind nicht 5”… Das macht das tuning aber schwerer und nicht leichter… Du musst bei den filtern für diesen gyro ein paar sachen anders machen. Selbst diatone schreibt dazu auf deren page etwas. Ich schicke dir gern nen diff. Es sollte sogar bereits einer im thread sein von mir…

Schsu mal ob du den findest, sonst schreib ich dir sobald ich aus dem bett bin. :-)

ich hätte sonst Threema als Messenger abseits von hier…

MoppelMat commented 2 years ago

this is my current diff (50Hz Crossfire), GPS with MAG disabled (hopefully be fixed soon by a fellow coder), and some tweaks for the 7", should also "work" on a 5"

defaults nosave

# version
# Betaflight / STM32H743 (SH74) 4.3.0 Mar 27 2022 / 23:36:17 (norevision) MSP API: 1.44
# config: manufacturer_id: DIAT, board_name: MAMBAH743, version: e4b51680, date: 2021-10-04T00:52:01Z

# start the command batch
batch start

# reset configuration to default settings
defaults nosave

board_name MAMBAH743
manufacturer_id DIAT
mcu_id 0045002d3230510a33343930
signature 

# name: Camino7

# resources
resource MOTOR 5 NONE
resource MOTOR 6 NONE
resource MOTOR 7 NONE
resource MOTOR 8 NONE

# feature
feature -RX_PARALLEL_PWM
feature GPS
feature TELEMETRY
feature ESC_SENSOR

# serial
serial 1 1 115200 57600 0 115200
serial 3 0 115200 57600 0 115200
serial 4 2 115200 57600 0 115200
serial 5 1024 115200 57600 0 115200

# beeper
beeper -GYRO_CALIBRATED
beeper -ACC_CALIBRATION
beeper -ACC_CALIBRATION_FAIL
beeper -SYSTEM_INIT
beeper -ON_USB
beeper -CAM_CONNECTION_OPEN
beeper -CAM_CONNECTION_CLOSE

# map
map TAER1234

# aux
aux 0 0 0 1700 2100 0 0
aux 1 2 1 1300 1700 0 0
aux 2 46 1 1700 2100 0 0
aux 3 13 2 1700 2100 0 0
aux 4 35 2 1300 1700 0 0
aux 5 41 4 1700 2100 0 0

# rxfail
rxfail 11 s 800

# master
set gyro_lpf1_static_hz = 0
set gyro_lpf2_static_hz = 250
set dyn_notch_count = 1
set dyn_notch_q = 500
set gyro_lpf1_dyn_min_hz = 0
set acc_calibration = -75,-63,13,1
set align_mag = CW270FLIP
set mag_align_pitch = 1800
set mag_align_yaw = 2700
set mag_bustype = I2C
set mag_i2c_device = 1
set mag_calibration = -186,-110,624
set min_check = 1020
set rssi_channel = 12
set rc_smoothing_auto_factor = 35
set rc_smoothing_auto_factor_throttle = 28
set rc_smoothing_setpoint_cutoff = 12
set rc_smoothing_feedforward_cutoff = 12
set rc_smoothing_throttle_cutoff = 20
set fpv_mix_degrees = 25
set serialrx_provider = CRSF
set blackbox_sample_rate = 1/2
set blackbox_device = NONE
set dshot_bidir = ON
set dshot_bitbang = ON
set motor_pwm_protocol = DSHOT300
set motor_output_reordering = 3,2,1,0,4,5,6,7
set failsafe_delay = 12
set failsafe_procedure = GPS-RESCUE
set align_board_yaw = 180
set vbat_max_cell_voltage = 450
set vbat_min_cell_voltage = 300
set vbat_warning_cell_voltage = 320
set ibata_scale = 80
set beeper_inversion = ON
set beeper_od = OFF
set yaw_motors_reversed = ON
set small_angle = 180
set gps_provider = UBLOX
set gps_sbas_mode = EGNOS
set gps_ublox_use_galileo = ON
set gps_set_home_point_once = ON
set gps_rescue_initial_alt = 30
set gps_rescue_descent_dist = 100
set gps_rescue_ascend_rate = 350
set gps_rescue_sanity_checks = RESCUE_SANITY_FS_ONLY
set gps_rescue_min_sats = 7
set gps_rescue_min_dth = 50
set gps_rescue_allow_arming_without_fix = ON
set gps_rescue_use_mag = OFF
set simplified_gyro_filter = OFF
set osd_warn_link_quality = ON
set osd_vbat_pos = 2401
set osd_rssi_pos = 2050
set osd_link_quality_pos = 2082
set osd_link_tx_power_pos = 2114
set osd_rssi_dbm_pos = 229
set osd_tim_2_pos = 2487
set osd_remaining_time_estimate_pos = 2520
set osd_flymode_pos = 2167
set osd_g_force_pos = 246
set osd_throttle_pos = 2337
set osd_current_pos = 2423
set osd_mah_drawn_pos = 2393
set osd_motor_diag_pos = 171
set osd_craft_name_pos = 2080
set osd_gps_speed_pos = 2135
set osd_gps_lon_pos = 35299
set osd_gps_lat_pos = 35307
set osd_gps_sats_pos = 2138
set osd_home_dir_pos = 2094
set osd_home_dist_pos = 2071
set osd_flight_dist_pos = 2496
set osd_compass_bar_pos = 2058
set osd_altitude_pos = 18487
set osd_debug_pos = 2
set osd_power_pos = 2361
set osd_avg_cell_voltage_pos = 2369
set osd_pit_ang_pos = 2272
set osd_battery_usage_pos = 484
set osd_disarmed_pos = 2347
set osd_nheading_pos = 2068
set osd_esc_tmp_pos = 257
set osd_esc_rpm_pos = 67
set osd_rtc_date_time_pos = 6
set osd_flip_arrow_pos = 2433
set osd_core_temp_pos = 408
set osd_stick_overlay_left_pos = 165
set osd_stick_overlay_right_pos = 177
set osd_stat_max_spd = OFF
set osd_stat_endbatt = ON
set osd_stat_min_rssi = OFF
set osd_stat_bbox = OFF
set osd_stat_bb_no = OFF
set osd_stat_max_g_force = ON
set osd_stat_min_link_quality = ON
set osd_stat_max_fft = ON
set osd_displayport_device = MSP
set debug_mode = GYRO_SCALED
set displayport_msp_serial = 1
set name = Camino7

profile 0

# profile 0
set dterm_lpf1_dyn_min_hz = 97
set dterm_lpf1_dyn_max_hz = 195
set dterm_lpf1_static_hz = 97
set dterm_lpf2_static_hz = 195
set anti_gravity_gain = 5000
set iterm_relax_cutoff = 8
set pidsum_limit = 1000
set p_pitch = 61
set i_pitch = 109
set d_pitch = 107
set f_pitch = 203
set p_roll = 58
set i_roll = 104
set d_roll = 93
set f_roll = 195
set p_yaw = 58
set i_yaw = 104
set f_yaw = 195
set d_min_roll = 70
set d_min_pitch = 79
set thrust_linear = 30
set feedforward_smooth_factor = 20
set feedforward_jitter_factor = 15
set feedforward_boost = 5
set dyn_idle_min_rpm = 20
set simplified_master_multiplier = 130
set simplified_d_gain = 180
set simplified_feedforward_gain = 125
set simplified_dterm_filter_multiplier = 130

profile 1

profile 2

# restore original profile selection
profile 0

rateprofile 0

# rateprofile 0
set roll_rc_rate = 1
set pitch_rc_rate = 1
set yaw_rc_rate = 1
set roll_expo = 55
set pitch_expo = 55
set roll_srate = 80
set pitch_srate = 80

rateprofile 1

rateprofile 2

rateprofile 3

rateprofile 4

rateprofile 5

# restore original rateprofile selection
rateprofile 0

# save configuration
Arne-W commented 2 years ago

Moin, jo auf Deutsch ist ja doch immer ein wenig einfacher. Erstmal vielen Dank für die schnelle Antwort und den Diff. Das mit den filtern hab ich auch schon gemacht - also Gyro lpf auf 250hz biquad aber den D lpf hab ich noch auf default (150hz). Ich werde Deine Filtersettings mal testen - mal schauen was dann so passiert. Ich nutze übrigens auch Threema: Meine Threema-ID: https://threema.id/232F6TXB