When in AUTO mode, the list of waypoints (and other commands) can be downloaded using dronekit as follows:
cmds = vehicle.commands
What is the equivalent way to retrieve the (single) target destination when in GUIDED mode?
To put it another way, we can set the goto point as follows; how can we subsequently retrieve the object ‘a_location’?
.# Set mode to guided - this is optional as the simple_goto method will change the mode if needed.
vehicle.mode = VehicleMode(“GUIDED”)
.# Set the LocationGlobal to head towards
a_location = LocationGlobal(-34.364114, 149.166022, 30)