8.6 Vector commands
8.6 Vector commands
The SQM-LU-DL-V uses the Pololu 2127 accelerometer/magnetometer module which contains an STMicroelectronics
LSM303D digital 3-axis accelerometer and 3-axis magnetometer module. This module provides vector measurement
capabilities of Altitude (inclinometer) and Azimuth (compass) readings.
All of the SQM-LU-DL-V datalogging commands begin with “v” (lower case).
8.6.1 Magnetic readings
To get a report on magnetic values of the accelerometer/magnetometer module use the “
v1x
” command. The response is
shown in table 8.37:
Table 8.37: Response of requesting the vector module magnetic values
Position
Example value
Description
0
v1,
Confirmation of command
1
12345,
M
X
; magnetic value of
X
axis.
5 digits with trailing comma and possible leading negative sign.
2
-12345,
M
Y
; magnetic value of
Y
axis.
5 digits with trailing comma and possible leading negative sign.
3
00045
M
Z
; magnetic value of
Z
axis.
5 digits with possible leading negative sign.
Carriage return (0x0d), Line feed (0x0a).
An example response to “
v1x
” is:
v1,00005,-00268,-04170
8.6.2 Acceleration readings
To get a report on acceleration values of the accelerometer/magnetometer module use the “
v2x
” command. The response
is shown in table 8.38:
Table 8.38: Response of requesting the vector module accelerations
Position
Example value
Description
0
v2,
Confirmation of command
1
12345,
A
X
; acceleration value of
X
axis.
5 digits with trailing comma and possible leading negative sign.
2
-12345,
A
Y
; acceleration value of
Y
axis.
5 digits with trailing comma and possible leading negative sign.
3
0045
A
Z
; acceleration value of
Z
axis.
5 digits with possible leading negative sign.
Carriage return (0x0d), Line feed (0x0a).
An example response to “
v2x
” is:
v2,00338,00245,17079
Unihedron SQM-LU-DL-V Operator’s Manual -
20211013
83
Summary of Contents for SQM-LU-DL-V
Page 2: ......
Page 104: ...14 Glossary 104 Unihedron SQM LU DL V Operator s Manual 20211013...