-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
The guidance for Flight Tasks in version 1.14 is inconsistent with the actual program in version 1.14.4. #3421
Comments
@a233a2 The flight tasks guide is likely out of date since it was written in PX4 v1.11 Can you please post this in the discussion boards and then add a link back here. That will expose this problem to more people. @MaEtUgR Is this something you can advise on? The FLightTaskIndex looks like it is auto-generated, so I would assume that adding to the CMakeLists is the right thing to do. More generally, can I arrange a sanity check of this doc for at least PX4v1.15 accuracy? |
oh ok I have currently posted a similar situation to mine in the discussion section of PX4. But the bug cannot be solved, which makes me frustrated. Why does it not work when making fmu-v2_default, but it works when starting simulation? |
@a233a2 I think I know what your problem is. The structure changed slightly and we should update the documentation. According to your screenshot you added your custom task in the right place if you want it only available on targets that are not very tight on flash memory usage (
Try moving the declaration of your task in CMake to the list above that which gets build on every target: |
This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: https://discuss.px4.io/t/new-task-when-i-make-fmu-v2-default-broken/42204/3 |
I still haven't resolved my previous mistake, but thank you all for your answers. But I changed the compilation command to FMU-V3, and now the compilation has passed. I want to know if FMU-V3 can be burned on Pixhawk 2.4.8. This temporarily solves the problem. @MaEtUgR |
@a233a2 That is because fmu-v3 is not a flash constrained target but fmu-v2 is, see:
No, as far as I remember that board is an fmu-v2 target and you should use Please just put your custom task to also be built on flash constrained targets like I described in #3421 (comment) |
Sidenote: While it’s not required for the goal you describe here, you might want to consider upgrading to an up-to-date flight control board, like e.g. the Pixhawk 6C, when building/investing in a new drone. |
I strongly agree with ^^^^. The Pixhawk 2.4.8 is more than 10 years old technology with very little flash space. The money you save in buying them is lost in the time it takes to find enough flash to use the features you need. |
Hi!I want to use the newly added flight mission in version 1.14.4 of the PX4 program. Refer to the documentation of version 1.14. But I didn't find any consistency in the documentation with the code, which prevented me from adding the code correctly to the CMakeLists. I think this is causing me to not compile correctly.
I couldn't find the following guidance to add in the program。
Where should I add it?
Here is the error: I meet
I put my new task here: This is version 1.14
The text was updated successfully, but these errors were encountered: