mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
mpu9250: propagated new constructor flag for i2c bypass
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
ac21c9336b
commit
cc7930caf3
@ -31,8 +31,8 @@
|
||||
using namespace upm;
|
||||
using namespace std;
|
||||
|
||||
MPU9250::MPU9250 (int bus, int address, int magAddress) :
|
||||
MPU9150(bus, address, magAddress)
|
||||
MPU9250::MPU9250 (int bus, int address, int magAddress, bool enableAk8975) :
|
||||
MPU9150(bus, address, magAddress, enableAk8975)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -58,9 +58,11 @@ namespace upm {
|
||||
* @param bus I2C bus to use
|
||||
* @param address The address for this device
|
||||
* @param magAddress The address of the connected magnetometer
|
||||
* @param enableAk8975 Enables i2c bypass mode for magnetometer, default
|
||||
* is true
|
||||
*/
|
||||
MPU9250 (int bus=MPU9250_I2C_BUS, int address=MPU9250_DEFAULT_I2C_ADDR,
|
||||
int magAddress=AK8975_DEFAULT_I2C_ADDR);
|
||||
int magAddress=AK8975_DEFAULT_I2C_ADDR, bool enableAk8975=true);
|
||||
|
||||
/**
|
||||
* MPU9250 destructor
|
||||
|
Loading…
x
Reference in New Issue
Block a user