Skip to content

DigGenRstInclinometerAsciiDataStrMsg

Dig Gen Rst Inclinometer Ascii Data Str Msg

Message containing the data read from Rst inclinometer sensors connected to the DIG Gen.

Top-level portError / portData handles port-level failures. When portError is False, each
sensor reports temperature, xAxis (tilt), and optionally yAxis (tilt on second axis), gated
by a per-sensor hasYAxis flag.

Each measurement has a paired boolean error flag (temperatureError, xAxisError, yAxisError).
When the flag is True, the measurement field holds a 3-bit error subcode (MeasurementError).
When the flag is False, the measurement field holds the actual value.

Temperature: 11-bit two's complement, multiplied by 10 on wire. Unit: degrees Celsius.
xAxis/yAxis: 19-bit two's complement, multiplied by 10000 on wire. Unit: degrees.

Integration ID: 2 | Message Version: 0

Source Code


Field Bits Type Unit Condition Mutator Error Description
numSensors 9 UInt Always
portError 1 Bool Always
errorData 3 UInt portError == 1 EntryError(GENERAL_ERROR, 0), EntryError(GENERAL_ERROR, 1), EntryError(GENERAL_ERROR, 2), EntryError(GENERAL_ERROR, 3), EntryError(GENERAL_ERROR, 4), EntryError(GENERAL_ERROR, 5), EntryError(GENERAL_ERROR, 6), EntryError(GENERAL_ERROR, 7)
Y Axis [numSensors] — Seq portError == 0
├── hasYAxis 1 Bool —
├── temperatureError 1 Bool —
├── temperature 3 UInt temperatureError == 1 EntryError(GENERAL_ERROR, 0), EntryError(NOT_RESPONDING, 1), EntryError(DATA_OUT_OF_RANGE, 2), EntryError(CANNOT_BE_INTERPRETED, 3), EntryError(PROTOCOL_ERROR, 4), EntryError(GENERAL_ERROR, 5), EntryError(GENERAL_ERROR, 6), EntryError(GENERAL_ERROR, 7)
├── temperature 11 Int Cel temperatureError == 0 ScalingMutator(×10)
├── xAxisError 1 Bool —
├── xAxis 3 UInt xAxisError == 1 EntryError(GENERAL_ERROR, 0), EntryError(NOT_RESPONDING, 1), EntryError(DATA_OUT_OF_RANGE, 2), EntryError(CANNOT_BE_INTERPRETED, 3), EntryError(PROTOCOL_ERROR, 4), EntryError(GENERAL_ERROR, 5), EntryError(GENERAL_ERROR, 6), EntryError(GENERAL_ERROR, 7)
├── xAxis 19 Int deg xAxisError == 0 ScalingMutator(×10000)
├── yAxisError 1 Bool hasYAxis == 1
├── yAxis 3 UInt yAxisError == 1 EntryError(GENERAL_ERROR, 0), EntryError(NOT_RESPONDING, 1), EntryError(DATA_OUT_OF_RANGE, 2), EntryError(CANNOT_BE_INTERPRETED, 3), EntryError(PROTOCOL_ERROR, 4), EntryError(GENERAL_ERROR, 5), EntryError(GENERAL_ERROR, 6), EntryError(GENERAL_ERROR, 7)
└── yAxis 19 Int deg yAxisError == 0 ScalingMutator(×10000)