#### Heading Sensor Setup

| Menu path |
|-------------|
| {{ menu }} → {{ settings }} → Sensors → Add sensor → Heading |

The sensor connection and setup are performed in accordance with the {doc}`procedure </sections/sensors/navigation-sensors/index>`.

Heading sensors: magnetic compass, gyrocompass, or {doc}`**INS** </sections/sensors/ins/index>` **(Integrated Navigation System)**.

Received message processing must be correctly configured in the sensor settings.

Heading devices, depending on the device type, transmit the following IEC 61162 sentence headers:

- **HC** — magnetic compass;
- **HE** — gyrocompass, free in azimuth;
- **HF** — induction magnetic compass;
- **HN** — gyro heading device, gyro azimuth;
- **GP, GL, GA, GB, GN** — satellite compass;
- **SN** — inertial navigation system;
- **IN** — integrated navigation system;
- **U0...U9** — non-standard header (typically used by non-standard equipment manufacturers). Used rarely.


##### Recommended Sentence Set for Heading Sensor

![HDG Sentences](images/HDG_2.png)

The heading device has no additional specific settings.

```{error}
ECDIS receives the true heading value from the magnetic compass. Application of current magnetic variation and magnetic compass deviation must be performed by the navigator on the main magnetic compass instrument.
```

```{error}
ECDIS receives the true heading value from the gyrocompass. Application of the gyrocompass constant correction must be performed by the navigator on the main gyrocompass instrument.
```