|
@@ -10,9 +10,9 @@ import smbus
|
|
|
import numpy as np
|
|
|
|
|
|
class MyIMU(object):
|
|
|
- def __init__(self, addr):
|
|
|
- self.addr = addr
|
|
|
- self.i2c = smbus.SMBus(1)
|
|
|
+ def __init__(self, iic_bus, iic_addr):
|
|
|
+ self.i2c = smbus.SMBus(iic_bus)
|
|
|
+ self.addr = iic_addr
|
|
|
|
|
|
def get_YPRAG(self):
|
|
|
try:
|