Geofence setting in Python?

1,147 views
Skip to first unread message

Peter Morris

unread,
Aug 23, 2015, 8:01:01 PM8/23/15
to MAVLink
Can anyone point me to some Python code on sending geofences to a Pixhawk?  I cannot find simple examples in Dronekit or elsewhere,  and have spend a long time trying to implement MAVLINK_MSG_ID_FENCE_POINT etc .    I can happily set waypoints directly via Mavlink or through Ironpython to Missionplanner, but the fence stuff has me stumped.
   
cheers

pete

Andrew Tridgell

unread,
Aug 23, 2015, 8:42:08 PM8/23/15
to Peter Morris, MAVLink

Hamish Willee

unread,
Aug 24, 2015, 6:48:29 PM8/24/15
to MAVLink, pmo...@greenpeace.org, and...@tridgell.net
This MAVProxy/SITL tutorial shows what parameters you need to set for the copter geofence: http://dev.ardupilot.com/wiki/copter-sitl-mavproxy-tutorial/#setting_a_geofence

If you want to do this yourself programmatically you could do this in DroneKit by setting the same parameters (using Vehicle.parameters). I recommend you confirm that the section works for you by following the tutorial first.

anishsh...@gmail.com

unread,
Jul 1, 2017, 8:55:58 AM7/1/17
to MAVLink


can any tell me about geofencing in  python i m working n urllib...and to use it can anyone give me path 
Reply all
Reply to author
Forward
0 new messages