inav icon indicating copy to clipboard operation
inav copied to clipboard

FAILSAVE RTH -> DISARM

Open mooiweertje opened this issue 7 years ago • 66 comments

Current Behavior

Wing disarms in areas where RXLOSS is often accuring

Steps to Reproduce

  1. install 2.2
  2. use below configuration
  3. fly in area/distance where RXLOSS occurs

Expected behavior

The plane will return home

Suggested solution(s)

Stop further development. Increase degree of testing to level two or three. It's level one now which is too low for aviation. Continuing this way will cause nasty accidents.

Additional context is the configuration before upgrading to 2.2. Version was 2.2 when the wing was lost.

version

INAV/OMNIBUSF7V2 2.1.0 Feb 25 2019 / 16:56:33 (65b0ec142)

GCC-7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]

reset configuration to default settings

defaults noreboot

resources

mixer

mmix 0 1.000 0.000 0.000 0.000

servo mix

smix 0 3 0 100 0 smix 1 3 1 50 0 smix 2 4 0 -100 0 smix 3 4 1 50 0

servo

servo 3 976 1976 1463 -100 servo 4 1006 2006 1472 80

feature

feature -TX_PROF_SEL feature VBAT feature MOTOR_STOP feature GPS feature PWM_OUTPUT_ENABLE feature FW_LAUNCH

beeper

map

serial

serial 5 2 115200 115200 0 115200

aux

aux 0 0 0 1300 2100 aux 1 1 2 900 1300 aux 2 3 1 1300 1700 aux 3 3 0 1700 2100 aux 4 9 1 1300 1700 aux 5 8 1 1700 2100 aux 6 35 0 1700 2100 aux 7 27 3 1300 1700 aux 8 28 3 1700 2100 aux 9 32 5 1200 1500 aux 10 33 5 1500 1800 aux 11 34 5 1800 2100

adjrange

rxrange

temp_sensor

osd_layout

osd_layout 0 0 23 0 H osd_layout 0 1 1 14 V osd_layout 0 3 8 6 H osd_layout 0 4 8 6 H osd_layout 0 6 23 14 V osd_layout 0 7 12 14 V osd_layout 0 9 0 7 V osd_layout 0 13 24 1 V osd_layout 0 14 1 1 H osd_layout 0 15 25 7 V osd_layout 0 16 7 2 H osd_layout 0 17 7 3 H osd_layout 0 22 14 4 V osd_layout 0 23 24 2 H osd_layout 0 26 25 7 H osd_layout 0 28 23 14 H osd_layout 0 31 1 1 V osd_layout 0 34 10 2 H osd_layout 0 46 23 1 H osd_layout 0 53 13 12 H osd_layout 0 55 2 12 H osd_layout 1 1 1 14 V osd_layout 1 6 23 14 V osd_layout 1 7 12 14 V osd_layout 1 9 0 7 V osd_layout 1 13 25 3 V osd_layout 1 14 1 1 V osd_layout 1 15 25 6 V osd_layout 1 16 7 2 H osd_layout 1 17 7 3 H osd_layout 1 22 14 4 V osd_layout 1 23 24 2 V osd_layout 1 25 24 5 V osd_layout 1 26 25 7 V osd_layout 1 28 23 14 H osd_layout 1 30 1 13 V osd_layout 1 31 1 2 V osd_layout 1 46 23 1 V osd_layout 1 53 13 12 H osd_layout 1 55 2 12 H osd_layout 2 1 1 14 V osd_layout 2 3 8 6 V osd_layout 2 4 8 6 V osd_layout 2 6 23 14 V osd_layout 2 7 12 14 V osd_layout 2 9 0 7 V osd_layout 2 13 25 3 V osd_layout 2 14 1 1 V osd_layout 2 15 25 6 V osd_layout 2 16 7 2 H osd_layout 2 17 7 3 H osd_layout 2 20 9 2 V osd_layout 2 21 9 1 V osd_layout 2 22 14 4 V osd_layout 2 23 24 2 V osd_layout 2 25 24 5 V osd_layout 2 26 25 7 V osd_layout 2 28 23 14 H osd_layout 2 30 1 13 V osd_layout 2 31 1 2 V osd_layout 2 46 23 1 V osd_layout 2 53 13 12 H osd_layout 2 55 2 12 H osd_layout 3 1 1 14 V osd_layout 3 3 8 6 V osd_layout 3 4 8 6 V osd_layout 3 6 23 14 V osd_layout 3 7 12 14 V osd_layout 3 9 0 7 V osd_layout 3 13 25 3 V osd_layout 3 14 1 1 V osd_layout 3 15 25 6 V osd_layout 3 16 7 1 V osd_layout 3 17 7 2 V osd_layout 3 22 14 4 V osd_layout 3 23 24 2 V osd_layout 3 25 24 5 V osd_layout 3 26 25 7 V osd_layout 3 28 23 14 H osd_layout 3 30 1 13 V osd_layout 3 31 1 2 V osd_layout 3 46 23 1 V osd_layout 3 53 13 12 H osd_layout 3 55 2 12 H

