Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send data? #17

Open
jmcarvalhoo opened this issue Jun 18, 2020 · 1 comment
Open

How to send data? #17

jmcarvalhoo opened this issue Jun 18, 2020 · 1 comment

Comments

@jmcarvalhoo
Copy link

jmcarvalhoo commented Jun 18, 2020

Hello, I want to do something like that:

`

this.mcMavParser.createMessage('MISSION_ITEM', {
param1: fields.param1, // hold_time
param2: fields.param2, // radis
param3: fields.param3, // param3
param4: fields.param4, // yaw
x: fields.x, // lat
y: fields.y, // lon
z: fields.z, // alt
seq: fields.seq,
/'command': mavheader.MAV_CMD_NAV_WAYPOINT,/
command: fields.command,
target_system: this.mcSystemID,
target_component: 1,
frame: 3,
current: 0,
autocontinue: 1
},
(message) => {
this.mcPortSendMessage(message);
return;
});

`

How can I do using this project?

@jmcarvalhoo
Copy link
Author

I tried to write the MISSION_COUNT message but didn't receveid any MISSION_REQUEST feedback. My code is this:

`const request = new MissionCount(this.mcSystemID,1);
        request.count = this.mcMissionList.length;
        request.mission_type = MavMissionType.MAV_MISSION_TYPE_MISSION;
        const messages: MAVLinkMessage[] = [request];
        const buffer = this.mavLink.pack(messages);
        this.mcMavPort.write(buffer);`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant