MAVLINKHUD

Overview

The NMEA parameter group configures the NMEA 0183 data output from the autopilot. This is used to share the vehicle's position with external devices that expect a standard GPS-style serial stream (e.g., marine radars, handheld GPS units, or legacy data loggers).

Key Concepts

1. Message Selection (NMEA_MSG_EN)

Determines which standard NMEA sentences are included in the serial stream.

  • GGA: Global Positioning System Fix Data (Time, Position, Fix Quality).
  • RMC: Recommended Minimum Specific GNSS Data (Time, Position, Speed, Date).
  • VTG: Course Over Ground and Ground Speed.

Parameter Breakdown

  • NMEA_MSG_EN: Bitmask of enabled NMEA messages.

Integration Guide

  1. Port Setup: Set SERIALx_PROTOCOL = 15 (NMEA Output) on the desired UART.
  2. Baud Rate: Set the baud rate to match the receiving device (usually 4800 or 9600).
  3. Config: Enable the required messages in NMEA_MSG_EN.

Developer Notes

  • Library: libraries/AP_NMEA_Output.

NMEA_MSG_EN: Messages Enable bitmask

Description

This is a bitmask of enabled NMEA messages. All messages will be sent consecutively at the same rate interval.

Values

  • Bitmask:
    • Bit 0: GPGGA (Global Positioning System Fix Data)
    • Bit 1: GPRMC (Recommended Minimum Specific GPS/Transit Data)
    • Bit 2: PASHR (Pitch, Roll, and Heading)

Description

This parameter controls which standard NMEA 0183 sentences are output by the autopilot when configured as an NMEA source.

  • Usage: Typically used to feed position and attitude data to external payloads, cameras, or trackers that expect NMEA format (rather than MAVLink).
  • Default (3): Enables GGA and RMC (3 = 1 + 2).

Source Code

ardupilot/libraries/AP_NMEA_Output/AP_NMEA_Output.cpp