Skip to content

Failure for non interactive use #7

@geeksville

Description

@geeksville

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions