Search code examples
dronekit-pythondronekit

dronekit set_position_target_local_ned_encode


Running dronekit-python with ArduCopter as SITL. When specifying a velocity (only) in the set_position_local_ned_encode, the drone moves for a few seconds and stops.

This happens both with the example code (guided_set_speed_yaw.py) and a very small test program that ONLY does the set_position after the appropriate init. All other parts of all examples seem to work fine.

All running on Fedora. I don't see this listed as a bug, or any issues related to this. Any ideas or pointers are appreciated.


Solution

  • ArduCopter 3.3-rc9 added a 3 second velocity timeout. This is to prevent a lost connection from causing a flyaway. To continue flying in the same direction, just send the same packet repeatedly.