6X Series Sensors Integration Communication Protocol - MAVlink
MAVLink is a very lightweight messaging protocol for communicating with drones, as well as between onboard drone components. It is a very commonly used protocol in the open source drone community.
6X supports image metadata tagging and sensor triggering using MAVLink V1 messages. The required serial port configuration for the MAVLink controller is 460800, 8-N-1, and it must be connected to 6X connector J2, pins 1/2 (UART2 TX/RX) with 3.3v signal levels.
The gimbaled 6X supports image metadata tagging and sensor triggering using MAVlink V2 messages. The MAVlink messages are ingested into the gimbal hardware and automatically forwarded to the 6X.
A custom camera configuration is generally required for MAVlink implementation with a gimbal. Contact support@sentera.com for more information.
MAVLink gimbal control/pointing is not supported at this time. The gimbal will only point straight down (NADIR) when powered on.
MAVLINK_MSG_ID_SYSTEM_TIME
MAVLINK_MSG_ID_GPS_RAW_INT
MAVLINK_MSG_ID_ATTITUDE
MAVLINK_MSG_ID_GLOBAL_POSITION_INT
MAVLINK_MSG_ID_COMMAND_LONG::MAV_CMD_DO_DIGICAM_CONTROL
Please see the compatibility settings if you are using a fully integrated platform:
These are generic MAVlink settings for use with the 6X Series sensors.
For non-gimballed sensors use the listed baud rates. For gimballed sensors a baud rate of 115200 or greater is recommended.
TRIG_INTERFACE
MAVlink
Sets MAVlink messages as the trigger commands.
TRIG_MODE
Distance Based (Survey Mode)
Distance-based on command (Survey mode)
MAV_X_CONFIG
TELEM2 (or any other configurable UART)
Sets the configuration of the desired MAVlink stream on a serial/UART port.
MAV_X_RATE
0 b/s
PX4 Default (half of theoretical max).
MAV_X_MODE
Gimbal or Normal
Sets the MAVlink message set.
MAV_X_FORWARD
Enable
Enables forwarding of MAVlink messages on the configured MAVlink stream.
SER_X_BAUD
460800 8N1
Baudrate for the configured serial port.
SERIALX_BAUD
460800
Baudrate for configured serial port.
SERIALX_PROTOCOL
MAVlink 1 (OEM) MAVlink 2 (Gimballed)
MAVlink protocol for configured serial port.
SRX_EXTRA1
10
Rate for attitude messages (10Hz).
SRX_EXTRA3
2
Rate for UTC time messages (2Hz).
SRX_POSITION
4
Rate for GPS position messages (4Hz).
SRX_EXT_STAT
10
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
CAMX_TYPE
5
how to trigger the camera to take a picture
Current Astro firmware and 6X firmware requires two parameters to be set for seamless operation. This requirement will be removed in an upcoming firmware release. Please use the page linked below for instructions on how to set the parameters.
Power on Astro and hand controller & connect
Open AMC
Enter advanced mode by rapidly tap on the Auterion logo in the upper left hand corner until a dialog box appears.
Press Switch to Advanced
Press the Auterion logo in the upper left hand corner and press Advanced
Scroll down to Parameters on the left hand menu
In the search bar search "baud"
Change SER_EXT2_BAUD to 115200 8N1 and press Save
In the search bar search "MAV"
Change the MAV_2_MODE from GIMBAL to Normal and press Save
Turn the aircraft off
Connect the sensor to the aircraft
Power on aircraft
Restart AMC
Verify the lights on the 6X turn solid green
For inspired flight systems that were not purchased through or configured by Inspired Flight or Sentera use the following instructions to configure your aircraft for Sentera sensors.
Power on aircraft and hand controller
Open IGC/QGC and verify connection to aircraft
Tap the IGC Icon in the upper left hand corner and enter the vehicle setup menu
Scroll down in the left hand menu and select Parameters
In the search bar search "CAM2_TYPE"
Set CAM2_TYPE = 5 and press Save
Repeat this process for the following parameters listed in the table below
Once all of the parameters are set power down the aircraft
Connect the sensor to the aircraft
Power on the aircraft
Wait for the lights on the sensor to turn solid green (requires a GPS fix)
The shoulder wheel on the hand controller should now also control the gimbal pitch of the camera.
CAM2_TYPE
5
SERIAL4_PROTOCOL
MAVlink 2
SERIAL4_BAUD
115200
SR4_EXTRA1
10
SR4_EXTRA3
2
SR4_POSITION
4
SR4_EXT_STAT
10
MNT1_TYPE
Gremsy
MNT1_RC_RATE
60 deg/s
MNT1_PITCH_MIN
-90 deg
RC5_OPTION
Mount1 Pitch
RC5_DZ
20 PWM