Skip to content

Guided Mode Copter Topic #170

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

Merged
merged 2 commits into from
Jun 25, 2015

Conversation

hamishwillee
Copy link
Contributor

This adds a guided mode copter topic - possibly the most important copter topic of all. In order to develop this I significantly extended the guided-set-speed-yaw-demo.py example and associated example code documentation.

One thing I didn't do is rename the example source files, though I did give the example page a new title "Example: Guided Mode Movement and Commands (Copter)".

@mrpollo - worth moving the example and example docs to a new location to reflect the additional content?

@hamishwillee
Copy link
Contributor Author

@djnugent - Could you check this new content out? I am really happy with it, but it is a good idea for all new content to have an independent review.

@djnugent
Copy link

@hamishwillee I'll give it a look!

@djnugent
Copy link

@hamishwillee really impressed with this example!! It has a lot of great functionality. Some of it seems redundant, but I think that's the point if I am not mistaken; various ways to control the drones location?

@djnugent
Copy link

@hamishwillee were you running v3.3 for this test? I'm not sure all of these actions work in v3.2.1. If that is the case then we shouldn't release this example until v3.3 is released.

@hamishwillee
Copy link
Contributor Author

@hamishwillee really impressed with this example!! It has a lot of great functionality. Some of it seems redundant, but I think that's the point if I am not mistaken; various ways to control the drones location?

Glad you like it. Yes, some of the information is redundant. I have tried to be exhaustive in the example but in the guide cover the approaches you should use.

Arguably the example should also guide users in the "best path" too - and I have tried to do that while still showing the less-relevant options. I thought it important to cover all the options because in theory the underlying commands allow quite different behaviour through the use of frames of reference. The fact that our implementation on Copter does not support all of these is useful to know (and it is also useful to provide an example which people can use to test this themselves - as I will when I got to testing this behaviour on Plane/Rover). In the interests of full disclosure, it is also this way because I didn't know anything when I started testing :-)

If you think I should remove these options then let me know.

@hamishwillee were you running v3.3 for this test? I'm not sure all of these actions work in v3.2.1. If that is the case then we shouldn't release this example until v3.3 is released.

This was tested on 3.2.1. The main differences for 3.3 are in the behaviour of set_speed() - which I have documented. 3.3 also adds some changes for Camera, but since I couldn't test those I have omitted them from this example. This is an important enough use case that I hope to document it separately.

Upshot, I think this can go out now/as soon as I've integrated fixes.

@hamishwillee
Copy link
Contributor Author

@djnugent I've added int he fix for the wrong goto commands in each section, and clarification in the example about why the two velocity commands are the same. Thank you very much for the review. Let me know if you think further changes are required following my responses above - otherwise this is good to merge.

@djnugent
Copy link

@hamishwillee if it works on 3.2.1 then we are good 👍. Just read the docs. They are very informative! If you fixed those errors than I'd say this is good to go. Definitely needs review by @mrpollo, this a large commit with stuff I am not 100% confident in. Again, good job 😄

@djnugent
Copy link

@rmackay9 not relevant to this PR, but what is going on in the second image of this commit? When the vehicle is using velocity commands it shows that zigzag patterns in the corners. Is that just PID tuning?

@hamishwillee
Copy link
Contributor Author

@djnugent @rmackay9 Possibly the effect of changing the yaw at the same time as the direction?

@hamishwillee
Copy link
Contributor Author

@mrpollo Hope you can find time to review/merge this today.

@mrpollo
Copy link
Member

mrpollo commented Jun 25, 2015

all good stuff @hamishwillee, I think you cover a lot in here, we might want to keep an eye open for feedback on our guides as well

mrpollo added a commit that referenced this pull request Jun 25, 2015
@mrpollo mrpollo merged commit 9130f10 into dronekit:master Jun 25, 2015
@hamishwillee
Copy link
Contributor Author

@mrpollo Thanks for pushing this in! Yes, we definitely need to keep an eye on feedback for this whole doc set. Perhaps actively seek it via survey or similar on the home page?

This topic is also the case where the new Page-TOC shines - without it finding relevant information in a topic this big would be a lot more difficult.

I wonder if we need to add add a "jump to top" button because some topics are pretty long.

@mrpollo
Copy link
Member

mrpollo commented Jun 26, 2015

@hamishwillee
I think a message to encourage people to file bug claims on docs should be considered, "found a problem on the docs?, file here (link to gh issues)"

Jump to top ++ yes we need one

@hamishwillee hamishwillee deleted the tmp_guided_mode_copter_docs branch July 7, 2015 07:23
@hamishwillee
Copy link
Contributor Author

@mrpollo I added dronekit/sphinx_3dr_theme#35 for "jump to top". Lets discuss the "found problems on the docs" link in next team meeting?

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