goodrobots/vision_landing

Improve dronekit connection

fnoop opened this issue · 3 comments

fnoop commented

Connection using dronekit to an actual flight controller takes a long time (>15secs) as it waits for parameter download etc. Also prints out status messages instead of to logs. Improve connection by specifying limited set of parameters to wait for, capture status messages etc.
https://github.com/dronekit/dronekit-python/blob/master/dronekit/__init__.py#L2776
http://python.dronekit.io/automodule.html#dronekit.connect

fnoop commented

Also won't connect through mavlink-router using udp:
mavlink-router/mavlink-router#95 (comment)

fnoop commented

This looks to be related, performance wise:
goodrobots/maverick#593

Suspect dronekit takes a lot of cpu time in the background, which has also affected vision_landing.

fnoop commented

Going to move to ROS, dronekit python wrapper (vision_landing) OK as it is.