inav icon indicating copy to clipboard operation
inav copied to clipboard

Add support for additional mw-nav compatible MSP way point types

Open stronnag opened this issue 10 years ago • 27 comments

#The following MSP / mw-nav compat options are not currently implemented in inav. Please consider them for future releases. Maintaining MSP/mw-nav compatibility where practical is useful as it enables existing ground station software to be used. See https://github.com/iNavFlight/inav/wiki/MSP-Navigation-Messages summary follows:

  • ~POSHOLD_TIME (P1 = time in seconds)~
  • ~SET_POI (lat, lon): craft always 'head in' to the SET_POI position~
  • ~JUMP - P1 = prior WP number, P2 = number of iterations (-1 until mission cancelled)~
  • ~SET_HEAD P1=heading (P1 = -1 cancels this mode and SET_POI mode)~
  • ~LAND (lat,lon,alt??)~

RTH landing option is covered by #61

2020-04, strike out the 2.5 addtions.

stronnag avatar Apr 10 '16 14:04 stronnag

Is there any current plan to implement this in the near future?

MichaelCWarren avatar Dec 15 '16 16:12 MichaelCWarren

That's a low priority at the moment. What types are you interested in?

digitalentity avatar Dec 17 '16 00:12 digitalentity

I'm considering writing a mission planning iOS app and was curious what the future of this feature is. The current waypoint types are fine, but it would be neat if we could implement the others...

Michael

On Dec 16, 2016, at 7:27 PM, Konstantin Sharlaimov <[email protected]mailto:[email protected]> wrote:

That's a low priority at the moment. What types are you interested in?

You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/iNavFlight/inav/issues/154#issuecomment-267728091, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFibRvSJ9Kx-Ka2ZJkcPJ0fNTv_AnO5pks5rIyxjgaJpZM4ID2bI.

MichaelCWarren avatar Dec 17 '16 01:12 MichaelCWarren

We will eventually implement more.

digitalentity avatar Dec 17 '16 13:12 digitalentity

These new types of waypoints could be useful for aerial photography & video application, in this way we could use our DIY quads to make things similar to those made with expensive DJI quads (maybe).

anbello avatar May 18 '17 12:05 anbello

@anbello yes, we'll eventually implement more waypoint types. This is planned but very low priority task

digitalentity avatar May 18 '17 12:05 digitalentity

@digitalentity thanks SET_POI could be the more interesting

anbello avatar May 18 '17 13:05 anbello

@digitalentity I don't get it. In the navigation oriented firmware features that can enhance automatic navigation are "very low priority"

eziosoft avatar Apr 04 '18 14:04 eziosoft

yes it would be great to have all the above features then it will be better than the vector and iNav is for waypoint mission's,please O please

neagron avatar May 08 '18 19:05 neagron

I agree please could we have ROI/POI and circle This would make iNav waypoints so much better :-) Thanks Steve

steviegeek avatar May 23 '18 15:05 steviegeek

Adding my vote to add these features.

jimpriest avatar Mar 03 '19 23:03 jimpriest

+1 For these features

lemarec avatar Aug 14 '19 11:08 lemarec

what are the Waypoints types supported currently ? in navigation.h I found: typedef enum { NAV_WP_ACTION_WAYPOINT = 0x01, NAV_WP_ACTION_RTH = 0x04 } navWaypointActions_e;

so only Waypoint and RTH? What happened to Position Hold?

eziosoft avatar Sep 12 '19 22:09 eziosoft

Any reason this has no interest? Seems like an important part of the 'nav' in INav :)

jimpriest avatar Sep 22 '19 18:09 jimpriest

I have a VERY BIG interest for this feature. For a looooong time. FollowMe+LookAtMe. Please...

More over. Now when we have opFlow+lidarSensor from MATEK)) We can think about altitude estimation for FollowMe mode. In case you are going up or down the hill.

georgekucher avatar Dec 03 '19 23:12 georgekucher

Hi everyone, I'd like to heat up this discussion again. I am currently trying to implement waypoint hold time function. The problem I came across: For this action p1 is defined as the time and there is no definition for the speed. For normal waypoints speed is also in p1. I'd like to support speed, so the only option without breaking compatibility is using p2 for the speed instead, I guess. Is that the way I/we should go?

Personally if I would redefine that protocol I would put the wait time into p2 of a normal waypoint. There is basically no difference in handling these two types except for waiting after reaching the WP. But I guess that would break compatibility too much? And it would confuse users as they would still have the option to create a timed pos hold wp in mwp and other software. I am open to suggestions/comments.

FabianSchwartau avatar Feb 09 '20 16:02 FabianSchwartau

I'd like to heat up this discussion again. I am currently trying to implement waypoint hold time function. The problem I came across: For this action p1 is defined as the time and there is no definition for the speed. For normal waypoints speed is also in p1. I'd like to support speed, so the only option without breaking compatibility is using p2 for the speed instead, I guess. Is that the way I/we should go?

Seems like an expedient solution. Nice to see some movement here.

stronnag avatar Feb 09 '20 16:02 stronnag

OK, here we go: https://github.com/Jacky2k/inav/tree/jacky2k_waypoint_hold_feature This is my piece of software that should enable waypoint hold time. I will not be able to test this in the real world for at least one week. If someone else is willing to risk his/her drone, please go ahead. I tested a bit with fake GPS, but I would be careful. The time is now encoded in p1, the speed in p2. If you get the latest mwp from the development branch, it will not convert the hold time wps into normal ones.

Edit: It would be great if someone else would have a look at the code as I am quite new to inav and maybe I missed something obvious. For example:

  • I don't get what these NAV_FSM_EVENT_STATE_SPECIFIC_3 things are and why you need them.
  • I don't know what NAV_PERSISTENT_ID* I am supposed to use. Looks like this needs to be compatible, so I added a new one at the end. Is that ok?
  • There were a couple of old defines like MW_NAV_STATE_HOLD_TIMED and I am not sure if those are intendet to be used for waypoint hold time or if that is something old - they are not really used any more.

FabianSchwartau avatar Feb 09 '20 19:02 FabianSchwartau

If this is going to end up as a pull request (which is the only way it will be merged), it should be developed against development, not master.

stronnag avatar Feb 09 '20 20:02 stronnag

Yeah, I was told so. I will try to do both this evening.

FabianSchwartau avatar Feb 10 '20 07:02 FabianSchwartau