betaflight / betaflight

Open Source Flight Controller Firmware
GNU General Public License v3.0
8.36k stars 2.96k forks source link

FC won't arm with HDZero VTX #11649

Closed sugaarK closed 3 months ago

sugaarK commented 2 years ago

Describe the bug

when first plug in, the quad will boot up but then it will boot up second time (as you can see from the video). If it only boots up once, then it won't arm. I will then have to replug and wait until it boots up twice. After it boots up twice, I can then arm but as soon as i disarm, the motor still spins for a bit and makes that tone (see video). After all this, then it acts normally (can arm and disarm as per normal)

also

To Reproduce

upgrade your HDzero hardware to 11062022 i tried 22032022 (one rev before) and seemed to have the issue as well. My baseline version one that I have been using with no issue before was like 18122021 (from Dec 2021)

Expected behavior

not whatbyour seeing in the video... also I have issues with my HDzero quads punching into DFU mode randomly with HDzero configured over MSP

Flight controller configuration

Betaflight / STM32H743 (SH74) 4.3.0 Apr 9 2022 / 14:35:19 (norevision) MSP API: 1.44

config: manufacturer_id: JHEF, board_name: JHEH743_AIO, version: d33b629a, date: 2022-03-09T17:23:56Z

start the command batch

batch start

reset configuration to default settings

defaults nosave

board_name JHEH743_AIO manufacturer_id JHEF mcu_id 004600243330510f36363234 signature

name: CGO-UL2

feature

feature -RX_PARALLEL_PWM feature TELEMETRY feature LED_STRIP

serial

serial 1 64 115200 57600 0 115200 serial 5 1 115200 57600 0 115200

beacon

beacon RX_SET

map

map TAER1234

aux

aux 0 0 0 1800 2100 0 0 aux 1 13 2 1800 2100 0 0 aux 2 15 2 900 1200 0 0 aux 3 26 2 1300 1700 0 0 aux 4 35 1 1800 2100 0 0 aux 5 49 2 1300 1700 0 0

vtxtable

vtxtable bands 6 vtxtable channels 8 vtxtable powerlevels 3

master

set gyro_lpf1_static_hz = 0 set gyro_lpf2_static_hz = 300 set dyn_notch_count = 1 set dyn_notch_q = 450 set dyn_notch_min_hz = 125 set dyn_notch_max_hz = 650 set gyro_lpf1_dyn_min_hz = 500 set gyro_lpf1_dyn_max_hz = 1000 set acc_calibration = -46,-17,27,1 set baro_hardware = NONE set rc_smoothing_auto_factor = 25 set rc_smoothing_auto_factor_throttle = 25 set serialrx_provider = CRSF set dshot_idle_value = 300 set dshot_bidir = ON set dshot_bitbang = ON set motor_output_reordering = 1,3,0,2,4,5,6,7 set ibata_scale = 100 set beeper_dshot_beacon_tone = 3 set yaw_motors_reversed = ON set small_angle = 180 set runaway_takeoff_prevention = OFF set simplified_gyro_filter = OFF set simplified_gyro_filter_multiplier = 60 set osd_warn_arming_disable = OFF set osd_warn_batt_not_full = OFF set osd_warn_batt_warning = OFF set osd_warn_visual_beeper = OFF set osd_warn_esc_fail = OFF set osd_warn_core_temp = OFF set osd_warn_rc_smoothing = OFF set osd_warn_no_gps_rescue = OFF set osd_warn_gps_rescue_disabled = OFF set osd_tim1 = 2561 set osd_vbat_pos = 407 set osd_rssi_pos = 26 set osd_link_quality_pos = 2401 set osd_tim_2_pos = 408 set osd_throttle_pos = 2424 set osd_vtx_channel_pos = 1 set osd_current_pos = 391 set osd_mah_drawn_pos = 385 set osd_craft_name_pos = 2433 set osd_warnings_pos = 2377 set osd_avg_cell_voltage_pos = 2456 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_displayport_device = MSP set debug_mode = RX_SIGNAL_LOSS set vtx_band = 4 set vtx_channel = 2 set vtx_power = 1 set displayport_msp_serial = 5 set rpm_filter_fade_range_hz = 100 set name = CGO-UL2

