dronekit / dronekit-python

DroneKit-Python library for communicating with Drones via MAVLink.
https://readthedocs.org/projects/dronekit-python/
Apache License 2.0
1.5k stars 1.42k forks source link

vehicle.flush() #1186

Open x123y123 opened 1 year ago

x123y123 commented 1 year ago

Can I ask a question about : "what situation we will use vehicle.flush() after vehicle.send_mavlink()"?

TongBingda commented 11 months ago

In init.py, the vehicle.flush() method is deprecated. It has been replaced by :py:func:`Vehicle.commands.upload(). You can call vehicle.upload() method after vehicle.commands.add() method. I don't think I need to do anything else after executing vehicle.send_mavlink() because I usually set the vehicle in GUIDED mode.