Skip to content

Conversation

@DusKing1
Copy link
Contributor

@DusKing1 DusKing1 commented Feb 1, 2021

Currently the sign of the axisError[axis] is reversed.

Error data should be :
error = setpoint - gyroADC

The image showed this issue.

  • Left is calculating error on pitch axis via the equation of error = setpoint - gyroADC, and a plot shows how it looks like.
  • Right is csv file exported from the BBE on the same log.

And it seems that the two pieces of error data have different signs.
image

I can share this script (Jupyter notebook) if you need.

Error data should be 
error = setpoint - gyroadc
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 1, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@DusKing1
Copy link
Contributor Author

DusKing1 commented Feb 1, 2021

🤕 Why did those checks fail?

@DusKing1
Copy link
Contributor Author

DusKing1 commented Feb 1, 2021

Anyway, only the Build Windows succeeded, now the two traces seems correct now. Error and P share the same sign, as they should.
image

@mikeller mikeller added this to the 3.6.0 milestone Feb 1, 2021
@mikeller mikeller merged commit 6537927 into betaflight:master Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants