Skip to content

Add fence and rally missions to raw server#2544

Merged
julianoes merged 2 commits intomavlink:mainfrom
tborglum:add-raw-server-mission-types
May 5, 2025
Merged

Add fence and rally missions to raw server#2544
julianoes merged 2 commits intomavlink:mainfrom
tborglum:add-raw-server-mission-types

Conversation

@tborglum
Copy link
Contributor

I'm working with @jonathanreeves to update the mission server to support more mission types.

In this branch, I have done the following:

  • Added fence and rally item vectors to the raw server so they can be sent and received independently from the mission vector.
  • Added getter for mission items based on the mission type; if an unsupported mission type is used, an empty vector is returned.
  • Added mission type parameter to ResultAndItemsCallback so server callbacks can use the relevant item vector.
  • Updated raw server calls to mission transfer server calls to use the mission type of messages instead of being hard coded mission.
  • Added raw server logic to only reset mission completion if mission items are received for a mission type mission.
  • Added raw server logic to clear fence and rally missions if needed.
  • Updated raw server test helper function to create mission items relevant to the mission type they are for.
  • Updated raw server tests to be parameterized with supported mission types.

@jonathanreeves
Copy link
Contributor

@julianoes @JonasVautherin just wanted to make a quick intro, as noted in the PR description, @tborglum is indeed a fellow team member at Elroy, we're working together to build out our MAVSDK integration. We'll both keep an eye on this PR in case something comes up. Thanks again for all your work on this project!

@julianoes
Copy link
Collaborator

Thanks, looks like I need to fixup CI!

Copy link
Collaborator

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

Including tests! Very nice, thank you!

tborglum added 2 commits May 3, 2025 06:22
- Added fence and rally item vectors to the raw server so they can be sent and received independently from the mission vector.
- Added getter for mission items based on the mission type; if an unsupported mission type is used, an empty vector is returned.
- Added mission type parameter to ResultAndItemsCallback so server callbacks can use the relevant item vector.
- Updated raw server calls to mission transfer server calls to use the mission type of messages instead of being hard coded mission.
- Added raw server logic to only reset mission completion if mission items are received for a mission type mission.
- Added raw server logic to clear fence and rally missions if needed.
- Updated raw server test helper function to create mission items relevant to the mission type they are for.
- Updated raw server tests to be parameterized with supported mission types.
- Changed test fixture member variable access.
- Removed a todo that was resolved.
@julianoes julianoes force-pushed the add-raw-server-mission-types branch from 655535b to 5996495 Compare May 2, 2025 18:24
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 2, 2025

@julianoes julianoes merged commit 08823a0 into mavlink:main May 5, 2025
37 of 38 checks passed
@tborglum
Copy link
Contributor Author

tborglum commented May 5, 2025

Thanks to you all for what you're doing with this project!

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