ArduPilot / apm_planner

APM Planner Ground Control Station (Qt)
https://ardupilot.org
Other
507 stars 465 forks source link

MavLink for 3rd party apps #355

Open edasque opened 10 years ago

edasque commented 10 years ago

Is it possible for an app to listen (and maybe transmit) to MavLink via APM Planner? I'd love to write a small app that does independent logging and processing of the data. I guess I would need APM Planner to act as a one way (read) or two way funnel/proxy.

Does that exist in APM Planner?

zlite commented 10 years ago

You can write Python scripts in Mission Planner, which read/write MAVLink. Does that suffice?

-Chris

On Wed, May 28, 2014 at 7:35 AM, Erik Dasque notifications@github.comwrote:

Is it possible for an app to listen (and maybe transmit) to MavLink via APM Planner? I'd love to write a small app that does independent logging and processing of the data. I guess I would need APM Planner to act as a one way (read) or two way funnel/proxy.

Does that exist in APM Planner?

— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/apm_planner/issues/355 .

Chris Anderson CEO, 3D Robotics chris@3drobotics.com

edasque commented 10 years ago

So they act as a plug in of sorts? I'll try it out (looking at http://copter.ardupilot.com/wiki/common-using-python-scripts-in-mission-planner/)

proficnc commented 10 years ago

Use MAVProxy?

Philip

On 29 May 2014, at 11:37, Chris Anderson notifications@github.com wrote:

You can write Python scripts in Mission Planner, which read/write MAVLink. Does that suffice?

-Chris

On Wed, May 28, 2014 at 7:35 AM, Erik Dasque notifications@github.comwrote:

Is it possible for an app to listen (and maybe transmit) to MavLink via APM Planner? I'd love to write a small app that does independent logging and processing of the data. I guess I would need APM Planner to act as a one way (read) or two way funnel/proxy.

Does that exist in APM Planner?

— Reply to this email directly or view it on GitHubhttps://github.com/diydrones/apm_planner/issues/355 .

Chris Anderson CEO, 3D Robotics chris@3drobotics.com — Reply to this email directly or view it on GitHub.

billbonney commented 10 years ago

APM Planner can resend data received to second client. This was to support an antenna tracking device. I'll take a look to see what needs to happen to make it operational again.

edasque commented 10 years ago

@proficnc, wouldn't MAV proxy introduce potential delay and a failure plan since it needs to sit between the device and APM Planner?

@billbonney this would be helpful, thank you.

I am hoping to write this app in node.js using the mavlink module. If that's not possible, I would learn enough python to write it as an plugin running within APM.

edasque commented 10 years ago

@proficnc , @billbonney any help?

proficnc commented 10 years ago

The delay on a local machine isn't too long, I suppose it would depend on what you are doing with it

edasque commented 10 years ago

So both apps would talk to mavproxy including apm planner and mavproxy would talk to the radio?

proficnc commented 10 years ago

That's one method :) and Bill mentioned that APM Planner could also act as a proxy, so you have two options.