profile 0

profile 0

set dterm_lpf1_dyn_expo = 7 set vbat_sag_compensation = 100 set iterm_relax_cutoff = 20 set iterm_limit = 500 set pidsum_limit_yaw = 1000 set p_pitch = 45 set i_pitch = 85 set d_pitch = 42 set f_pitch = 135 set p_roll = 37 set d_roll = 36 set f_yaw = 80 set d_min_roll = 22 set d_min_pitch = 22 set d_max_gain = 35 set d_max_advance = 0 set feedforward_smooth_factor = 40 set feedforward_jitter_factor = 0 set feedforward_max_rate_limit = 100 set dyn_idle_min_rpm = 50 set simplified_pids_mode = OFF

profile 1

profile 1

set dterm_lpf1_dyn_expo = 7 set vbat_sag_compensation = 100 set iterm_relax_cutoff = 20 set iterm_limit = 500 set pidsum_limit_yaw = 1000 set p_pitch = 45 set i_pitch = 85 set d_pitch = 34 set f_pitch = 135 set p_roll = 37 set d_roll = 30 set f_yaw = 80 set d_min_roll = 22 set d_min_pitch = 22 set d_max_gain = 35 set d_max_advance = 0 set launch_control_mode = PITCHONLY set launch_trigger_throttle_percent = 50 set launch_angle_limit = 65 set thrust_linear = 20 set feedforward_averaging = 2_POINT set feedforward_smooth_factor = 65 set feedforward_jitter_factor = 0 set feedforward_max_rate_limit = 100 set dyn_idle_min_rpm = 50 set simplified_pids_mode = OFF

profile 2

profile 2

set dterm_lpf1_dyn_expo = 7 set vbat_sag_compensation = 100 set iterm_relax_cutoff = 20 set iterm_limit = 500 set pidsum_limit_yaw = 1000 set p_pitch = 45 set i_pitch = 85 set d_pitch = 39 set f_pitch = 135 set p_roll = 37 set d_roll = 32 set f_yaw = 80 set d_min_roll = 22 set d_min_pitch = 22 set d_max_gain = 35 set d_max_advance = 0 set feedforward_averaging = 2_POINT set feedforward_smooth_factor = 65 set feedforward_jitter_factor = 0 set feedforward_max_rate_limit = 100 set dyn_idle_min_rpm = 50 set simplified_pids_mode = OFF

restore original profile selection

profile 1

rateprofile 0

rateprofile 0

set rates_type = BETAFLIGHT set roll_rc_rate = 158 set pitch_rc_rate = 158 set yaw_rc_rate = 128 set roll_expo = 34 set pitch_expo = 34 set yaw_expo = 28 set roll_srate = 43 set pitch_srate = 43 set yaw_srate = 33 set tpa_breakpoint = 1250 set throttle_limit_type = SCALE set throttle_limit_percent = 98

rateprofile 1

rateprofile 1

set thr_mid = 45 set thr_expo = 30 set roll_rc_rate = 22 set pitch_rc_rate = 18 set yaw_rc_rate = 16 set roll_expo = 56 set pitch_expo = 56 set yaw_expo = 56 set roll_srate = 75 set pitch_srate = 60 set yaw_srate = 53 set throttle_limit_type = SCALE set throttle_limit_percent = 98

rateprofile 2

rateprofile 2

set thr_mid = 45 set thr_expo = 30 set roll_rc_rate = 20 set pitch_rc_rate = 18 set yaw_rc_rate = 16 set roll_expo = 56 set pitch_expo = 56 set yaw_expo = 56 set roll_srate = 72 set pitch_srate = 60 set yaw_srate = 53 set throttle_limit_type = SCALE set throttle_limit_percent = 98

rateprofile 3

rateprofile 3

set rates_type = BETAFLIGHT set roll_rc_rate = 100 set pitch_rc_rate = 100 set yaw_rc_rate = 100 set roll_srate = 70 set pitch_srate = 70 set yaw_srate = 70

rateprofile 4

rateprofile 4