master

set looptime = 500 set gyro_hardware_lpf = 256HZ set gyro_lpf_hz = 40 set acc_hardware = MPU6000 set acczero_x = 53 set acczero_y = 18 set acczero_z = -90 set accgain_x = 4068 set accgain_y = 4102 set accgain_z = 4051 set mag_hardware = NONE set mag_declination = 110 set magzero_x = 91 set magzero_y = -130 set magzero_z = -71 set baro_hardware = BMP280 set pitot_hardware = NONE set min_throttle = 1100 set max_throttle = 1900 set motor_pwm_rate = 2000 set motor_pwm_protocol = ONESHOT125 set failsafe_procedure = RTH set platform_type = AIRPLANE set model_preview_type = 8 set servo_pwm_rate = 330 set small_angle = 180 set gps_sbas_mode = AUTO set nav_rth_allow_landing = FS_ONLY set nav_rth_altitude = 8000 set nav_rth_home_altitude = 6000 set nav_fw_launch_velocity = 200 set nav_fw_launch_thr = 1500 set nav_fw_launch_idle_thr = 1111 set nav_fw_launch_motor_delay = 100 set nav_fw_launch_spinup_time = 500 set nav_fw_launch_timeout = 10000 set osd_video_system = PAL set name = SkyShadow

profile

profile 1

set fw_p_pitch = 4 set fw_i_pitch = 9 set fw_ff_pitch = 44 set fw_p_roll = 2 set fw_i_roll = 5 set fw_ff_roll = 24 set max_angle_inclination_rll = 600 set max_angle_inclination_pit = 600 set nav_fw_pos_xy_p = 74 set tpa_rate = 20 set tpa_breakpoint = 1600 set roll_rate = 66 set pitch_rate = 28

profile

profile 2

profile

profile 3

battery_profile

battery_profile 1

set bat_cells = 4

battery_profile

battery_profile 2

battery_profile

battery_profile 3

restore original profile selection

profile 1 battery_profile 1

save configuration

save


  • FC Board name and vendor: SPRACINGF3/NOX/OmnibusF7v2/ALL?
  • INAV version string: 2.1/2,2

mooiweertje avatar Jul 05 '19 08:07 mooiweertje

Issue-Label Bot is automatically applying the label BUG to this issue, with a confidence of 0.64. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Jul 05 '19 08:07 issue-label-bot[bot]

Please provide details of your setup. Exact RC receiver model, FC model etc.

Also, you refer to the issue as "often occuring", so you probably have a scenario to reproduce. So, please reproduce and provide logs so we could look into what's happening under the hood.

Maybe you also have DVR recording of the video feed. I'm interested in the period near the disarm moment (a few seconds before/after).

digitalentity avatar Jul 05 '19 09:07 digitalentity

Moving to "Support" label until we confirm the bug.

digitalentity avatar Jul 05 '19 09:07 digitalentity

Steps to reproduce are where they are suppose to be and so is the FC. RC receiver is FrSkyXM+/DevoSBUS/ALL?

mooiweertje avatar Jul 05 '19 09:07 mooiweertje

@mooiweertje please provide details about exact setup that is having the issue. Referring to "ALL" is not helpful.

