Component: Accel / Gyro / Mag 9-Axis (LSM9DS1) (Movement Orientation)
From Flowcode Help
(Redirected from Component: ID 20699a0c 0925 40c4 8aa1 35f294e225e6)
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.1 |
Category | Movement Orientation |
Contents
- 1 Accel / Gyro / Mag 9-Axis (LSM9DS1) component
- 2 Detailed description
- 3 Examples
- 4 Macro reference
- 4.1 CollectXYZData
- 4.2 Initialise
- 4.3 ReadTemperature
- 4.4 Read_Bearing
- 4.5 Read_N_Registers
- 4.6 Read_Register
- 4.7 SetAddress
- 4.8 SimReset1G
- 4.9 SimSetAccelerometer
- 4.10 SimSetCompass
- 4.11 SimSetGyro
- 4.12 SimSetTemperature
- 4.13 UpdateAccelerometerData
- 4.14 UpdateCompassData
- 4.15 UpdateGyroData
- 4.16 Write_N_Registers
- 4.17 Write_Register
- 5 Property reference
- 6 Component Source Code
Accel / Gyro / Mag 9-Axis (LSM9DS1) component
LSM9DS1 Combined 9-Axis Accelerometer, Gyroscope and Magnetometer sensors Useful for working out orientation data such as Pitch, Yaw and Roll.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
CollectXYZData
Initialise
![]() |
Initialise |
Sets up up the communication bus and initialises the accelerometer module. Returns 0 for success and > 0 for fail. | |
![]() |
Return |
ReadTemperature
![]() |
ReadTemperature |
Reads the temperature from the sensor and returns the value as an integer. | |
![]() |
Return |
Read_Bearing
Read_N_Registers
![]() |
Read_N_Registers |
Reads a set of data values from sequential registers on the accelerometer | |
![]() |
Start_Reg |
![]() |
Num_Regs |
![]() |
Data |
![]() |
Return |
Read_Register
![]() |
Read_Register |
Reads a value from a register on the accelerometer. | |
![]() |
Reg |
![]() |
Return |
SetAddress
![]() |
SetAddress |
![]() |
Address |
0=Accelerometer, 1=Magnetometer | |
![]() |
Return |
SimReset1G
![]() |
SimReset1G |
![]() |
Return |
SimSetAccelerometer
![]() |
SimSetAccelerometer |
Allows the XYZ slider values to be set via the simulation | |
![]() |
X |
![]() |
Y |
![]() |
Z |
![]() |
Return |
SimSetCompass
![]() |
SimSetCompass |
Allows the XYZ slider values to be set via the simulation | |
![]() |
X |
![]() |
Y |
![]() |
Z |
![]() |
Return |
SimSetGyro
![]() |
SimSetGyro |
Allows the XYZ slider values to be set via the simulation | |
![]() |
X |
![]() |
Y |
![]() |
Z |
![]() |
Return |
SimSetTemperature
![]() |
SimSetTemperature |
Allows the XYZ slider values to be set via the simulation | |
![]() |
Temp |
![]() |
Return |
UpdateAccelerometerData
![]() |
UpdateAccelerometerData |
Reads from the accelerometer and updates the local XYZ variables. Returns 1 for new data and 0 for no new data | |
![]() |
Return |
UpdateCompassData
![]() |
UpdateCompassData |
Reads from the compass and updates the local XYZ variables. Returns 1 for new data and 0 for no new data | |
![]() |
Return |
UpdateGyroData
![]() |
UpdateGyroData |
Reads from the gyroscope and updates the local XYZ variables. Returns 1 for new data and 0 for no new data | |
![]() |
Return |
Write_N_Registers
![]() |
Write_N_Registers |
Writes a set of data values to a sequential registers on the accelerometer | |
![]() |
Start_Reg |
![]() |
Num_Regs |
![]() |
Data |
![]() |
Return |
Write_Register
![]() |
Write_Register |
Writes a data value to a specific register on the accelerometer | |
![]() |
Reg |
![]() |
Data |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_AccelMagGyro_LSM9DS1.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_AccelMagGyro_LSM9DS1.fcfx