Reply To: ACCX and ACCY stuck at 45

Home Forums Forums Technical Support for BerryIMU ACCX and ACCY stuck at 45 Reply To: ACCX and ACCY stuck at 45

#4117
Mark Williams
Keymaster

You have the BerryIMU upside down, so you would use this piece of code for the accelerometer

        #If IMU is upside down
	#
        #if AccXangle >180:
        #        AccXangle -= 360.0
        #AccYangle-=90
        #if (AccYangle >180):
        #        AccYangle -= 360.0
	

Regarding the heading. Does it seam to work when the BerryIMU is level? The current python code does not include tilt compensation.
This is on our 'to do' list to add to the code

Mark --OzzMaker.com --

Blip, blop, bloop...