Search found 2 matches

by bma
Wed Jul 01, 2020 10:13 am
Forum: Developer Discussions
Topic: State estimation values for controller seem incorrect
Replies: 2
Views: 208

Re: State estimation values for controller seem incorrect

I figured out what the issue was! I had set the log group variables to type PARAM_FLOAT instead of LOG_FLOAT accidentally. (Oops :cry: )

Code: Select all

LOG_GROUP_START(crtstate)
LOG_ADD(PARAM_FLOAT,q1, &q1)
LOG_GROUP_STOP(crtstate)
Thanks for the help!
by bma
Wed Jul 01, 2020 1:38 am
Forum: Developer Discussions
Topic: State estimation values for controller seem incorrect
Replies: 2
Views: 208

State estimation values for controller seem incorrect

Hi! I am relatively new to coding in C, and I am trying to add a custom controller to the crazyflie firmware. I wanted to do some troubleshooting to make sure that the controller was receiving the correct state, and so I decided to log the state information in stabilizer.c after it was passed to the...