Altitude (1 Hz, 4 byte)

Note

A 3D-fix is required to obtain a valid altitude.

The altitude is defined as the height above the WGS84 reference ellipsoid (an ellipsoid used by GPS to approximate the shape of the earth). Note that several ways of defining altitude exist1.

Configuration file fields

This section is autogenerated from the Rule Schema.

GNSS altitude (1000 ms) output.altitude

State output.altitude.state

Type Default Options
integer 1

Disable: 0 Enable: 1

ID Format output.altitude.id_format

ID format of the message

Type Default Options
integer 0

Standard (11-bit): 0 Extended (29-bit): 1

Message ID (hex) output.altitude.id

ID of the message in hex. Example: 00435354.

Type Default
string 01

Trigger method output.altitude.trigger

Transmission trigger method. Push: Signal is periodically transmitted. Poll: Signal is transmitted on request

Type Default Options
integer 0

Push: 0 Poll: 1


Frame layout

Note

The frame layout is defined in the CANmod.gps DBC file

The altitude frame contains altitude information.

Name

Bitpos

Length

Factor

Offset

Min

Max

Unit

AltitudeValid

0

1

1

0

0

1

Altitude

1

18

0.1

-6000

-6000

20000

m

AltitudeAccuracy

19

13

1

0

0

8000

m

AltitudeValid

The AltitudeValid signal can take one of the following values:

  • 0: Invalid

  • 1: Valid

Decoding example

Raw altitude frame payload:

  • Hex: 0029D8A9 (byte 0 to the right)

  • Bin: 0000000000101 001110110001010100 1 (bit 0 to the right)

AltitudeAccuracy(13)

Altitude(18)

AltitudeValid(1)

Raw (bin)

0000000000101

001110110001010100

1

Raw (dec)

5

60500

1

Scaled

5

6050.0

1

Offset

5

50.0

1

The altitude of 50.0 m is valid with an accuracy of 5 m.


1

Google earth uses the MLS (mean-sea-level) approximation as altitude reference.