-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
reported via email:
Is there a way to call DroneAPI without the interactive MavProxy ?
I have MavProxy running in the background and the droneapi.module loaded:
screen -d -m -s /bin/bash mavproxy.py --master=/dev/ttyAMA0 --baudrate 57600 --aircraft OCTO8 --out=127.0.0.1:12345 --cmd="module load droneapi.module.api;" > /tmp/rc.log 2>&1
If I execute small_demo.py outside of interactive MavProxy it fails on this line:
api = local_connect()
I assume that the function would find my local running copy but I guess that is a wrong assumption?
Of course it runs fine inside the interactive MavProxy but only after it completes loading ….. so I can’t use the “api start” as a parameter.
Thanks