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

Add mission raw plugin #644

Merged
merged 11 commits into from
Jan 24, 2019
Merged

Add mission raw plugin #644

merged 11 commits into from
Jan 24, 2019

Conversation

julianoes
Copy link
Collaborator

This will be a plugin which enables direct/raw access to MAVLink MISSION_ITEM_INT messages.

See progress here @sanderux.

@julianoes julianoes force-pushed the add-mission-raw branch 4 times, most recently from d1799cf to 57a9990 Compare January 22, 2019 09:00
@julianoes julianoes changed the title [WIP] Add mission raw plugin Add mission raw plugin Jan 22, 2019
static constexpr double SOME_LONGITUDES[] = {8.545649, 8.545654};
static constexpr float SOME_ALTITUDES[] = {5.0f, 7.5f};
static constexpr float SOME_SPEEDS[] = {4.0f, 5.0f};
static constexpr unsigned NUM_SOME_ITEMS = sizeof(SOME_LATITUDES) / sizeof(SOME_LATITUDES[0]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use a vector instead? Would be clearer to me 😕

[&prom](MissionRaw::Result result,
std::vector<std::shared_ptr<MissionRaw::MavlinkMissionItemInt>> items) {
EXPECT_EQ(result, MissionRaw::Result::SUCCESS);
// TODO: validate items
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That TODO is outdated, isn't it?

@julianoes
Copy link
Collaborator Author

I'm ignoring Jenkins because I don't know what he's trying to tell me.

@julianoes julianoes merged commit 1817e30 into develop Jan 24, 2019
@julianoes julianoes deleted the add-mission-raw branch January 24, 2019 15:41
@julianoes
Copy link
Collaborator Author

@JonasVautherin also I forgot to fix what you raised, I'll do that in #642.

/**
* @brief Mission item identical to MAVLink MISSION_ITEM_INT.
*/
struct MavlinkMissionItemInt {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No support for MISSION_ITEM?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. The SDK only does the new shiny things.

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

Successfully merging this pull request may close these issues.

4 participants