SRK Version of mDot LoRa_Sensormode_SRK
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_LoRa_Sensornode by
MPU9250 Class Reference
Provides Functionality to control the MPU9250 Sensor on the Sensbert. More...
#include <MPU9250.h>
Public Member Functions | |
void | init (MPU9250_MODE desiredMode) |
Initializes the MPU9250 according to the desired MPU9250_MODE. | |
float | getXAxisAcceleration () |
Gets the measured x-axis acceleration. | |
float | getYAxisAcceleration () |
Gets the measured y-axis acceleration. | |
float | getZAxisAcceleration () |
Gets the measured z-axis acceleration. | |
float | getXAxisGyro () |
Gets the measured x-axis gyroscope value. | |
float | getYAxisGyro () |
Gets the measured y-axis gyroscope value Important: Gyroscope measurement first needs to be enable by enableGyroscopeMeasurement() | |
float | getZAxisGyro () |
Gets the measured z-axis gyroscope value. | |
float | getXAxisTesla () |
Gets the measured x-axis tesla value. | |
float | getYAxisTesla () |
Gets the measured y-axis tesla value. | |
float | getZAxisTesla () |
Gets the measured z-axis tesla value. |
Detailed Description
Provides Functionality to control the MPU9250 Sensor on the Sensbert.
Definition at line 319 of file MPU9250.h.
Member Function Documentation
float getXAxisAcceleration | ( | ) |
Gets the measured x-axis acceleration.
Important: Acceleration measurement first needs to be enable by enableAccelerationMeasurement()
- Returns:
Definition at line 32 of file MPU9250.cpp.
float getXAxisGyro | ( | ) |
Gets the measured x-axis gyroscope value.
Important: Acceleration measurement first needs to be enable by enableAccelerationMeasurement()
- Returns:
Definition at line 77 of file MPU9250.cpp.
float getXAxisTesla | ( | ) |
Gets the measured x-axis tesla value.
Important: Gyroscope measurement first needs to be enable by enableGyroscopeMeasurement()
- Returns:
Definition at line 119 of file MPU9250.cpp.
float getYAxisAcceleration | ( | ) |
Gets the measured y-axis acceleration.
Important: Acceleration measurement first needs to be enable by enableAccelerationMeasurement()
- Returns:
Definition at line 47 of file MPU9250.cpp.
float getYAxisGyro | ( | ) |
Gets the measured y-axis gyroscope value Important: Gyroscope measurement first needs to be enable by enableGyroscopeMeasurement()
- Returns:
Definition at line 91 of file MPU9250.cpp.
float getYAxisTesla | ( | ) |
Gets the measured y-axis tesla value.
Important: Tesla measurement first needs to be enable by enableTeslaMeasurement()
- Returns:
Definition at line 138 of file MPU9250.cpp.
float getZAxisAcceleration | ( | ) |
Gets the measured z-axis acceleration.
Important: Acceleration measurement first needs to be enable by enableAccelerationMeasurement()
- Returns:
Definition at line 62 of file MPU9250.cpp.
float getZAxisGyro | ( | ) |
Gets the measured z-axis gyroscope value.
Important: Gyroscope measurement first needs to be enable by enableGyroscopeMeasurement()
- Returns:
Definition at line 105 of file MPU9250.cpp.
float getZAxisTesla | ( | ) |
Gets the measured z-axis tesla value.
Important: Tesla measurement first needs to be enable by enableTeslaMeasurement()
- Returns:
Definition at line 157 of file MPU9250.cpp.
void init | ( | MPU9250_MODE | desiredMode ) |
Initializes the MPU9250 according to the desired MPU9250_MODE.
- Parameters:
-
desiredMode the desired Mode depending on which the MPU9250 has to be configured
Definition at line 23 of file MPU9250.cpp.
Generated on Wed Jul 13 2022 09:23:48 by 1.7.2