Skip to content

Implement PD control loop for magnetic moment calculation#4

Open
AaronW129 wants to merge 2 commits into
mainfrom
PD_loop_v.1
Open

Implement PD control loop for magnetic moment calculation#4
AaronW129 wants to merge 2 commits into
mainfrom
PD_loop_v.1

Conversation

@AaronW129

Copy link
Copy Markdown

Input: wanted quaternion, error quaternion, angular velocity (axis-angle), magnetic field
Output: wanted magnetic moment

Intermediary: Can output wanted torque as well, the torque to magnetic moment conversion is done in a separate function called "tau_to_m". Removing the "tau_to_m" function in the "get_m" function will output the toque.

Input: wanted quaternion, error quaternion, angular velocity (axis-angle), magnetic field
Output: wanted magnetic moment

Intermediary: Can output wanted torque as well, the torque to magnetic moment conversion is done in a separate function called "tau_to_m". Removing the "tau_to_m" function in the "get_m" function will output the toque.
Used the quat2rotation function from quat.c in the error axis angle function
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.

1 participant