Reply To: Is there a simple way to change orientation in code?

Home Forums Forums Technical Support for BerryIMU Is there a simple way to change orientation in code? Reply To: Is there a simple way to change orientation in code?

#15787
Mark Williams
Keymaster

I assume you are using the python code?

Replace this;

    ACCx = IMU.readACCx()
    ACCy = IMU.readACCy()
    ACCz = IMU.readACCz()
    GYRx = IMU.readGYRx()
    GYRy = IMU.readGYRy()
    GYRz = IMU.readGYRz()

 
with this;

    ACCz = -(IMU.readACCx())
    ACCx = IMU.readACCy()
    ACCy = IMU.readACCz()
    GYRz = -(IMU.readGYRx())
    GYRx = -(IMU.readGYRy())
    GYRy = -(IMU.readGYRz())

Mark --OzzMaker.com --

Blip, blop, bloop...