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

Controller Stick Commands that select a Profile prevents arming #635

Open
DLLarson opened this issue Jul 3, 2021 · 0 comments
Open

Controller Stick Commands that select a Profile prevents arming #635

DLLarson opened this issue Jul 3, 2021 · 0 comments

Comments

@DLLarson
Copy link

DLLarson commented Jul 3, 2021

Describe the bug
When I try to switch the current PID profile using controller stick commands (https://github.com/emuflight/EmuFlight/blob/master/docs/Controls.md) the flight controller won't arm or respond anymore. Note that trimming the accelerometer using stick commands works fine.

To Reproduce
Briefly test fly with the current default Profile. land, disarm and use the remote controller to select a different profile. In nearly all cases the flight controller stops responding. If I connect to EmuFlight Configurator via USB without disconnecting battery after the "hang" the configurator can't connect. Cycling power on the quad restores communication.

Expected behavior
The selected profile to be selected and arming should be possible. However in most cases the controller with stop responding unless I cycle power on the quad. Sometimes it'll properly select the profile once or twice and then fail. I can't see an obvious pattern.

Flight controller configuration

# diff all
# version
# EmuFlight / BETAFPVF405 (BEFH) 0.3.4 Apr 16 2021 / 19:14:59 (1014a9331) MSP API: 1.50
board_name 
manufacturer_id 
mcu_id 002b00424230501520323435
signature 
# reset configuration to default settings
defaults nosave
# name
name 95x-v3-emu
# resources
resource MOTOR 1 A03
resource MOTOR 2 A02
resource MOTOR 3 B00
resource MOTOR 4 B01
# mixer
# servo
# servo mix
# feature
feature -AIRMODE
# beeper
beeper -ARMED
# beacon
beacon RX_LOST
beacon RX_SET
# map
# serial
serial 2 64 115200 57600 0 115200
serial 3 1 115200 57600 0 115200
serial 5 2048 115200 57600 0 115200
# led
# color
# mode_color
# aux
aux 0 0 0 1700 2100 0 0
aux 1 1 1 900 1300 0 0
aux 2 13 1 1700 2100 0 0
aux 3 35 2 1350 2100 0 0
# adjrange
# rxrange
# vtx
# rxfail
# master
set align_gyro = CW270FLIP
set imuf_roll_q = 6500
set imuf_pitch_q = 6500
set imuf_yaw_q = 6500
set imuf_sharpness = 1
set acc_trim_pitch = 32
set acc_trim_roll = -12
set acc_calibration = 74,142,-4425
set mag_hardware = NONE
set rssi_channel = 16
set fpv_mix_degrees = 10
set sbus_baud_fast = ON
set blackbox_device = NONE
set current_meter = ADC
set battery_meter = ADC
set ibata_scale = 560
set ibata_offset = -500
set ibatv_scale = 600
set yaw_motors_reversed = ON
set osd_units = IMPERIAL
set osd_warn_arming_disable = ON
set osd_warn_batt_not_full = ON
set osd_warn_batt_warning = OFF
set osd_warn_batt_critical = ON
set osd_warn_visual_beeper = ON
set osd_warn_crash_flip = ON
set osd_warn_esc_fail = ON
set osd_warn_core_temp = OFF
set osd_warn_rc_smoothing = ON
set osd_warn_dji = OFF
set osd_vbat_pos = 385
set osd_rssi_pos = 2425
set osd_tim_2_pos = 2071
set osd_flymode_pos = 2489
set osd_throttle_pos = 2444
set osd_vtx_channel_pos = 0
set osd_current_pos = 2465
set osd_mah_drawn_pos = 2456
set osd_craft_name_pos = 2475
set osd_avg_cell_voltage_pos = 2434
set osd_battery_usage_pos = 2504

# profile
profile 0

# profile
profile 1
set dterm_lowpass_hz_roll = 100
set dterm_lowpass_hz_pitch = 100
set dterm_lowpass_hz_yaw = 100
set dterm_lowpass2_hz_roll = 250
set dterm_lowpass2_hz_pitch = 250
set dterm_lowpass2_hz_yaw = 250
set smart_dterm_smoothing_roll = 75
set smart_dterm_smoothing_pitch = 75
set smart_dterm_smoothing_yaw = 75
set witchcraft_roll = 6
set witchcraft_pitch = 6
set witchcraft_yaw = 6
set spa_yaw_i = 75
set i_decay = 8
set emu_boost = 0
set emu_boost_yaw = 0
set emu_boost_limit = 0
set emu_boost_limit_yaw = 0
set p_pitch = 68
set i_pitch = 75
set d_pitch = 37
set p_roll = 58
set i_roll = 75
set d_roll = 37
set p_yaw = 75
set i_yaw = 75
set d_yaw = 20

# profile
profile 2
set dterm_lowpass_hz_roll = 100
set dterm_lowpass_hz_pitch = 100
set dterm_lowpass_hz_yaw = 100
set dterm_lowpass2_hz_roll = 250
set dterm_lowpass2_hz_pitch = 250
set dterm_lowpass2_hz_yaw = 250
set smart_dterm_smoothing_roll = 50
set smart_dterm_smoothing_pitch = 50
set smart_dterm_smoothing_yaw = 50
set witchcraft_roll = 3
set witchcraft_pitch = 3
set witchcraft_yaw = 3
set iterm_relax_cutoff = 0
set iterm_relax_cutoff_yaw = 0
set throttle_boost = 0
set i_decay = 5
set emu_boost = 0
set emu_boost_yaw = 0
set emu_boost_limit = 0
set emu_boost_limit_yaw = 0
set dterm_boost = 100
set dterm_boost_limit = 10
set p_pitch = 52
set i_pitch = 60
set d_pitch = 35
set p_roll = 42
set i_roll = 60
set d_roll = 35
set p_yaw = 65
set i_yaw = 60
set d_yaw = 10
# restore original profile selection
profile 2

# rateprofile
rateprofile 0
set thr_mid = 40
set thr_expo = 65
# rateprofile
rateprofile 1
set thr_mid = 40
set thr_expo = 65
set roll_rc_rate = 50
set pitch_rc_rate = 50
set yaw_rc_rate = 50
set roll_expo = 35
set pitch_expo = 40
set yaw_expo = 40
set roll_srate = 50
set pitch_srate = 50
set yaw_srate = 40
set tpa_rate_p = 85
set tpa_rate_i = 155
set tpa_rate_d = 70
set tpa_breakpoint = 1400
# rateprofile
rateprofile 2
# rateprofile
rateprofile 3
# rateprofile
rateprofile 4
# rateprofile
rateprofile 5
# restore original rateprofile selection
rateprofile 1
# save configuration
save

Setup / Versions

  • BETAFPVF405 (BEFH) 0.3.4 - Purchased from Betafpv.com as the Beta95X V3 Whoop Quadcopter (HD Digital VTX.)
  • Caddx Nebula Nano. Also uses the DJI FPV Air Unit remote controller.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant