• Home
    • Copter
    • Plane
    • Rover
    • Blimp
    • Sub
    • AntennaTracker
    • Mission Planner
    • APM Planner 2
    • MAVProxy
    • Companion Computers
    • Developer
  • Downloads
    • Mission Planner
    • APM Planner 2
    • Advanced User Tools
    • Developer Tools
    • Firmware
  • Community
    • Support Forums
    • Facebook
    • Developer Chat (Discord)
    • Developer Voice (Discord)
    • Contact us
    • Getting involved
    • Commercial Support
    • Development Team
    • UAS Training Centers
  • Stores
  • About
    • News
    • History
    • License
    • Trademark
    • Acknowledgments
    • Wiki Editing Guide
    • Partners Program
Copter Logo
  • Introduction to Copter
  • Choosing an Autopilot
  • Ground Control Stations
  • First Time Setup
  • First Flight and Tuning
  • Traditional Helicopters
  • Mission Planning
  • If A Problem Arises
  • Advanced Configuration
    • Analog Pins
    • Autopilot Output Mapping
    • AutoTune
    • Auxiliary Function Switches
    • Baro Temperature Compensation
    • Baro Thrust Compensation
    • Boat mode
    • Bootloader Update
    • BLHeli ESCs
    • CAN Bus Setup
    • Compass Setup (Advanced)
    • Compass-less Operation
    • Current Limiting and Voltage Scaling
    • Damaged Motor/Prop RPM Checks
    • DisplayPort
    • DroneCAN Setup
    • EKF (Extended Kalman Filter)
    • EKF Affinity & Lane Switching
    • EKF Sources and Selection
    • Ethernet/Network Setup
    • Network Capture
    • Fence Failsafes
    • Flight Options
    • Flight Time Recorder
    • FPort Setup
    • GPIOs
    • GPS for Yaw (aka Moving Baseline)
    • GPS for Altitude
    • GPS/Non-GPS Transitions
    • Ground Control Station Only Operation
    • Ground Effect Compensation
    • In-Flight FTT and filter control
    • IMU Temperature Calibration
    • Independent Watchdog
    • Limit Cycle Prevention
    • LUA Scripting
    • Magnetic Interference
    • Magnetometer GeoPhys Array
    • MAVLink
      • STREAM RATES
      • OPTIONS
    • MAVLink2 Packet Signing (Security)
    • Motor Thrust Scaling
    • Moving Vehicle Initialization
    • Multiple Radio Control Receivers
    • Non-GPS Navigation
    • Notification Devices (LEDs,Buzzer,etc.)
    • Notch Filter Configuration
    • Object Avoidance
    • Optical Flow Sensor
    • On Screen Displays (OSD)
    • OSD Parameter Editor
    • Parameter List (Full)
    • Parameter Reset
    • Precision Landing and Loiter
    • RC Input Channel Mapping (RCMAP)
    • RC Options
    • Received Signal Strength Indication (RSSI)
    • Redundant Telemetry
    • RunCam Camera Configuration and Control
    • Safety Switch
    • Sensor Position Offset Compensation
    • Sensor Testing
    • Serial Forwarding to DroneCAN
    • Serial Port to Port Passthrough
    • Serial Port Configuration
    • Slung Payload
    • Surface Tracking
    • Telemetry Port Setup
    • Terrain Following (Autonomous modes)
    • Tuning
    • Video Stabilization (Gyroflow)
    • Video Transmitter Control
    • UBlox GPS Configuration
    • Weathervaning
    • Windspeed Estimation and Baro Compensation
  • Peripheral Hardware
  • Additional Information
  • User Alerts


Individual Partners SWAG Shop
Copter
  • Advanced Configuration
  • MAVLink Advanced Configuration
  • Edit on GitHub

MAVLink Advanced Configuration¶

Note

Most users never have to change these parameters from their default values.

If a serial port protocol is set to MAVLink (SERIALx_PROTOCOL == 1 or 2), then advance configuration options can be set. The first serial port to have the protocol uses the MAV1_ parameters (often the USB port on SERIAL0), the second port will be MAV2_. etc.

STREAM RATES¶

The following stream rate parameters can be set for each instance of a MAVLink using serial port to determine how fast data is sent over the port(SERIAL1 will be used in the following as an example)

  • MAV1_ADSB: ADSB stream rate

  • MAV1_EXT_STAT: MAVLink Stream rate of SYS_STATUS, POWER_STATUS, MCU_STATUS, MEMINFO, CURRENT_WAYPOINT, GPS_RAW_INT, GPS_RTK (if available), GPS2_RAW_INT (if available), GPS2_RTK (if available), NAV_CONTROLLER_OUTPUT, FENCE_STATUS, and GLOBAL_TARGET_POS_INT

  • MAV1_EXTRA1: MAVLink Stream rate of ATTITUDE, SIMSTATE (SIM only), AHRS2, RPM, AOA_SSA, LANDING,ESC_TELEMETRY,EFI_STATUS, and PID_TUNING

  • MAV1_EXTRA2: MAVLink Stream rate of VFR_HUD

  • MAV1_EXTRA3: MAVLink Stream rate of AHRS, SYSTEM_TIME, WIND, RANGEFINDER, DISTANCE_SENSOR, TERRAIN_REQUEST, TERRAIN_REPORT, BATTERY2, GIMBAL_DEVICE_ATTITUDE_STATUS, OPTICAL_FLOW, MAG_CAL_REPORT, MAG_CAL_PROGRESS, EKF_STATUS_REPORT, VIBRATION, and BATTERY_STATUS

  • MAV1_PARAMS: MAVLink Stream rate of PARAM_VALUE

  • MAV1_POSITION: MAVLink Stream rate of GLOBAL_POSITION_INT and LOCAL_POSITION_NED

  • MAV1_RAW_CTRL: MAVLink Raw Control stream rate of SERVO_OUT

  • MAV1_RAW_SENS: MAVLink Stream rate of RAW_IMU, SCALED_IMU2, SCALED_IMU3, SCALED_PRESSURE, SCALED_PRESSURE2, SCALED_PRESSURE3 and AIRSPEED

  • MAV1_RC_CHAN: MAVLink Stream rate of SERVO_OUTPUT_RAW and RC_CHANNELS

OPTIONS¶

Each established MAVLink channel has several behaviors set by its options parameter:

MAVx_OPTIONS

Function

bit 1 set

Do not forward MAVLink messages to or from this channel to other channels

bit 2 set

Ignore stream rate change requests from other MAVLink stations (GCS, etc.)

In addition, there are several global MAVLink related parameters

  • MAV_GCS_SYSID: This controls whether packets from other than the expected GCS system ID will be accepted

  • MAV_OPTIONS: Alters various behaviour of the MAVLink interface. See table below. If bit 0 is set, the the channel will accetp only MAVLink messages for the SYSID_GCS.

  • MAV_SYSID: Allows setting an individual MAVLink system id for this vehicle to distinguish it from others on the same network

  • MAV_TELEM_DELAY: The amount of time (in seconds) to delay radio telemetry to prevent an Xbee bricking on power up

Previous Next

Questions, issues, and suggestions about this page can be raised on the forums. Issues and suggestions may be posted on the forums or the Github Issue Tracker.

Creative Commons License© Copyright 2024, ArduPilot Dev Team.