Hi everyone. I am running MAVProxy between an Intel Edison and a 3DR drone. I can establish communication between them in this way. I need to run a python program from the Edison. I need to connect to the drone in this python program. It seems I should be able to use MAVProxy to connect my python program to the drone. Here's the commands I'm using right now:
mavproxy.py --master=/dev/ttyUSB1 --out=udpout:127.0.0.1:14550
I run the mavproxy.py command in a script so I can simultaneously run my python program with this command:
python vehicle_state.py --connect /dev/ttyUSB1
I have also tried using --connect 127.0.0.1
Neither command works - I get a "no heartbeat in last 5 seconds" message and then a link timeout error.
How can I fix this? Is what I am trying to do possible?
EDIT - Here is a similar discussion, where they indicate to write a MAVProxy module. Not sure if that is the best option for me here. I'd appreciate ideas on this as well.
http://diydrones.com/forum/topics/about-running-python-script-in-mavproxy
https://github.com/ArduPilot/MAVProxy/blob/master/MAVProxy/modules/mavproxy_serial.py
Thanks.
Replies