Skip to content

Conversation

@ArisMorgens
Copy link
Member

@ArisMorgens ArisMorgens commented Apr 1, 2025

Currently, there are no generic commander setpoints, meant for manual flight.
Also, the current way of choosing between Angle and Rate mode for roll and pitch is a bit legacy. More specifically, you have to change the parameters in crtp_commander_rpyt.py and re-flash the Crazyflie.

I added a new type of packet in the generic crtp commander, called manualType.
Depending on the rate variable, the manualType packet can switch the roll and pitch mode from Angle to Rate, regardless of the parameters set in crtp_commander_rpyt.py.

This is based on Library issue #461 and Firmware issue #1388

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/modules/src/crtp_commander_generic.c:98

  • [nitpick] Consider using a boolean type (e.g., bool) instead of char for the 'rate' field to more clearly indicate its purpose.
  char rate;  // True if roll/pitch in velocity mode

Copy link
Member

@ataffanel ataffanel left a comment

Choose a reason for hiding this comment

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

LGTM, good job!

@ArisMorgens ArisMorgens merged commit 4e3819a into master Apr 10, 2025
25 checks passed
@ArisMorgens ArisMorgens deleted the Aris/Attitude_Rate_Controller branch April 10, 2025 11:39
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