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

Adding a New Flight Mode to Copter,and then show in GCS #5148

Open
HEIseYOUmolc opened this issue May 24, 2023 · 7 comments
Open

Adding a New Flight Mode to Copter,and then show in GCS #5148

HEIseYOUmolc opened this issue May 24, 2023 · 7 comments

Comments

@HEIseYOUmolc
Copy link

Adding a New Flight Mode to Copter - Describe the issue/suggestion and improve the title. Please keep a link to the original article if relevant.

I followed the https://ardupilot.org/dev/docs/apmcopter-adding-a-new-flight-mode.html?highlight=adding%20mode method and it does not display properly in QCS

@HEIseYOUmolc
Copy link
Author

I use command sim_vehicle.py -v ArduCopter -f quad --console --map -D
and then open the QGroundControl and MissionPlanner on ubuntu 20.04LTS

@HEIseYOUmolc
Copy link
Author

By the way ,I want to know the method of modify ParameterFactMetaData.xml is still useful to do this?
I use this method,had nothing to change。My mode always not occur

@Hwurzburg
Copy link
Contributor

Hwurzburg commented May 24, 2023

this is really a support issue related to how the GCS mode.xml file is created for each GCS....@peterbarker may be able to help....normally I would close this and redirect to discuss.ardupilot.com...but it aappears that some notes in the DEV wiki about creating the info gcs need to plain text show the mode name might be useful...@peterbarker can you provide some bullets on this?

you could also do a git-blame on a recent mode like zig-zag or turtle, examine the PR that added it to find the file changes for the GCS emitter

@HEIseYOUmolc
Copy link
Author

First of all, I am new to Ardupilot, sorry I can't provide you with a lot of information, I will try to post screenshots to make you better solve this problem

@HEIseYOUmolc
Copy link
Author

HEIseYOUmolc commented May 24, 2023

This is the ardupilotmega.h file compiled by my mavlink build, which mentions that my mode is normally enumerated, and in the previously mentioned guide wiki, GCS may use it to automatically populate the list of available copter modes.
image

image

@HEIseYOUmolc
Copy link
Author

this is really a support issue related to how the GCS mode.xml file is created for each GCS....@peterbarker may be able to help....normally I would close this and redirect to discuss.ardupilot.com...but it aappears that some notes in the DEV wiki about creating the info gcs need to plain text show the mode name might be useful...@peterbarker can you provide some bullets on this?

you could also do a git-blame on a recent mode like zig-zag or turtle, examine the PR that added it to find the file changes for the GCS emitter

Thanks for your suggestion, I carefully looked at a lot of changes about zigzag_mode on github, although many did not understand, but I think these are changes to refer to .cpp and .h files, similar to the steps on the wiki, I think it should be related to the changes in the xml file on GCS, I have tried some other methods, but still can't show it in mavproxy or QGC or MissionPlanner, The above is the GCS I have used。

image

image

@HEIseYOUmolc HEIseYOUmolc changed the title Adding a New Flight Mode to Copter Adding a New Flight Mode to Copter,and then show in QCS May 25, 2023
@HEIseYOUmolc HEIseYOUmolc changed the title Adding a New Flight Mode to Copter,and then show in QCS Adding a New Flight Mode to Copter,and then show in GCS May 25, 2023
@Hwurzburg
Copy link
Contributor

@rmackay9 @peterbarker can you recommend any changes to this document?https://ardupilot.org/dev/docs/apmcopter-adding-a-new-flight-mode.html?

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

2 participants