Component: Gyroscope 3-Axis (L3G4200D) (Movement Orientation): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 93: | Line 93: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetX''' | ||
|- | |- | ||
| colspan="2" | Returns the previously sampled X axis data | | colspan="2" | Returns the previously sampled X axis data | ||
| Line 107: | Line 107: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetY''' | ||
|- | |- | ||
| colspan="2" | Returns the previously sampled Y axis data | | colspan="2" | Returns the previously sampled Y axis data | ||
| Line 121: | Line 121: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetZ''' | ||
|- | |- | ||
| colspan="2" | Returns the previously sampled Z axis data | | colspan="2" | Returns the previously sampled Z axis data | ||
| Line 135: | Line 135: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Initialise the component. | | colspan="2" | Initialise the component. | ||
| Line 149: | Line 149: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadRegister''' | ||
|- | |- | ||
| colspan="2" | Read the data byte at the given address of the device | | colspan="2" | Read the data byte at the given address of the device | ||
| Line 168: | Line 168: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SampleDevice''' | ||
|- | |- | ||
| colspan="2" | Reads the Axis data from the device | | colspan="2" | Reads the Axis data from the device | ||
| Line 182: | Line 182: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WriteRegister''' | ||
|- | |- | ||
| colspan="2" | Writes the data byte to the given address of the device. Returns 0 if successful | | colspan="2" | Writes the data byte to the given address of the device. Returns 0 if successful | ||
| Line 207: | Line 207: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:22, 13 July 2026
| Author | Matrix TSL |
| Version | 2.0 |
| Category | Movement Orientation |
Gyroscope 3-Axis (L3G4200D) component
Interface to the L3G4200D three axis digital gyroscope. Panel GUI can be used to simulate incoming data for testing.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Gyroscope_L3G4200D.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Gyroscope_L3G4200D.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetX
| GetX | |
| Returns the previously sampled X axis data | |
| Return | |
GetY
| GetY | |
| Returns the previously sampled Y axis data | |
| Return | |
GetZ
| GetZ | |
| Returns the previously sampled Z axis data | |
| Return | |
Initialise
| Initialise | |
| Initialise the component. | |
| Return | |
ReadRegister
| ReadRegister | |
| Read the data byte at the given address of the device | |
| Reg | |
| address of the register to be read | |
| Return | |
SampleDevice
| SampleDevice | |
| Reads the Axis data from the device | |
| Return | |
WriteRegister