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

Added SAFETY_ALLOWED_AREA rx handler #689

Merged
merged 2 commits into from
Apr 9, 2017

Conversation

TSC21
Copy link
Member

@TSC21 TSC21 commented Apr 6, 2017

Added SAFETY_ALLOWED_AREA rx handler and publish PolygonStamped msg with the 2 points. Related to PX4/PX4-Autopilot#4167. To be sync with geofence function on the FW side, mainly to work with local position values.

@TSC21
Copy link
Member Author

TSC21 commented Apr 6, 2017

As is it can be merged onto master. But the following work will be to implement usage on the firmware side. @dagar are you aware of how geofence works on the PX4 side and how can we manage to integrate this to geofence in the local frame?

@TSC21
Copy link
Member Author

TSC21 commented Apr 8, 2017

@vooon, @mhkabir lgtm?

@dagar
Copy link
Member

dagar commented Apr 9, 2017

Sorry just saw this now. PX4 geofence is currently a simple cylinder around home (defined with params), or a list of GPS coordinates (listed in a text file on the sdcard).

There's new work to extend the mavlink mission protocol to edit the polygon geofence. We could then extend it to work with a local frame.

@TSC21 TSC21 requested review from vooon and mhkabir April 9, 2017 04:04
@TSC21
Copy link
Member Author

TSC21 commented Apr 9, 2017

Sorry just saw this now. PX4 geofence is currently a simple cylinder around home (defined with params), or a list of GPS coordinates (listed in a text file on the sdcard).

There's new work to extend the mavlink mission protocol to edit the polygon geofence. We could then extend it to work with a local frame.

That sounds awesome @dagar. Let me know of what I can help so we can progress with that.

@dagar
Copy link
Member

dagar commented Apr 9, 2017

Mavlink PR - mavlink/mavlink#683
PX4 PR - PX4/PX4-Autopilot#6888

Once that's in place we can talk about extending it to other MAV_FRAME's.


/** @todo Publish SAFETY_ALLOWED_AREA message */
return {
make_handler(&SafetyAreaPlugin::handle_safety_allowed_area)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wtf? Spaces? Check indentation.

@vooon vooon merged commit 2d5eea2 into mavlink:master Apr 9, 2017
@TSC21 TSC21 deleted the safety_allowed_area branch April 9, 2017 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants