-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
New VehicleAction in MissionItem #1424
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except for a wrong comment, it looks good to me 😊. Did you test it? Does it work? 🚀
Seeing the errors in CI (e.g. in |
Thank @rligocki. Now it would be nice if there was a new integration test using it. |
Yep I wrote it manually. Didn't know that it is possible to generate templates based on MAVSDK-Proto. I will have a look on generation of on C++ code based on Proto. |
@rligocki there is a comment telling you that the file is auto-generated. |
Now it looks like it might be ready for testing. What is best way to do it? |
You can write a small script that uses it, or directly go for an integration test (like one of the Also the style is wrong, please run |
It looks like, there is some change in MAVSDK-Proto in core.proto file. Connection state is missing value 1. In my MAVSDK-Proto PR there are only additional code with VehicleAction. MAVSDK PR there is one removed line with that value. |
Wasn't this resolved in #1420? Is your branch up to date? Also you forgot to fix the style: Other than that, everything seems to build, so I'd say that the next step would be an integration test showing a mission for a VTOL, with transition waypoints 😊. Once we can verify that this works, I think that will be ready to be merged (first the mavsdk-proto PR, then you'll have to update this one to point to TL;DR: next up is the integration test 😉 |
https://github.com/mavlink/MAVSDK-Proto/blob/main/protos/core/core.proto - It looks like it is in main, so I was up to date.
On my mac I was not able to compile these tools. So I need to do fix_style on different computer at home. |
There two of them: the proto submodules, and then the MAVSDK branch itself. Both need to be up to date 👍. This said, the CI tests pass... where do you see the issue with the connection state? When building the integration tests? If yes, just update your branch to |
Still don't understand that problem with MAVSDK-Proto. On main branch, there is removed one connection state. Fixed problem with style. Should I create PR for connection state error? |
You have a fork of You need Does that make sense? |
This is what I understand. I see no problem there.
But you said that |
I am really lost. I need help at this situation. Cannot find where exactly I made mistake and how to solve it. Tried to find solution, but unfortunately it is first time I contribute to public repository so I have no experience at this case. |
fafd513
to
8cf92da
Compare
No worries, it can be tricky in the beginning 😉. Should be fine now, both your branches were not up-to-date with upstream. Read about syncing with upstream e.g. here (it has to be done on both your mavsdk and mavsdk-proto forks until your proto is merged upstream). |
8cf92da
to
8bf4b21
Compare
The docs CI check is failing, I commented on the proto PR accordingly: mavlink/MAVSDK-Proto#226 Other than that, it would be nice if you could add an integration test. Note that the integration tests run on the iris SITL multicopter, so ideally use actions that work for a multicopter (i.e. takeoff and land), and maybe write a test that checks that the iris behaves correctly when you use VTOL actions (I don't know what PX4 is expected to do, but a test for it would be nice). I won't be asking you to change the integration tests such that they can run a VTOL, but that would be a nice addition later 😊. |
Thanks a lot for your help. I though, that you would give me some advice, but this was faster way. Where are those integration tests located? I can check them and then create group of new tests for this purpose. |
Does this answer it? https://mavsdk.mavlink.io/main/en/cpp/guide/test.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the integration test prove that the takeoff action works? My feeling is that it would also takeoff without the takeoff action 🤔.
Could we make it such that it lands and takes off in the middle of a mission? That I am pretty sure is not yet working 😆
Mission::MissionPlan mission_plan{}; | ||
mission_plan.mission_items.push_back(new_item); | ||
|
||
new_item.vehicle_action = Mission::MissionItem::VehicleAction::TransitionToFw; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the expected behavior when flying a multicopter? I guess it is ignored, isn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess so. I was thinking, that if landing and takeoff would work, this action will provide that information.
aaab585
to
8c3802b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but will need to be merged after the acceptance_radius PR (because it requires an update of the proto submodule)
8c3802b
to
3404dda
Compare
@rligocki: I merged the proto PR and updated the branch here (don't forget to pull the changes). Once the integration tests are fixed, that can go in 👍 |
@rligocki I removed the commits on mavsdk-proto:main and moved them to https://github.com/mavlink/MAVSDK-Proto/tree/add-vehicle-action until this is solved. Hence you will have to update the proto submodule here to point to https://github.com/mavlink/MAVSDK-Proto/tree/add-vehicle-action when you get back to this PR |
Now I was able to found some time for this problem. I will fix those tests so that they will pass. |
@rligocki what's the status here? Would be nice to get this in soon. |
Cannot upload those vehicle mission item on PX4. There is an error. |
Currently there should be no error during runtime. One last thing, that needs to be done is transition mission validation. Now there is no measurement if transition happened. Also I cannot find way to run transition test with gazebo_standard_vtol plane. |
based on: