Component: Accel / Gyro 6-Axis (MPU-6050) (Movement Orientation)
From Flowcode Help
Jump to navigationJump to search| Author | Matrix Ltd |
| Version | 2.1 |
| Category | Movement Orientation |
Contents
Accel / Gyro 6-Axis (MPU-6050) component
MPU-6050 Combined 6-Axis Accelerometer and Gyroscope sensors. Useful for working out data such as Pitch and Roll. Can be combined with a Magnetometer to also provide Yaw.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetAccelReading
| GetAccelReading | |
| Collects one of the accelerometer readings from the last sample. | |
| Axis | |
| 0=X, 1=Y, 2=Z | |
| Return | |
GetAccelReadingReal
| GetAccelReadingReal | |
| Collects one of the accelerometer readings from the last sample in G. | |
| Axis | |
| 0=X, 1=Y, 2=Z | |
| Return | |
GetGyroReadingReal
| GetGyroReadingReal | |
| Collects one of the gyroscope readings from the last sample in degrees/s. | |
| Axis | |
| 0=X, 1=Y, 2=Z | |
| Return | |
GetGyroReadng
| GetGyroReadng | |
| Collects one of the gyroscope readings from the last sample. | |
| Axis | |
| 0=X, 1=Y, 2=Z | |
| Return | |
GetTempReadingInt
| GetTempReadingInt | |
| Collects the temperature reading in degrees C as an integer value. | |
| Return | |
GetTempReadingReal
| GetTempReadingReal | |
| Collects the temperature reading in degrees C as a floating point value. | |
| Return | |
Initialise
| Initialise | |
| Startup the I2C bus and configure the device. Returns 0 if the device is ok and 255 if the device is not responding correctly. | |
| Return | |
ReadRegister
| ReadRegister | |
| Reads the value from one of the registers onboard the device. | |
| Address | |
| Return | |
SampleDevice
| SampleDevice | |
| Collects the accelerometer, gyro and temperature readings from the device, | |
| Return | |
WriteRegister
| WriteRegister | |
| Sets the value of one of the registers on the device. | |
| Address | |
| Value | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_MPU-6050.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_MPU-6050.fcfx