Skip to content

How to use Lee Controller in Crazyflie-lib-Python #1528

Answered by gemenerik
WoodyloveBo asked this question in Q&A
Discussion options

You must be logged in to vote

The thrust in the setpoint was originally based on PWM. However, battery compensation has since been added, so it's no longer purely PWM that we use as a reference. Instead, it's more accurate to consider it as a throttle command, scaled from 10001 to 60000.

This "thrust" refers to the mean thrust. The controller generates commands to control the attitude, and these are combined with the thrust to produce the average thrust as requested. The attitude controller's commands are prioritized, and the thrust is scaled accordingly.

Regarding the Lee controller: thrust and torque are internal to that controller (#1503). It still relies on the same setpoints as other controllers, including this P…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WoodyloveBo
Comment options

Answer selected by WoodyloveBo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants