Skip to content

Ability to read current waypoint index as part of LC#6137

Merged
DzikuVx merged 1 commit intomasterfrom
dzikuvx-nav-wp-and-action-lc
Sep 21, 2020
Merged

Ability to read current waypoint index as part of LC#6137
DzikuVx merged 1 commit intomasterfrom
dzikuvx-nav-wp-and-action-lc

Conversation

@DzikuVx
Copy link
Member

@DzikuVx DzikuVx commented Sep 21, 2020

This allows to trigger a servo output at waypoint with the help of Programming framework. See the following example

# If current waypoint is equal to previous waypoint index
logic 0 1 -1 1 5 7 2 29 0       
# Not LC#0
logic 1 1 -1 12 4 0 0 0 0
# If waypoint index changed and is WP mission, use this LC to react
logic 2 1 -1 7 2 23 4 1 0
# Store previous waypoint index
logic 31 1 -1 18 0 7 2 29 0

closes #5573
closes #5854

@DzikuVx DzikuVx added the Release Notes Add this when a PR needs to be mentioned in the release notes label Sep 21, 2020
@DzikuVx DzikuVx added this to the 2.6 milestone Sep 21, 2020
@DzikuVx DzikuVx merged commit 026ec2c into master Sep 21, 2020
@DzikuVx DzikuVx deleted the dzikuvx-nav-wp-and-action-lc branch September 21, 2020 12:41
@damsport11
Copy link

Hi,
first, great implementation of both the LC and waypoint action.

I have been trying to find out whether it is also possible using this to actually change the current goal WP, e.g. you are moving to WP2, however, would like to omit WP2 in flight and fly to WP3 without going to WP2..?

It would be even more awesome if you could set the first WP (being something other than WP1) before switching on the WP mission, since that would allow re-initiating a WP mission or even start from another point.

Easy implementation would be a global current WP (that can also be viewed in OSD) and can be changed with RC switches/knobs.

Thanks for you time and great software! ;-)

@Momonator404
Copy link

Momonator404 commented Apr 19, 2021

Hi,
thanks for including this option. I want to use it as a autonomous delivery system, and i need a way to activate a servo at a waypoint for this.
I know the concerns about weaponising Inav, but this is a different disscussion. I also dont want to switch to Ardupilot, because iNav is more user friendly (I flashed Arduplane on my Matek 405 wing board, and it worked 👍 )

Can someone please explain how to use Pawel´s LCs? or how it works?

I am not a Programmer, but as far as i know i would rather programm something like this:

If current Waypoint index = 5 (The 5th Waypoint)
and FC is in WP-Mode
GVAR Set 1800 (or whatever servo position i need for release)
then connect the release servo to the GVAR.

The Documentation for Inav Logic-Conditions is limited, so i hope the forum can help me. thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Release Notes Add this when a PR needs to be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Servo at Waypoint Add 'Current Waypoint' as logic condition operand

3 participants