-
Notifications
You must be signed in to change notification settings - Fork 986
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
Conversation
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? |
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. |
Mavlink PR - mavlink/mavlink#683 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wtf? Spaces? Check indentation.
Added
SAFETY_ALLOWED_AREA
rx handler and publishPolygonStamped
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.