-
Notifications
You must be signed in to change notification settings - Fork 226
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
Flat Trim #18
Comments
sounds good to me. |
Thanks for the code @devmax . My previous attempts to use flat-trim was not successful. Once I put a |
Hi Mani, I didn't actually do the printf test like you, but what I did was to do a flat trim while echo-ing the navdata from the drone. In the landed state the altitude is automatically zero, but the rotXYZ values seem to be reset everytime I gave the command. More concretely, I did a flat trim a couple of times while the drone was in the air, and it crashed as expected..So there is something definitely going on! The other ARDrone tool commands (set_ui_pad and set_Progressive_cmd) seem to work fine, so I see no reason why this shouldn't! |
That's the correct way to testing of course. |
@mani-monaj did you put the printf commands in ardrone_at_mutex.c? I did that and they didn't get executed..however even when i put the print commands in ardrone_at_set_ui_pad_value, they didn't get executed, although of course the drone takes off and lands just fine..any idea what the problem could be? I'm not very well versed with mutexes! |
@devmax I think the whole idea of putting |
@mani-monaj I agree...but you said that's the correct way of testing it...what did you mean then? |
I meant the method that you used which tested the functionality rather than execution. Sorry for being vague. |
oh I see, in that case do you want to commit the changes? |
Sure. As soon as I can. |
Thanks for the contribution. Note: |
Add sonar and pressure sensor publishers
I noticed that doing a flat trim before every take-off sometimes drastically improves the accuracy of the sonar data(as it is now calibrated to zero) and leads to more stable take-offs...Unfortunately I don't have the time now to figure out how pull requests work, so please consider adding this code to enable flat trims!
in
ardrone_driver.cpp
addin
ardrone_driver.h
adduser then publishes empty message to 'ardrone/flatTrim' topic to do a flat trim!
The text was updated successfully, but these errors were encountered: