Skip to content
Discussion options

You must be logged in to vote

Ciao Sensei and all, please find here the js script for what we discussed and its transpilation to INAV logic. The idea is to use gvar[0] for register the mode (0 - QUAD, 2 - FIXED aircraft), linked to rc[7] (a three pos switch); gvar[1] is set to 1 only when in TRANSITION (i.e. rc[7] on its middle value). I didn't use edge or other events, it works for every cycle. Every time rc[7] gets in its low or high position gvar[1] is set to 0 and gvar[2] (a counter) is set to 0. Only when gvar[1] == 1, depending on the current value of gvar[0]: the counter gvar[2] is increased by one and the pitch angle is overridden to -45 or 45 degs, until the counter gets to 50.

I'm curious to test it in fligh…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@b14ckyy
Comment options

b14ckyy Sep 27, 2026
Collaborator

Answer selected by sensei-hacker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #11725 on September 22, 2026 15:26.