LPMS-URS2
The following shows an example of ASCII format serial data output for LPMS-URS2. Please note that you need to select ASCII output explicitly in LPMS-Control in order to switch to this output protocol. After selecting the output protocol make sure to save settings to sensor flash memory.
...
Sensor: Lpms-URS2
Firmware: Lpms-URS2-2.2.2
Sampling Rate: 100Hz
Duration: ~30seconds
Data:
...
Code Block |
---|
$Timestamp,gyroX,gyroY,gyroZ,accX,accY,accZ,magX,magY,magZ,angVelX,angVelY,angVelZ,qw,qx,qy,qz,eulerX,eulerY,eulerZ,linAccX,linAccY,linAccZ,Pressure,Altitude,temperature<LF> |
Data Scale Factor
Order | Format | Sensor data | Factor |
---|---|---|---|
1 | uint32 | Timestamp |
...
(s) | 10000 | ||
2 | Vector3i16 | Raw (bias calibrated) gyroscope data (dps) | 1000 |
3 | Vector3i16 | Raw (uncalibrated) accelerometer data (g) | 1000 |
4 | Vector3i16 | Raw (uncalibrated) magnetometer data (uT) | 1000 |
5 | Vector3i16 | Angular velocity (dps) | 1000 |
6 | Vector4i16 | Orientation quaternion (normalized) | 100000 |
7 | Vector3i16 | Euler angle data (deg) | 1000 |
8 | Vector3i16 | Linear acceleration data (g) | 1000 |
9 | Int16 | Barometric pressure (kPa) | 1000 |
10 | Int16 | Altitude (m) | 10 |
11 | Int16 | Temperature (°C) | 100 |
12 | Int16 | Heave motion (m) (optional) | 1000 |
LPMS-IG1-RS232
ASCII output for LPMS-IG1-RS232 is similar to URS2, where the data is prefix with a start byte and ends with a stop byte. The output data depends on the transmit data settings. The data scale factors are shown in the table below:
Order | Format | Sensor data | Scale factor |
---|---|---|---|
1 | UInt32 | Timestamp counter incremented in 500Hz. multiply by 0.002 to convert to seconds. | 500 |
2 | Vector3i16 | Raw accelerometer (g) | 1000 |
3 | Vector3i16 | Calibrated accelerometer (g) | 1000 |
4 | Vector3i16 | Raw GyroI (dps or rad/s) | dps: 1000 rad/s: 1000 |
5 | Vector3i16 | Raw GyroII (dps or rad/s) | dps: 1000 rad/s: 1000 |
6 | Vector3i16 | Static bias calibrated GyroI (dps or rad/s) | dps: 1000 rad/s: 1000 |
7 | Vector3i16 | Static bias calibrated GyroII (dps or rad/s) | dps: 1000 rad/s: 1000 |
8 | Vector3i16 | Alignment calibrated GyroI (dps or rad/s) | dps: 1000 rad/s: 1000 |
9 | Vector3i16 | Alignment calibrated GyroII (dps or rad/s) | dps: 1000 rad/s: 1000 |
10 | Vector3i16 | Raw magnetometer (uT) | 100 |
11 | Vector3i16 | Calibrated magnetometer (uT) | 100 |
12 | Vector3i16 | Angular Vel. (dps or rad/s) | dps: 1000 rad/s: 1000 |
13 | Vector4i16 | Quaternion | 100000 |
14 | Vector3i16 | Euler(degree or rad) | deg: 100 rad:10000 |
15 | Vector3i16 | Linear acceleration (g) | 1000 |
16 | Int16 | Reserved | |
17 | Int16 | Reserved | |
18 | Int16 | Temperature (°C) | 100 |