inav icon indicating copy to clipboard operation
inav copied to clipboard

Figure out how we want Failsafe to function.

Open oleost opened this issue 9 years ago • 13 comments

Hi.

There have been some modifications to Failsafe, and there have been various issues.

Before actually modifying it would be beneficial to know where we are headed and what we want.

I started drawing and diagram. Feel free to comment and come with improvements.

failsafev6 V6 - added voltage Failsafe and some limitations on it.

@hydra @borisbstyle maybe your interested in this as well.

oleost avatar Mar 28 '17 13:03 oleost

Great idea @oleost , FAILSAFE understanding and issues related to it were growing lately like a monster...

sppnk avatar Mar 28 '17 13:03 sppnk

It's somewhat similar to what we already have, but we now have the roadmap, good job @oleost

digitalentity avatar Mar 28 '17 23:03 digitalentity

In box pulse detection. Can be added which channels are to be checked ? For example only 1-6. https://github.com/iNavFlight/inav/issues/1473#issuecomment-289687490 I think about CLI command like failsafe_watch_channel uint16 default 0xFFFF as bitwise combination, for example: 0000 0000 0000 0100 -> failsafe only when channel 3 (throttle) is out of (rx_min_usec, rx_max_usec).

And if failsafe_watch_channel[n] is 0 then set: if channel[n] < rx_min_usec then channel[n] = rx_min_usec, if channel[n] > rx_max_usec then channel[n] = rx_max_usec,

hali9 avatar Mar 29 '17 09:03 hali9

@digitalentity Almost yes, but not 100%.

We have some quirk's and some timers which one could maybe ask ourselves if we really want.

oleost avatar Mar 29 '17 09:03 oleost

pulse detection loss must include recevier wire cut/broken/unplugged.

hydra avatar Mar 29 '17 11:03 hydra

@hydra Yes, is it not that no pulse detection are mainly for?

The preferred method for telling the FC that link between RX and pilot is lost is digital failsafe flag or jump to preset position that activates "Failsafe" flight mode

oleost avatar Mar 29 '17 11:03 oleost

@hydra Oi, what do you know about it? you already buggered up your own one ...Lol

Redshifft avatar Mar 29 '17 11:03 Redshifft

@hydra Thank-you Dominic for your (vast) contributions, past, present (& future).

bzdang avatar Mar 29 '17 19:03 bzdang

hi guys, any update on this feature? would be great to have a voltage failsafe :)

Antonio76m avatar May 06 '17 12:05 Antonio76m

If the voltage failsafe is to be supported, the 'vbat' would need to be averaged within relatively long time windows. I observe the voltage measurements tend to fluctuate heavily even during stable flight.

See: https://github.com/iNavFlight/inav/files/980996/blackbox_log_2017-05-06_154324.TXT The 'vbat' fluctuates for at least 2V all the time.

I'm using SPF3 here. Is it the same for other boards?

krzysztofmatula avatar May 08 '17 07:05 krzysztofmatula

I can't imagine a battery voltage failsafe working as intended. It would either trigger too early due to voltage sag or trigger too late where RTH takes far longer than battery will allow. My opinion is that only mAh remaining would be an effective way of triggering a failsafe. I do this via a LuaScript currently.

teckel12 avatar Sep 28 '17 14:09 teckel12

This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. This issue / pull request will be closed if no further activity occurs within two weeks.

stale[bot] avatar May 13 '18 14:05 stale[bot]

Automatically closing as inactive.

stale[bot] avatar May 27 '18 14:05 stale[bot]