Hi,

I am trying to implement the SET_ROLL_PITCH_YAW_THRUST mavlink command to control a quadrotor that has an APM onboard. 

Currently the system I am using uses a Linux system running a C++code to control Asc humming bird and access VICON data. The purpose is to have full trajectory control over the quadrotor using the VICON system and controlling the quadrotor via MAVLink. This is because we need a cheaper solution for experimenting control of multiple quadrotors. 

I am currently feeling lost to implement the SET_ROLL_PITCH_YAW_THRUST message in the ground computer side. Is there anyway to directly send mavlink commands from the desktop using C++?

I have found some references using simulink in matlab ( https://code.google.com/p/lucas-research/wiki/APMSimulink ) or ROS. 

However, I would like to avoid using Matlab to keep the system compatible with the libraries which was previously being used.

Will there be anyway or reference that I could be able to send commands directly from my C++ code via MAVLink.

Any comments will be alot of help!

Thank you

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer
    Try this link http://qgroundcontrol.org/dev/mavlink_onboard_integration_tutorial

    Ignore that is say onboard as the same loop is required on the GCS

    The set roll pitch yaw thrust message is also not implemented in ardupilot. You can send waypoints in guided mode though
  • MR60

    3DR launched recently a site gathering code for mavlink dev : dronekit.io

    Maybe it will help

    DroneKit
    DroneKit makes it easy to create custom applications to control any vehicle powered by MAVLink. Best of all, it is open sourced and free for everyone…
  • Developer
    Try looking around at http://mavlink.org
    • I did looking in to it but no clue for the question I am asking
This reply was deleted.