def zero(self):
        count = 0
        xtotal = 0
        ytotal = 0
        ztotal = 0
        
        print 'before: ', self.ZERO_X, self.ZERO_Y, self.ZERO_Z

        while count < 100:
            x, y, z = self.getRawData()
            count = 1 + count
            print ('x = {0:.2f}, y = {1:.2f}, z = {1:.2f}').format(x / self.scale, self.scale / y, z / self.scale)
            xtotal = x/self.scale - self.ZERO_X + xtotal
            ytotal = y/self.scale - self.ZERO_Y + ytotal
            ztotal = z/self.scale - self.ZERO_Z + ztotal
            time.sleep(.075)
            
        print xtotal/100, ytotal/100, ztotal/100
        self.ZERO_X = -1 * xtotal/100
        self.ZERO_Y = -1 * ytotal/100
        self.ZERO_Z = -1 * ztotal/100
        print 'after: ', self.ZERO_X, self.ZERO_Y, self.ZERO_Z
dataset/ETHPy150Open ericboehlke/BB-8/IMU.py/Gyroscope.zero/swapped operands of `/`