Difference between revisions of "Component: Accel / Gyro 6-Axis (Grove 105020012) (Movement Orientation)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix Ltd |- | width="20%" style="color:gray;" | Version | 1.1 |- | width="20%" style="color:gray...") |
|||
Line 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 36: | Line 38: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Line 53: | Line 57: | ||
− | == | + | ==Macro reference== |
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
Revision as of 14:09, 20 January 2023
Author | Matrix Ltd |
Version | 1.1 |
Category | Movement Orientation |
Contents
Accel / Gyro 6-Axis (Grove 105020012) component
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.
Component Source Code
Please click here for the component source code: FC_Comp_Source_6-Axis_Accelerometer_&_Gyroscope.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetAccelReading | |
Collects one of the accelerometer readings from the last sample. | |
- BYTE | Axis |
0=X, 1=Y, 2=Z | |
- INT | Return |
SampleDevice | |
Collects the accelerometer, gyro and temperature readings from the device, | |
- VOID | Return |
GetGyroReading | |
Collects one of the gyroscope readings from the last sample. | |
- BYTE | Axis |
0=X, 1=Y, 2=Z | |
- INT | Return |
GetTemperatureReading | |
Collects the Temperature readings from the last sample. | |
- INT | Return |
ReadRegister | |
Reads the value from one of the registers onboard the device. | |
- BYTE | Reg |
- BYTE | Return |
WriteRegister | |
Sets the value of one of the registers on the device. | |
- BYTE | Reg |
- BYTE | Data |
- VOID | Return |
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. | |
- BYTE | Return |