|
|
|
@ -343,6 +343,9 @@ private:
@@ -343,6 +343,9 @@ private:
|
|
|
|
|
*/ |
|
|
|
|
void _set_sample_rate(uint16_t desired_sample_rate_hz); |
|
|
|
|
|
|
|
|
|
/* do not allow to copy this class due to pointer data members */ |
|
|
|
|
MPU6000(const MPU6000&); |
|
|
|
|
MPU6000 operator=(const MPU6000&); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -369,6 +372,9 @@ private:
@@ -369,6 +372,9 @@ private:
|
|
|
|
|
orb_advert_t _gyro_topic; |
|
|
|
|
int _gyro_class_instance; |
|
|
|
|
|
|
|
|
|
/* do not allow to copy this class due to pointer data members */ |
|
|
|
|
MPU6000_gyro(const MPU6000_gyro&); |
|
|
|
|
MPU6000_gyro operator=(const MPU6000_gyro&); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** driver 'main' command */ |
|
|
|
@ -378,13 +384,16 @@ MPU6000::MPU6000(int bus, const char *path_accel, const char *path_gyro, spi_dev
@@ -378,13 +384,16 @@ MPU6000::MPU6000(int bus, const char *path_accel, const char *path_gyro, spi_dev
|
|
|
|
|
SPI("MPU6000", path_accel, bus, device, SPIDEV_MODE3, MPU6000_LOW_BUS_SPEED), |
|
|
|
|
_gyro(new MPU6000_gyro(this, path_gyro)), |
|
|
|
|
_product(0), |
|
|
|
|
_call{}, |
|
|
|
|
_call_interval(0), |
|
|
|
|
_accel_reports(nullptr), |
|
|
|
|
_accel_scale{}, |
|
|
|
|
_accel_range_scale(0.0f), |
|
|
|
|
_accel_range_m_s2(0.0f), |
|
|
|
|
_accel_topic(-1), |
|
|
|
|
_accel_class_instance(-1), |
|
|
|
|
_gyro_reports(nullptr), |
|
|
|
|
_gyro_scale{}, |
|
|
|
|
_gyro_range_scale(0.0f), |
|
|
|
|
_gyro_range_rad_s(0.0f), |
|
|
|
|
_sample_rate(1000), |
|
|
|
|