Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for NED missions #100

Open
hamishwillee opened this issue Sep 27, 2017 · 5 comments
Open

Add support for NED missions #100

hamishwillee opened this issue Sep 27, 2017 · 5 comments

Comments

@hamishwillee
Copy link
Collaborator

hamishwillee commented Sep 27, 2017

Generally when writing "reusable" drone applications and examples it is much better to be able to specify positions in NED co-ordinates rather than absolute positioning - because then you can specify a pattern of movement and re-use it as needed.

NED missions are supported by MAVLink, but not PX4. The proposal is to add a sensible API in DroneCore with a backend that can be replaced by PX4 support when that comes available.

@dagar
Copy link
Member

dagar commented Sep 27, 2017

The PX4 side might not be that far off. PX4/PX4-Autopilot#7432

@shakthi-prashanth-m
Copy link
Contributor

@hamishwillee this is interesting. I would like to know more about its interface.

I assumed that a drone application would apparently set an origin of a defined area for reference with latitude and longitude. And then, when we do several invocations of add_waypoint(double meters, Direction dir, Point reference = current/origin) for navigation. This API will translate those into Global latitude and longitude co-ordinates.
Does this sound right ?

@hamishwillee
Copy link
Collaborator Author

@shakthi-prashanth-m So caveat here, is that I don't know anything much about "NED" missions in mavlink other than that apparently they exist. We'd have to start by looking at what MAVLink expects to supply and work out our API from there.

That said, I am assuming NED waypoints would be just like NED goto commands - relative to the home position OR to the current vehicle position rather than a GPS position. The API would look something like:

add_waypoint(north_m, east_m, down_m)

I suspect that the mission would define the frame globally (ie relative to home or current vehicle body), though depending on what PX4/MAVLink supports, it might be possible to supply a different frame for each mission item.

@shakthi-prashanth-m
Copy link
Contributor

@hamishwillee I hope you didn't mean Offboard position control. Did you ?

@hamishwillee
Copy link
Collaborator Author

@shakthi-prashanth-m No. Though I'd expect the sort of things you could do would be the same - ie specify a position relative to your current position.

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

No branches or pull requests

4 participants