digitalentity avatar Jul 05 '19 09:07 digitalentity

@mooiweertje are you able to describe your full setup? FC, Receiver and what do you use on the ground, even the Radio settings

giacomo892 avatar Jul 05 '19 09:07 giacomo892

To me it seems that the issue is not related to hardware but software logics. I also saw someone else reporting this is and thought is wat related to the GPS.

mooiweertje avatar Jul 05 '19 09:07 mooiweertje

Are you running a so secret setup that you cannot share with us? Or what? You opened an issue, now we do questions and you provide answers.

giacomo892 avatar Jul 05 '19 09:07 giacomo892

@mooiweertje recently you are the only one who's reporting RTH/failsafe/disarm issue. The rest are flying happily without problems. It's likely related to a combination of hardware pieces, most likely your RX receiver and/or your radio.

If you fail to provide details about specific setup we won't be able to help

digitalentity avatar Jul 05 '19 09:07 digitalentity

@mooiweertje please provide details about exact setup that is having the issue. Referring to "ALL" is not helpful.

With all I mean all my setups and friends as well. Three examples are SPRACINGF3,NOX and OmnibusF7v2. So I think it is ALL really, which is meant to be helpful.

mooiweertje avatar Jul 05 '19 09:07 mooiweertje

With all I mean all my setups and friends as well. Three examples are SPRACINGF3,NOX and OmnibusF7v2. So I think it is ALL really, which is meant to be helpful.

Now the new question - what are all of your friends' setups have in common? Same receiver model? Same radio failsafe settings?

digitalentity avatar Jul 05 '19 09:07 digitalentity

My RADIO is a T8SG plus. Receiver Devo SBUS.

mooiweertje avatar Jul 05 '19 09:07 mooiweertje

Me and friends have nothing in common and they may have different issues. Forget about friends for now. Maybe it is radio related since I have an exotic radio setup.

mooiweertje avatar Jul 05 '19 09:07 mooiweertje

Make sure your receiver is set to "no pulses" or at least is configured to keep channel values on failsafe. SBUS protocol has a specific flag to signal a failsafe, but if you configure specific channel values - FC will happily execute what it's told to do by your radio receiver.

digitalentity avatar Jul 05 '19 09:07 digitalentity

It is set to no pulse on FrSky. On the Devo SBUS receivers I have no influence on the way it failsafes. I use SBUS and PPM and both have this issue.

mooiweertje avatar Jul 05 '19 09:07 mooiweertje

My RADIO is a T8SG plus. Receiver Devo SBUS.

It is set to no pulse on FrSky

This doesn't seem to make sense to me.

My current assessment is either faulty hardware (RC receiver) or misconfiguration of RC receiver. Please provide either a log or a DVR recording of the issue so we can know the reason for disarm from FC perspective)

digitalentity avatar Jul 05 '19 09:07 digitalentity

Make sure your receiver is set to "no pulses" or at least is configured to keep channel values on failsafe. SBUS protocol has a specific flag to signal a failsafe, but if you configure specific channel values - FC will happily execute what it's told to do by your radio receiver.

You are saying I should be aware of the failsafe value of the arm switch/channel? I'll have a look at that,

mooiweertje avatar Jul 05 '19 09:07 mooiweertje

You are saying I should be aware of the failsafe value of the arm switch/channel? I'll have a look at that,

Obviously. If your receiver is telling FC to disarm, FC will execute.

digitalentity avatar Jul 05 '19 09:07 digitalentity

perhaps this one helps?

set failsafe_throttle_low_delay = 0

Pairan avatar Jul 05 '19 09:07 Pairan

You are saying I should be aware of the failsafe value of the arm switch/channel? I'll have a look at that,

Obviously. If your receiver is telling FC to disarm, FC will execute.

Yes, I checked the settings and they are correct. But I had a feeling it is related to something like this. It's popping in and out of failsafe and something is timed wrong and picking up the channel of the arm switch wrong. I'll try to find out how the Devo SBUS receiver tells the FC it has lost connection.

Maybe it lowers all channels and INav is sometimes picking up the arm channel before the the signal it failsaves on.

mooiweertje avatar Jul 05 '19 09:07 mooiweertje