set rates_type = BETAFLIGHT set roll_rc_rate = 100 set pitch_rc_rate = 100 set yaw_rc_rate = 100 set roll_srate = 70 set pitch_srate = 70 set yaw_srate = 70

rateprofile 5

rateprofile 5

set rates_type = BETAFLIGHT set roll_rc_rate = 100 set pitch_rc_rate = 100 set yaw_rc_rate = 100 set roll_srate = 70 set pitch_srate = 70 set yaw_srate = 70

restore original rateprofile selection

rateprofile 1

save configuration

save

https://user-images.githubusercontent.com/83344205/173345362-4a93de71-576d-46a5-8475-5e926af2fe60.mp4

Flight controller

JHEH743_AIO

Other components

No response

How are the different components wired up

No response

Add any other context about the problem that you think might be relevant here

No response

haslinghuis commented 2 years ago

Second issue is also reported here: https://github.com/betaflight/betaflight/issues/11516

sugaarK commented 2 years ago

This is a slightly different issue to the dfu issue

haslinghuis commented 2 years ago

If build 18122021 was working it's definite a HDZero firmware issue

matyas-brenner commented 2 years ago

This is a bad name for an issue IMHO. I suggest something like "FC won't arm with HDZero VTX".

matyas-brenner commented 2 years ago

I'm using HDZero Freestyle VTX with firmware rev. 22032022 and don't have this issue. I'm using Mamba H743 FC. It probably won't be as simple as having the VTX on a specific FW version. Maybe a combination with a specific FC or some settings?

sugaarK commented 2 years ago

This is a bad name for an issue IMHO. I suggest something like "FC won't arm with HDZero VTX".

Why it arms but it’s not behaving as it should.. it’s likey flight controller sensitive. Also the dfu issue is also a real issue… Just because you don’t have the issue doesn’t mean it doesn’t exist.

matyas-brenner commented 2 years ago

This is a bad name for an issue IMHO. I suggest something like "FC won't arm with HDZero VTX".

Why it arms but it’s not behaving as it should.. it’s likey flight controller sensitive. Also the dfu issue is also a real issue… Just because you don’t have the issue doesn’t mean it doesn’t exist.

I definitely don't argue that the issue doesn't exist. I'm simply trying to narrow down on which conditions it happens or not. I'd like to point out that you are just repeating my statement "Maybe a combination with a specific FC or some settings?"

github-actions[bot] commented 2 years ago

This issue 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.

bootdsc commented 2 years ago

You can solve this by adding a resistor inline with the RX and another with the TX, 220ohm should do the trick.

To validate before doing the mod just disconnect the VTX TX and RX then boot up and it should be normal otherwise you have a different cause.

As to why this fixes it well it's more to do with poor design of the FC and not the VTX.

sugaarK commented 2 years ago

The dfu mode issue happens on all fcs I have.. tmotor and foxeer f7s. The foxeers are not poorly designed frankly

drobot commented 1 year ago

Hey SugaarK I just started having this issue after I switched to HDZero using an Foxeer H7 board. I have tried multiple firmwares of HDZ and none of them fixed the problem. I am currently on the HDZ Beta and still having the arming issue. Has this been resolved?

NOTE: I found a may to mitigate this problem by simply turning off and on the MSP Display port, and the UART HDZ is tied too. While this is a quick fix, by changing any pid or filter related settings, it starts happening again, which is annoying while trying to tune.

sugaarK commented 1 year ago

I think i heard it was a missing resistor on the VTX uart not sure how we fix it on our side. You can try a higher uart as it seems to be worse on the lower uarts

drobot commented 1 year ago

Currently using UART 7 which is the highest on FoxH7, but I will try another and see what happens

sugaarK commented 1 year ago

Are you on the hdzero discord?

drobot commented 1 year ago

Yes Drobot-Racer#9798

sugaarK commented 1 year ago

Wana ask over there as we have no idea how to fix it on our end

haslinghuis commented 10 months ago

@sugaarK as I cannot confirm myself without having HDZero hw - I think this could be closed?

sugaarK commented 8 months ago

@Prajwal-Koirala thanks for your summery but I think this is fixed now

haslinghuis commented 3 months ago

Fixed according to https://github.com/betaflight/betaflight/issues/11649#issuecomment-1869957783