betaflight / bidircfg

9 stars 15 forks source link

CLRACINGF4 (Bardwell board) RPM Filter, only motor 2 and 3 will spin #8

Closed mmakam2 closed 5 years ago

mmakam2 commented 5 years ago

Describe the bug Running the bardwell board and 4in1 esc. Normal settings everything works fine, once enabling the settings for rpm filter, only motors 2 and 3 will spin in the motors tab.

To Reproduce add the following cli commands to reproduce:

timer b00 1
timer b01 1
timer b04 none
timer b08 none

dma pin b00 0
dma pin b01 0
dma pin b04 none
dma pin b08 none

# set looptime to 4k to have enough computational time

set gyro_sync_denom = 2
set pid_process_denom = 1

# works most reliably with DShot600

set motor_pwm_protocol=DSHOT600

# basic settings required to enable rpm filtering:

set scheduler_optimize_rate=on
set dshot_burst=off
set dshot_bidir=on

Flight controller configuration This diff does not have the settings above, the below diff is a good diff.

# diff

# version
# Betaflight / CLRACINGF4 (CLR4) 4.0.0 Apr  3 2019 / 13:44:35 (22b9f3453) MSP API: 1.41

# start the command batch
batch start

board_name CLRACINGF4
manufacturer_id 

# name
name RAGINGDRONER

# resources
resource MOTOR 1 B01
resource MOTOR 2 A02
resource MOTOR 3 B00
resource MOTOR 4 A03

# timer

# dma

# mixer

# servo

# servo mix

# feature
feature ESC_SENSOR

# beeper

# beacon
beacon RX_LOST
beacon RX_SET

# map
map TAER1234

# serial
serial 0 64 115200 57600 0 115200
serial 3 1024 115200 57600 0 115200
serial 5 2048 115200 57600 0 115200

# led

# color

# mode_color

# aux
aux 0 0 0 1925 2100 0 0
aux 1 35 1 1900 2100 0 0
aux 2 49 1 1400 1575 0 0

# adjrange

# rxrange

# vtx

# rxfail

# display_name

# master
set dyn_lpf_gyro_min_hz = 140
set dyn_lpf_gyro_max_hz = 600
set acc_calibration = 108,19,97
set rssi_channel = 8
set serialrx_provider = SBUS
set blackbox_p_ratio = 64
set blackbox_device = SPIFLASH
set dshot_idle_value = 500
set motor_pwm_protocol = DSHOT600
set current_meter = ESC
set vbat_scale = 111
set small_angle = 180
set deadband = 3
set yaw_deadband = 3
set pid_process_denom = 1
set osd_units = IMPERIAL
set osd_warn_no_gps_rescue = OFF
set osd_warn_gps_rescue_disabled = OFF
set osd_rssi_pos = 2337
set osd_tim_2_pos = 2071
set osd_vtx_channel_pos = 2528
set osd_craft_name_pos = 2057
set osd_avg_cell_voltage_pos = 2304
set debug_mode = GYRO_SCALED
set cpu_overclock = 216MHZ
set vtx_band = 5
set vtx_power = 4
set vtx_low_power_disarm = ON
set vtx_freq = 5658

# profile
profile 0

set dyn_lpf_dterm_min_hz = 105
set dterm_lowpass2_hz = 105
set feedforward_transition = 10
set smart_feedforward = ON
set iterm_relax = RPY
set iterm_relax_type = GYRO
set p_pitch = 42
set i_pitch = 50
set d_pitch = 30
set p_roll = 36
set d_roll = 33
set f_roll = 75
set p_yaw = 30
set i_yaw = 0
set d_yaw = 20
set f_yaw = 60
set abs_control_gain = 10
set use_integrated_yaw = ON
set d_min_roll = 18
set d_min_pitch = 17
set d_min_boost_gain = 34
set launch_control_mode = PITCHONLY
set launch_trigger_allow_reset = OFF
set launch_angle_limit = 13

# rateprofile
rateprofile 0

set roll_rc_rate = 110
set pitch_rc_rate = 110
set yaw_rc_rate = 117
set roll_srate = 76
set pitch_srate = 76
set yaw_srate = 72
set tpa_rate = 63
set tpa_breakpoint = 1330
set throttle_limit_type = SCALE
set throttle_limit_percent = 95

# end the command batch
batch end

# 
Rclf commented 5 years ago

cl racingf4s1.2 , as soon as turn the rpmfilter on I get various issues. Sometimes 2 motors are not spinning,sometimes 3,Sometimes 1. In all cases the motors are spinning at first and then stop . I used the wiki snippet also set resource beeper 1 to none suggested by etracer on slack. As soon as I turn rpmfilter off, everything runs normal.

stale[bot] commented 5 years ago

This issue / pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within a week.

stale[bot] commented 5 years ago

Automatically closing as inactive.