Comments (4)
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.
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.
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.
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)
- Plane: SITL on hardware does not compile for some boards HOT 1
- Relay switch for video transmitter voltage control not working in 4.5 (RADIX2HD) HOT 6
- ArduPilot F.Port implementation assumes RSSI scaling of 0-50 while Betaflight uses 0-100
- Feat: Request for controlling the PWM values of all motors for autonoumous tracking HOT 6
- Problem with micro ros. (won't publish the topic). HOT 5
- Upgrade to AP 4.5.x causes external I2C baro BMP280 not detected while onboard SPI BMP280 works.
- OBAL startup problem with enable dds parameter. (SIGSEGV, Segmentation fault.) HOT 2
- when WP_YAW_BEHAVIOR = 0, MAV_CMD_CONDITION_YAW with relative angle cause wrong heading
- ArduPilot should flash green lights when AHRS-is-happy, *not* GPS-is-happy HOT 6
- Sensor Position Offset Compensation accel HOT 4
- Plane: v 4.5.4 and 4.6-dev. Cameras does not switching HOT 3
- 8266 based ELRS or mavesp8266 fails due to DEFAULTGPIO driving their TX lines low in bootloader HOT 1
- Filter: Non-quiet NaNs are logged for FCN HOT 1
- Issue with H-RTK Mosaic-H (Dual Antenna Heading) in ArduPilot 4.6 Dev HOT 2
- Plane: Unexpected Large Target Bearing at WP1 HOT 3
- Porting to a stm32f411ccu6 flight controller board HOT 1
- Tradheli: After landing in Autotune and motor interlock disables, motor can restart HOT 1
- decompile the apj file HOT 1
- Iflight Blitz H743 Wing Relay 2 (GPIO 81) not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ardupilot.