Code Monkey home page Code Monkey logo

Comments (4)

rmackay9 avatar rmackay9 commented on July 18, 2024

Hi @LupusTheCanine,

In general it should be "edge detected" and the last change wins. For the aux mode functions that implement a flight mode, when they are moved to the low position they will switch back to whatever the flight mode channel is set to.

There is also some "debouncing" in the code to ensure that very short transient RC inputs from the flight mode channel and aux function are ignored.

TBH, I suspect that there's no problem in the code.. but perhaps I'm misunderstanding the report..

from ardupilot.

LupusTheCanine avatar LupusTheCanine commented on July 18, 2024

@rmackay9

The problem is that simultaneous transition doesn't work reliably.
I can go RTL->FBWA just fine without even entering Manual but going the other way causes
the transition to be FBWA->RTL->Manual.

Rising edge happening within the debounce time should cancel falling edge mode reversion,

I would classify this as unexpected behaviour with potentially dangerous consequences.

I want to have quick access "Emergency" modes on a separate switch as while buttons on the TX16S are great for switching modes when you aren't in the hurry, they don't really cut it in emergency.

Having one three position "override" switch would be nice alternative but I would rather prefer the sequencing fixed.

from ardupilot.

IamPete1 avatar IamPete1 commented on July 18, 2024

We check the switches in order, so FBWA on 8 is checked before RTL on 9. If you switch them round I would expect your results to be the other way too. As far as I can tell ArduPilot is handling it consistently. Don't forget RC is not the only source of mode changes.

I want to have quick access "Emergency" modes on a separate switch as while buttons on the TX16S are great for switching modes when you aren't in the hurry, they don't really cut it in emergency.

Presumably your not planning on having to switch two switches in this case then? The issue is because you have done a transmitter mix of some sort? Why not fix it in your mix?

from ardupilot.

LupusTheCanine avatar LupusTheCanine commented on July 18, 2024

Presumably your not planning on having to switch two switches in this case then? The issue is because you have done a transmitter mix of some sort? Why not fix it in your mix?

I would not consider adding a delay to mode change switch an acceptable solution especially given that frame loss can potentially wreck the timing anyways.
"Mode enable" switch going high should override any pending mode enable going down preferably while retaining the original previous mode.

from ardupilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.