def __init__(self, i2cBus, gaussScale):
        self.bus = SMBus(i2cBus)
    	self.bus.write_byte_data(Accelerometer.LSM_ACC_ADDR, Accelerometer.CTRL_REG1_A,Accelerometer.POWER_ON)
    	self.bus.write_byte_data(Accelerometer.LSM_ACC_ADDR, Accelerometer.CTRL_REG4_A,gaussScale)
    	
    	if gaussScale == Accelerometer.SCALE_A_2G: 
    		self.scale = (-2.0/32768.0)
    	if gaussScale == Accelerometer.SCALE_A_4G: 
    		self.scale = (-4.0/32768.0)
    	if gaussScale == Accelerometer.SCALE_A_8G: 
    		self.scale = (-8.0/32768.0)
    	if gaussScale == Accelerometer.SCALE_A_16G: 
    		self.scale = (-16.0/32768.0)
dataset/ETHPy150Open ericboehlke/BB-8/IMU.py/Accelerometer.__init__/original