The heading indicator (HI), also known as a directional gyro  (DG) or direction indicator (DI),     is a flight instrument used in an aircraft to inform the pilot of the aircraft's heading.
The primary means of establishing the heading in most small aircraft is the magnetic compass, which, however, suffers from several types of errors, including that created by the "dip" or downward slope of the Earth's magnetic field. Dip error causes the magnetic compass to read incorrectly whenever the aircraft is in a bank, or during acceleration or deceleration, making it difficult to use in any flight condition other than unaccelerated, perfectly straight and level. To remedy this, the pilot will typically maneuver the airplane with reference to the heading indicator, as the gyroscopic heading indicator is unaffected by dip and acceleration errors. The pilot will periodically reset the heading indicator to the heading shown on the magnetic compass.    
The heading indicator works using a gyroscope, tied by an erection mechanism to the aircraft yawing plane, i. e. the plane defined by the longitudinal and the horizontal axis of the aircraft. As such, any configuration of the aircraft yawing plane that does not match the local Earth horizontal results in an indication error. The heading indicator is arranged such that the gyro axis is used to drive the display, which consists of a circular compass card calibrated in degrees. The gyroscope is spun either electrically, or using filtered air flow from a suction pump (sometimes a pressure pump in high altitude aircraft) driven from the aircraft's engine. Because the Earth rotates (ω, 15° per hour, apparent drift), and because of small accumulated errors caused by imperfect balancing of the gyro, the heading indicator will drift over time (real drift), and must be reset using a magnetic compass periodically.  [lower-alpha 1] The apparent drift is predicted by ω sin Latitude and will thus be greatest over the poles. To counter for the effect of Earth rate drift a latitude nut can be set (on the ground only) which induces a (hopefully equal and opposite) real wander in the gyroscope. Otherwise it would be necessary to manually realign the direction indicator once each ten to fifteen minutes during routine in-flight checks. Failure to do this is a common source of navigation errors among new pilots. Another sort of apparent drift exists in the form of transport wander, caused by the aircraft movement and the convergence of the meridian lines towards the poles. It equals the course change along a great circle (orthodrome) flight path. 
Some more expensive heading indicators are "slaved" to a magnetic sensor, called a flux gate . The flux gate continuously senses the Earth's magnetic field, and a servo mechanism constantly corrects the heading indicator.  These "slaved gyros" reduce pilot workload by eliminating the need for manual realignment every ten to fifteen minutes.
The prediction of drift in degrees per hour, is as follows:
|Source||Drift rate (°/hr)||Sign, by hemisphere|
|Earth rate||15 sin(operating latitude)||− (causing an under-read)||+ (causing an over-read)|
|Latitude nut||15 sin(latitude of setting)||+||−|
|Transport wander, East||East ground speed component (or, sin(track angle) × ground speed, or, change in longitude/flight time in hours) × 1⁄60tan(operating latitude)||−||+|
|Transport wander, West||West ground speed component (or sin(track angle) × ground speed or change in longitude/flight time in hours) × 1⁄60tan(operating latitude)||+||−|
|Real/random wander||As given in the aircraft operating manual||As given||As given|
Although it is possible to predict the drift, there will be minor variations from this basic model, accounted for by gimbal error (operating the aircraft away from the local horizontal), among others. A common source of error here is the improper setting of the latitude nut (to the opposite hemisphere for example). The table however allows one to gauge whether an indicator is behaving as expected, and as such, is compared with the realignment corrections made with reference to the magnetic compass. Transport wander is an undesirable consequence of apparent drift.
A gyroscope is a device used for measuring or maintaining orientation and angular velocity. It is a spinning wheel or disc in which the axis of rotation is free to assume any orientation by itself. When rotating, the orientation of this axis is unaffected by tilting or rotation of the mounting, according to the conservation of angular momentum.
A gyrocompass is a type of non-magnetic compass which is based on a fast-spinning disc and the rotation of the Earth to find geographical direction automatically. The use of a gyrocompass is one of the seven fundamental ways to determine the heading of a vehicle. A gyroscope is an essential component of a gyrocompass, but they are different devices; a gyrocompass is built to use the effect of gyroscopic precession, which is a distinctive aspect of the general gyroscopic effect. Gyrocompasses are widely used for navigation on ships, because they have two significant advantages over magnetic compasses:
Flight instruments are the instruments in the cockpit of an aircraft that provide the pilot with data about the flight situation of that aircraft, such as altitude, airspeed, vertical speed, heading and much more other crucial information in flight. They improve safety by allowing the pilot to fly the aircraft in level flight, and make turns, without a reference outside the aircraft such as the horizon. Visual flight rules (VFR) require an airspeed indicator, an altimeter, and a compass or other suitable magnetic direction indicator. Instrument flight rules (IFR) additionally require a gyroscopic pitch-bank, direction and rate of turn indicator, plus a slip-skid indicator, adjustable altimeter, and a clock. Flight into instrument meteorological conditions (IMC) require radio navigation instruments for precise takeoffs and landings.
The attitude indicator (AI), formerly known as the gyro horizon or artificial horizon, is a flight instrument that informs the pilot of the aircraft orientation relative to Earth's horizon, and gives an immediate indication of the smallest orientation change. The miniature aircraft and horizon bar mimic the relationship of the aircraft relative to the actual horizon. It is a primary instrument for flight in instrument meteorological conditions.
The basic principles of air navigation are identical to general navigation, which includes the process of planning, recording, and controlling the movement of a craft from one place to another.
A non-directional beacon (NDB) or non-directional radio beacon is a radio beacon which does not include inherent directional information. Radio beacons are radio transmitters at a known location, used as an aviation or marine navigational aid. NDB are in contrast to directional radio beacons and other navigational aids, such as low-frequency radio range, VHF omnidirectional range (VOR) and tactical air navigation system (TACAN).
An automatic direction finder (ADF) is a marine or aircraft radio-navigation instrument that automatically and continuously displays the relative bearing from the ship or aircraft to a suitable radio station. ADF receivers are normally tuned to aviation or marine NDBs operating in the LW band between 190 – 535 kHz. Like RDF units, most ADF receivers can also receive medium wave (AM) broadcast stations, though these are less reliable for navigational purposes.
An autopilot is a system used to control the path of an aircraft, marine craft or spacecraft without requiring constant manual control by a human operator. Autopilots do not replace human operators. Instead, the autopilot assists the operator's control of the vehicle, allowing the operator to focus on broader aspects of operations.
An inclinometer or clinometer is an instrument used for measuring angles of slope, elevation, or depression of an object with respect to gravity's direction. It is also known as a tilt indicator, tilt sensor, tilt meter, slope alert, slope gauge, gradient meter, gradiometer, level gauge, level meter, declinometer, and pitch & roll indicator. Clinometers measure both inclines and declines using three different units of measure: degrees, percentage points, and topos. The astrolabe is an example of an inclinometer that was used for celestial navigation and location of astronomical objects from ancient times to the Renaissance.
In aviation, aircraft compass turns are turns made in an aircraft using only a magnetic compass for guidance.
In navigation, the course of a watercraft or aircraft is the cardinal direction in which the craft is to be steered. The course is to be distinguished from the heading, which is the direction where the watercraft's bow or the aircraft's nose is pointed.
An attitude and heading reference system (AHRS) consists of sensors on three axes that provide attitude information for aircraft, including roll, pitch, and yaw. These are sometimes referred to as MARG sensors and consist of either solid-state or microelectromechanical systems (MEMS) gyroscopes, accelerometers and magnetometers. They are designed to replace traditional mechanical gyroscopic flight instruments.
A helicopter pilot manipulates the helicopter flight controls to achieve and maintain controlled aerodynamic flight. Changes to the aircraft flight control system transmit mechanically to the rotor, producing aerodynamic effects on the rotor blades that make the helicopter move in a deliberate way. To tilt forward and back (pitch) or sideways (roll) requires that the controls alter the angle of attack of the main rotor blades cyclically during rotation, creating differing amounts of lift (force) at different points in the cycle. To increase or decrease overall lift requires that the controls alter the angle of attack for all blades collectively by equal amounts at the same time, resulting in ascent, descent, acceleration and deceleration.
The horizontal situation indicator is an aircraft flight instrument normally mounted below the artificial horizon in place of a conventional heading indicator. It combines a heading indicator with a VHF omnidirectional range-instrument landing system (VOR-ILS) display. This reduces pilot workload by lessening the number of elements in the pilot's instrument scan to the six basic flight instruments. Among other advantages, the HSI offers freedom from the confusion of reverse sensing on an instrument landing system localizer back course approach. As long as the needle is set to the localizer front course, the instrument will indicate whether to fly left or right, in either direction of travel.
Magnetic dip, dip angle, or magnetic inclination is the angle made with the horizontal by the Earth's magnetic field lines. This angle varies at different points on the Earth's surface. Positive values of inclination indicate that the magnetic field of the Earth is pointing downward, into the Earth, at the point of measurement, and negative values indicate that it is pointing upward. The dip angle is in principle the angle made by the needle of a vertically held compass, though in practice ordinary compass needles may be weighted against dip or may be unable to move freely in the correct plane. The value can be measured more reliably with a special instrument typically known as a dip circle.
The yaw string, also known as a slip string, is a simple device for indicating a slip or skid in an aircraft in flight. It performs the same function as the slip-skid indicator ball, but is more sensitive, and does not require the pilot to look down at the instrument panel. Technically, it measures sideslip angle, not yaw angle, but this indicates how the aircraft must be yawed to return the sideslip angle to zero.
In surveying, a gyrotheodolite is an instrument composed of a gyrocompass mounted to a theodolite. It is used to determine the orientation of true north. It is the main instrument for orientation in mine surveying and in tunnel engineering, where astronomical star sights are not visible and GPS does not work.
An inertial navigation system (INS) is a navigation device that uses motion sensors (accelerometers), rotation sensors (gyroscopes) and a computer to continuously calculate by dead reckoning the position, the orientation, and the velocity of a moving object without the need for external references. Often the inertial sensors are supplemented by a barometric altimeter and sometimes by magnetic sensors (magnetometers) and/or speed measuring devices. INSs are used on mobile robots and on vehicles such as ships, aircraft, submarines, guided missiles, and spacecraft. Other terms used to refer to inertial navigation systems or closely related devices include inertial guidance system, inertial instrument, inertial measurement unit (IMU) and many other variations. Older INS systems generally used an inertial platform as their mounting point to the vehicle and the terms are sometimes considered synonymous.
An inertial measurement unit (IMU) is an electronic device that measures and reports a body's specific force, angular rate, and sometimes the orientation of the body, using a combination of accelerometers, gyroscopes, and sometimes magnetometers. When the magnetometer is included, IMUs are referred to as IMMUs. IMUs are typically used to maneuver modern vehicles including motorcycles, missiles, aircraft, including unmanned aerial vehicles (UAVs), among many others, and spacecraft, including satellites and landers. Recent developments allow for the production of IMU-enabled GPS devices. An IMU allows a GPS receiver to work when GPS-signals are unavailable, such as in tunnels, inside buildings, or when electronic interference is present.
In aviation, the turn and slip indicator and the turn coordinator (TC) variant are essentially two aircraft flight instruments in one device. One indicates the rate of turn, or the rate of change in the aircraft's heading; the other part indicates whether the aircraft is in coordinated flight, showing the slip or skid of the turn. The slip indicator is actually an inclinometer that at rest displays the angle of the aircraft's transverse axis with respect to horizontal, and in motion displays this angle as modified by the acceleration of the aircraft. The most commonly used units are degrees per second (deg/s) or minutes per turn (min/tr).