def getOrientation(self):
        x, y, z = self.getRawData()
        roll = math.atan2(y, z) + math.pi
        pitch = math.atan2(x, z) + math.pi
        if roll > math.pi:
            roll = roll - 2 * math.pi
        if pitch > math.pi:
            pitch = 2 * math.pi - pitch
      
        return Orientation(math.degrees(roll), math.degrees(pitch), 0)
dataset/ETHPy150Open ericboehlke/BB-8/IMU.py/Accelerometer.getOrientation/swapped operands of `-`