ozzmaker / BerryIMU

Code related to BerryIMU
http://ozzmaker.com
181 stars 109 forks source link

XP and YP purpose in python-gyro-accel-compass example? #3

Closed tagaf closed 7 years ago

tagaf commented 7 years ago

Hi, reading your code, it's not clear to me what is the purpose of these two parameters, are strictly related to kalmanFilterX and kalmanFilterY respectively? or they just dont depend on which angle you're considering? in this case why XPs parameters are never used? they have been only declared?

mwilliams03 commented 7 years ago

You spotted an error. XP should be used for X angle and YP should be used for Y angle. I have corrected the code.