Пример #1
0
    def __init__(self, bus=0, address=0x68, magAddress=0x0c):
        """
        __init__(upm::MPU9150 self, int bus=0, int address=0x68, int magAddress=0x0c) -> MPU9150

        Parameters:
            bus: int
            address: int
            magAddress: int

        __init__(upm::MPU9150 self, int bus=0, int address=0x68) -> MPU9150

        Parameters:
            bus: int
            address: int

        __init__(upm::MPU9150 self, int bus=0) -> MPU9150

        Parameters:
            bus: int

        __init__(upm::MPU9150 self) -> MPU9150
        """
        this = _pyupm_mpu9150.new_MPU9150(bus, address, magAddress)
        try:
            self.this.append(this)
        except:
            self.this = this
Пример #2
0
    def __init__(self, bus=0, address=0x68, magAddress=0x0c):
        """
        __init__(upm::MPU9150 self, int bus=0, int address=0x68, int magAddress=0x0c) -> MPU9150

        Parameters:
            bus: int
            address: int
            magAddress: int

        __init__(upm::MPU9150 self, int bus=0, int address=0x68) -> MPU9150

        Parameters:
            bus: int
            address: int

        __init__(upm::MPU9150 self, int bus=0) -> MPU9150

        Parameters:
            bus: int

        __init__(upm::MPU9150 self) -> MPU9150
        """
        this = _pyupm_mpu9150.new_MPU9150(bus, address, magAddress)
        try:
            self.this.append(this)
        except:
            self.this = this
    def __init__(self, bus=0, devAddr=0x68):
        """
        __init__(upm::MPU9150 self, int bus=0, int devAddr=0x68) -> MPU9150

        Parameters:
            bus: int
            devAddr: int

        __init__(upm::MPU9150 self, int bus=0) -> MPU9150

        Parameters:
            bus: int

        __init__(upm::MPU9150 self) -> MPU9150
        """
        this = _pyupm_mpu9150.new_MPU9150(bus, devAddr)
        try:
            self.this.append(this)
        except:
            self.this = this