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

cmdVel functionality for setting attitude rate reference (besides euler angles references) #796

Open
giannisbdk opened this issue Oct 10, 2024 · 0 comments

Comments

@giannisbdk
Copy link

Dear community,

Trying to address the need to transmit angular velocity references from a ground station computer to the on-board inner attitude-rate PID controller of the Crazyflie, as well as the total thrust affecting the positional dynamics, I have been exploring relevant commands within your Python API.

It appears that the function cmdVel(), which takes as arguments the Euler angles (specifically yaw angular velocity rather than the yaw angle) and thrust, might replicate the functionality of the send_setpoint() method from the commander class in cflib.

The cflib documentation specifies that setting the flightmode parameters for roll, pitch, and yaw (e.g., stabModeRol, stabModePitch, stabModeYaw) to 0 enables what is referred to as modeVelocity instead of modeAbs. This configuration allows for bypassing the attitudeControllerCorrectAttitudePID and directly feeding references into the attitudeControllerCorrectRatePID.

Upon reviewing your library’s source code, it seems that no post-processing is done on the user’s input values, nor are the mentioned parameters modified when using cmdVel().

Thus, my question is: Can I expect the same behavior when using cmdVel(), provided that I configure the flightmode parameters correctly? Will this yield the same functionality as send_setpoint() in the commander class, allowing for angular velocity reference control?

If this is the case, I believe it would be beneficial to update the Python API documentation to clarify this for users who wish to send angular velocity reference commands.

Apologies if this is duplicate issue/discussion.

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

1 participant