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

Add quaternion attitude control scripts #1

Merged
merged 6 commits into from
Dec 22, 2018

Conversation

MaEtUgR
Copy link
Member

@MaEtUgR MaEtUgR commented Dec 16, 2018

The context is in the description of PX4/PX4-Autopilot#11051

I added scripts for the basic calculation and visualization of the quaternion attitude controller:
PX4/PX4-Autopilot#8003
https://github.com/PX4/Firmware/blob/6a5108269e892636826073fd41cbc8eddf57e891/src/modules/mc_att_control/mc_att_control_main.cpp#L543-L599
It's a refactored, pythonized copy of what I used to prototype in Matlab before the controller was introduced. I'm after solving the kind of unexpected results which happen in the cases that is simulated by the test script how it currently is. I'll modularize and enhance the scripts and resolve the case now.

quaternion_position

Copy link
Member

@bresch bresch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Maybe add in the README how to run it, e.g.:
Install dependencies:sudo pip3 install pyquaternion
Run: python3 quaternion_attitude_control_test.py
Or at least mention that it runs on python3 only.

@bresch bresch merged commit 2eef448 into Auterion:master Dec 22, 2018
@MaEtUgR MaEtUgR deleted the quaternion-attitude-control branch December 22, 2018 11:07
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.

3 participants