mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 19:03:33 +08:00
ros: mavlink node: add mavconn link
This commit is contained in:
@@ -49,6 +49,8 @@ using namespace px4;
|
||||
Mavlink::Mavlink() :
|
||||
_n()
|
||||
{
|
||||
|
||||
_link = mavconn::MAVConnInterface::open_url("udp://localhost:14551@localhost:14552");
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
*/
|
||||
|
||||
#include "ros/ros.h"
|
||||
#include <mavconn/interface.h>
|
||||
|
||||
namespace px4
|
||||
{
|
||||
@@ -55,6 +56,7 @@ public:
|
||||
protected:
|
||||
|
||||
ros::NodeHandle _n;
|
||||
mavconn::MAVConnInterface::Ptr _link;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user