Difference between revisions of "Component: Gyroscope 3-Axis (L3G4200D) (Movement Orientation)"
From Flowcode Help
Jump to navigationJump to search(4 intermediate revisions by the same user not shown) | |||
Line 73: | Line 73: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Line 79: | Line 89: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===GetX=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetX''' |
|- | |- | ||
− | | colspan="2" | Returns the previously sampled | + | | colspan="2" | Returns the previously sampled X axis data |
|- | |- | ||
|- | |- | ||
Line 92: | Line 103: | ||
+ | ===GetY=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 105: | Line 117: | ||
+ | ===GetZ=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetZ''' |
|- | |- | ||
− | | colspan="2" | Returns the previously sampled | + | | colspan="2" | Returns the previously sampled Z axis data |
|- | |- | ||
|- | |- | ||
Line 118: | Line 131: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
− | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise''' |
|- | |- | ||
− | | colspan="2" | | + | | colspan="2" | Initialise the component. |
|- | |- | ||
|- | |- | ||
Line 131: | Line 145: | ||
+ | ===ReadRegister=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 149: | Line 164: | ||
+ | ===SampleDevice=== | ||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SampleDevice''' | ||
+ | |- | ||
+ | | colspan="2" | Reads the Axis data from the device | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | ===WriteRegister=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 170: | Line 200: | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Latest revision as of 10:26, 20 October 2023
Author | Matrix TSL |
Version | 2.0 |
Category | Movement Orientation |
Contents
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