mavlink-mappings
Version:
MavLink message definitions
1,358 lines (1,357 loc) • 157 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApAdc = exports.MemInfo = exports.SetMagOffsets = exports.SensorOffsets = exports.OsdParamConfigError = exports.OsdParamConfigType = exports.TrackerMode = exports.RoverMode = exports.SubMode = exports.CopterMode = exports.PlaneMode = exports.DeepstallStage = exports.DeviceOpBustype = exports.MavRemoteLogDataBlockStatuses = exports.MavRemoteLogDataBlockCommands = exports.PidTuningAxis = exports.EkfStatusFlags = exports.LedControlPattern = exports.MavCmdDoAuxFunctionSwitchLevel = exports.GoproBurstRate = exports.GoproModel = exports.GoproCharging = exports.GoproProtuneExposure = exports.GoproProtuneSharpness = exports.GoproProtuneGain = exports.GoproProtuneColour = exports.GoproProtuneWhiteBalance = exports.GoproPhotoResolution = exports.GoproVideoSettingsFlags = exports.GoproFieldOfView = exports.GoproFrameRate = exports.GoproResolution = exports.GoproCaptureMode = exports.GoproCommand = exports.GoproRequestStatus = exports.GoproHeartbeatFlags = exports.GoproHeartbeatStatus = exports.GimbalAxisCalibrationRequired = exports.GimbalAxisCalibrationStatus = exports.GimbalAxis = exports.MavModeGimbal = exports.CameraFeedbackFlags = exports.CameraStatusTypes = exports.RallyFlags = exports.LimitModule = exports.LimitsState = exports.ScriptingCmd = exports.MavCmd = exports.HeadingType = exports.AccelcalVehiclePos = void 0;
exports.VisionPositionDelta = exports.AdapTuning = exports.DeviceOpWriteReply = exports.DeviceOpWrite = exports.DeviceOpReadReply = exports.DeviceOpRead = exports.Rpm = exports.GoproSetResponse = exports.GoproSetRequest = exports.GoproGetResponse = exports.GoproGetRequest = exports.GoproHeartbeat = exports.GimbalTorqueCmdReport = exports.GimbalControl = exports.GimbalReport = exports.Deepstall = exports.PidTuning = exports.EkfStatusReport = exports.MagCalProgress = exports.LedControl = exports.RemoteLogBlockStatus = exports.RemoteLogDataBlock = exports.AutopilotVersionRequest = exports.Ahrs3 = exports.Battery2 = exports.CameraFeedback = exports.CameraStatus = exports.Ahrs2 = exports.CompassMotStatus = exports.RallyFetchPoint = exports.RallyPoint = exports.AirspeedAutocal = exports.RangeFinder = exports.Data96 = exports.Data64 = exports.Data32 = exports.Data16 = exports.Wind = exports.LimitsStatus = exports.Radio = exports.HwStatus = exports.SimState = exports.Ahrs = exports.FenceFetchPoint = exports.FencePoint = exports.MountStatus = exports.MountControl = exports.MountConfigure = exports.DigicamControl = exports.DigicamConfigure = void 0;
exports.COMMANDS = exports.REGISTRY = exports.GuidedChangeHeadingCommand = exports.GuidedChangeAltitudeCommand = exports.GuidedChangeSpeedCommand = exports.NavAttitudeTimeCommand = exports.NavScriptTimeCommand = exports.ScriptingCommand = exports.DebugTrapCommand = exports.BatteryResetCommand = exports.FlashBootloaderCommand = exports.GimbalFullResetCommand = exports.GimbalRequestAxisCalibrationCommand = exports.GimbalAxisCalibrationStatusCommand = exports.GimbalResetCommand = exports.SetFactoryTestModeCommand = exports.DoSendBannerCommand = exports.AccelcalVehiclePosCommand = exports.DoCancelMagCalCommand = exports.DoAcceptMagCalCommand = exports.DoStartMagCalCommand = exports.SetEkfSourceSetCommand = exports.FixedMagCalFieldCommand = exports.FixedMagCalCommand = exports.SoloBtnPauseClickCommand = exports.SoloBtnFlyHoldCommand = exports.SoloBtnFlyClickCommand = exports.PowerOffInitiatedCommand = exports.NavAltitudeWaitCommand = exports.DoAuxFunctionCommand = exports.DoSendScriptMessageCommand = exports.DoSprayerCommand = exports.DoSetResumeRepeatDistCommand = exports.McuStatus = exports.WaterDepth = exports.OsdParamShowConfigReply = exports.OsdParamShowConfig = exports.OsdParamConfigReply = exports.OsdParamConfig = exports.EscTelemetry9To12 = exports.EscTelemetry5To8 = exports.EscTelemetry1To4 = exports.AoaSsa = void 0;
const mavlink_1 = require("./mavlink");
const common_1 = require("./common");
/**
* ACCELCAL_VEHICLE_POS
*/
var AccelcalVehiclePos;
(function (AccelcalVehiclePos) {
AccelcalVehiclePos[AccelcalVehiclePos["LEVEL"] = 1] = "LEVEL";
AccelcalVehiclePos[AccelcalVehiclePos["LEFT"] = 2] = "LEFT";
AccelcalVehiclePos[AccelcalVehiclePos["RIGHT"] = 3] = "RIGHT";
AccelcalVehiclePos[AccelcalVehiclePos["NOSEDOWN"] = 4] = "NOSEDOWN";
AccelcalVehiclePos[AccelcalVehiclePos["NOSEUP"] = 5] = "NOSEUP";
AccelcalVehiclePos[AccelcalVehiclePos["BACK"] = 6] = "BACK";
AccelcalVehiclePos[AccelcalVehiclePos["SUCCESS"] = 16777215] = "SUCCESS";
AccelcalVehiclePos[AccelcalVehiclePos["FAILED"] = 16777216] = "FAILED";
})(AccelcalVehiclePos = exports.AccelcalVehiclePos || (exports.AccelcalVehiclePos = {}));
/**
* HEADING_TYPE
*/
var HeadingType;
(function (HeadingType) {
HeadingType[HeadingType["COURSE_OVER_GROUND"] = 0] = "COURSE_OVER_GROUND";
HeadingType[HeadingType["HEADING"] = 1] = "HEADING";
})(HeadingType = exports.HeadingType || (exports.HeadingType = {}));
/**
* MAV_CMD
*/
var MavCmd;
(function (MavCmd) {
/**
* Set the distance to be repeated on mission resume
* @param1 Distance[m] Distance.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["DO_SET_RESUME_REPEAT_DIST"] = 215] = "DO_SET_RESUME_REPEAT_DIST";
/**
* Control attached liquid sprayer
* @param1 Sprayer Enable (min: 0, max: 1, increment: 1) 0: disable sprayer. 1: enable sprayer.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["DO_SPRAYER"] = 216] = "DO_SPRAYER";
/**
* Pass instructions onto scripting, a script should be checking for a new command
* @param1 ID (min: 0, max: 65535, increment: 1) uint16 ID value to be passed to scripting
* @param2 param 1 float value to be passed to scripting
* @param3 param 2 float value to be passed to scripting
* @param4 param 3 float value to be passed to scripting
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["DO_SEND_SCRIPT_MESSAGE"] = 217] = "DO_SEND_SCRIPT_MESSAGE";
/**
* Execute auxiliary function
* @param1 AuxiliaryFunction Auxiliary Function.
* @param2 SwitchPosition Switch Level.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["DO_AUX_FUNCTION"] = 218] = "DO_AUX_FUNCTION";
/**
* Mission command to wait for an altitude or downwards vertical speed. This is meant for high altitude
* balloon launches, allowing the aircraft to be idle until either an altitude is reached or a negative
* vertical speed is reached (indicating early balloon burst). The wiggle time is how often to wiggle
* the control surfaces to prevent them seizing up.
* @param1 Altitude[m] Altitude.
* @param2 Descent Speed[m/s] Descent speed.
* @param3 Wiggle Time[s] How long to wiggle the control surfaces to prevent them seizing up.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["NAV_ALTITUDE_WAIT"] = 83] = "NAV_ALTITUDE_WAIT";
/**
* A system wide power-off event has been initiated.
* @param1 Empty.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["POWER_OFF_INITIATED"] = 42000] = "POWER_OFF_INITIATED";
/**
* FLY button has been clicked.
* @param1 Empty.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["SOLO_BTN_FLY_CLICK"] = 42001] = "SOLO_BTN_FLY_CLICK";
/**
* FLY button has been held for 1.5 seconds.
* @param1 Takeoff Altitude[m] Takeoff altitude.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["SOLO_BTN_FLY_HOLD"] = 42002] = "SOLO_BTN_FLY_HOLD";
/**
* PAUSE button has been clicked.
* @param1 Shot Mode (min: 0, max: 1, increment: 1) 1 if Solo is in a shot mode, 0 otherwise.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["SOLO_BTN_PAUSE_CLICK"] = 42003] = "SOLO_BTN_PAUSE_CLICK";
/**
* Magnetometer calibration based on fixed position in earth field given by inclination, declination
* and intensity.
* @param1 Declination[deg] Magnetic declination.
* @param2 Inclination[deg] Magnetic inclination.
* @param3 Intensity[mgauss] Magnetic intensity.
* @param4 Yaw[deg] Yaw.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["FIXED_MAG_CAL"] = 42004] = "FIXED_MAG_CAL";
/**
* Magnetometer calibration based on fixed expected field values.
* @param1 Field X[mgauss] Field strength X.
* @param2 Field Y[mgauss] Field strength Y.
* @param3 Field Z[mgauss] Field strength Z.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["FIXED_MAG_CAL_FIELD"] = 42005] = "FIXED_MAG_CAL_FIELD";
/**
* Set EKF sensor source set.
* @param1 SourceSetId (min: 1, max: 3, increment: 1) Source Set Id.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["SET_EKF_SOURCE_SET"] = 42007] = "SET_EKF_SOURCE_SET";
/**
* Initiate a magnetometer calibration.
* @param1 Magnetometers Bitmask (min: 0, max: 255, increment: 1) Bitmask of magnetometers to calibrate. Use 0 to calibrate all sensors that can be started (sensors may not start if disabled, unhealthy, etc.). The command will NACK if calibration does not start for a sensor explicitly specified by the bitmask.
* @param2 Retry on Failure (min: 0, max: 1, increment: 1) Automatically retry on failure (0=no retry, 1=retry).
* @param3 Autosave (min: 0, max: 1, increment: 1) Save without user input (0=require input, 1=autosave).
* @param4 Delay[s] Delay.
* @param5 Autoreboot (min: 0, max: 1, increment: 1) Autoreboot (0=user reboot, 1=autoreboot).
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["DO_START_MAG_CAL"] = 42424] = "DO_START_MAG_CAL";
/**
* Accept a magnetometer calibration.
* @param1 Magnetometers Bitmask (min: 0, max: 255, increment: 1) Bitmask of magnetometers that calibration is accepted (0 means all).
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["DO_ACCEPT_MAG_CAL"] = 42425] = "DO_ACCEPT_MAG_CAL";
/**
* Cancel a running magnetometer calibration.
* @param1 Magnetometers Bitmask (min: 0, max: 255, increment: 1) Bitmask of magnetometers to cancel a running calibration (0 means all).
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["DO_CANCEL_MAG_CAL"] = 42426] = "DO_CANCEL_MAG_CAL";
/**
* Used when doing accelerometer calibration. When sent to the GCS tells it what position to put the
* vehicle in. When sent to the vehicle says what position the vehicle is in.
* @param1 Position Position.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["ACCELCAL_VEHICLE_POS"] = 42429] = "ACCELCAL_VEHICLE_POS";
/**
* Reply with the version banner.
* @param1 Empty.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["DO_SEND_BANNER"] = 42428] = "DO_SEND_BANNER";
/**
* Command autopilot to get into factory test/diagnostic mode.
* @param1 Test Mode (min: 0, max: 1, increment: 1) 0: activate test mode, 1: exit test mode.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["SET_FACTORY_TEST_MODE"] = 42427] = "SET_FACTORY_TEST_MODE";
/**
* Causes the gimbal to reset and boot as if it was just powered on.
* @param1 Empty.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["GIMBAL_RESET"] = 42501] = "GIMBAL_RESET";
/**
* Reports progress and success or failure of gimbal axis calibration procedure.
* @param1 Axis Gimbal axis we're reporting calibration progress for.
* @param2 Progress[%] (min: 0, max: 100) Current calibration progress for this axis.
* @param3 Status Status of the calibration.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["GIMBAL_AXIS_CALIBRATION_STATUS"] = 42502] = "GIMBAL_AXIS_CALIBRATION_STATUS";
/**
* Starts commutation calibration on the gimbal.
* @param1 Empty.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["GIMBAL_REQUEST_AXIS_CALIBRATION"] = 42503] = "GIMBAL_REQUEST_AXIS_CALIBRATION";
/**
* Erases gimbal application and parameters.
* @param1 Magic number.
* @param2 Magic number.
* @param3 Magic number.
* @param4 Magic number.
* @param5 Magic number.
* @param6 Magic number.
* @param7 Magic number.
*/
MavCmd[MavCmd["GIMBAL_FULL_RESET"] = 42505] = "GIMBAL_FULL_RESET";
/**
* Update the bootloader
* @param1 Empty
* @param2 Empty
* @param3 Empty
* @param4 Empty
* @param5 Magic Number (increment: 1) Magic number - set to 290876 to actually flash
* @param6 Empty
* @param7 Empty
*/
MavCmd[MavCmd["FLASH_BOOTLOADER"] = 42650] = "FLASH_BOOTLOADER";
/**
* Reset battery capacity for batteries that accumulate consumed battery via integration.
* @param1 battery mask Bitmask of batteries to reset. Least significant bit is for the first battery.
* @param2 percentage (min: 0, max: 100, increment: 1) Battery percentage remaining to set.
*/
MavCmd[MavCmd["BATTERY_RESET"] = 42651] = "BATTERY_RESET";
/**
* Issue a trap signal to the autopilot process, presumably to enter the debugger.
* @param1 Magic number - set to 32451 to actually trap.
* @param2 Empty.
* @param3 Empty.
* @param4 Empty.
* @param5 Empty.
* @param6 Empty.
* @param7 Empty.
*/
MavCmd[MavCmd["DEBUG_TRAP"] = 42700] = "DEBUG_TRAP";
/**
* Control onboard scripting.
* @param1 Scripting command to execute
*/
MavCmd[MavCmd["SCRIPTING"] = 42701] = "SCRIPTING";
/**
* Scripting command as NAV command with wait for completion.
* @param1 command integer command number (0 to 255)
* @param2 timeout[s] timeout for operation in seconds. Zero means no timeout (0 to 255)
* @param3 arg1 argument1.
* @param4 arg2 argument2.
* @param5 Empty
* @param6 Empty
* @param7 Empty
*/
MavCmd[MavCmd["NAV_SCRIPT_TIME"] = 42702] = "NAV_SCRIPT_TIME";
/**
* Maintain an attitude for a specified time.
* @param1 time[s] Time to maintain specified attitude and climb rate
* @param2 roll[deg] Roll angle in degrees (positive is lean right, negative is lean left)
* @param3 pitch[deg] Pitch angle in degrees (positive is lean back, negative is lean forward)
* @param4 yaw[deg] Yaw angle
* @param5 climb_rate[m/s] Climb rate
* @param6 Empty
* @param7 Empty
*/
MavCmd[MavCmd["NAV_ATTITUDE_TIME"] = 42703] = "NAV_ATTITUDE_TIME";
/**
* Change flight speed at a given rate. This slews the vehicle at a controllable rate between it's
* previous speed and the new one. (affects GUIDED only. Outside GUIDED, aircraft ignores these
* commands. Designed for onboard companion-computer command-and-control, not normally operator/GCS
* control.)
* @param1 speed type Airspeed or groundspeed.
* @param2 speed target[m/s] Target Speed
* @param3 speed rate-of-change[m/s/s] Acceleration rate, 0 to take effect instantly
* @param4 Empty
* @param5 Empty
* @param6 Empty
* @param7 Empty
*/
MavCmd[MavCmd["GUIDED_CHANGE_SPEED"] = 43000] = "GUIDED_CHANGE_SPEED";
/**
* Change target altitude at a given rate. This slews the vehicle at a controllable rate between it's
* previous altitude and the new one. (affects GUIDED only. Outside GUIDED, aircraft ignores these
* commands. Designed for onboard companion-computer command-and-control, not normally operator/GCS
* control.)
* @param1 Empty
* @param2 Empty
* @param3 alt rate-of-change[m/s/s] (min: 0) Rate of change, toward new altitude. 0 for maximum rate change. Positive numbers only, as negative numbers will not converge on the new target alt.
* @param4 Empty
* @param5 Empty
* @param6 Empty
* @param7 target alt[m] Target Altitude
*/
MavCmd[MavCmd["GUIDED_CHANGE_ALTITUDE"] = 43001] = "GUIDED_CHANGE_ALTITUDE";
/**
* Change to target heading at a given rate, overriding previous heading/s. This slews the vehicle at a
* controllable rate between it's previous heading and the new one. (affects GUIDED only. Exiting
* GUIDED returns aircraft to normal behaviour defined elsewhere. Designed for onboard
* companion-computer command-and-control, not normally operator/GCS control.)
* @param1 heading type course-over-ground or raw vehicle heading.
* @param2 heading target[deg] (min: 0, max: 359.99) Target heading.
* @param3 heading rate-of-change[m/s/s] Maximum centripetal accelearation, ie rate of change, toward new heading.
* @param4 Empty
* @param5 Empty
* @param6 Empty
* @param7 Empty
*/
MavCmd[MavCmd["GUIDED_CHANGE_HEADING"] = 43002] = "GUIDED_CHANGE_HEADING";
})(MavCmd = exports.MavCmd || (exports.MavCmd = {}));
/**
* SCRIPTING_CMD
*/
var ScriptingCmd;
(function (ScriptingCmd) {
/**
* Start a REPL session.
*/
ScriptingCmd[ScriptingCmd["REPL_START"] = 0] = "REPL_START";
/**
* End a REPL session.
*/
ScriptingCmd[ScriptingCmd["REPL_STOP"] = 1] = "REPL_STOP";
/**
* Stop execution of scripts.
*/
ScriptingCmd[ScriptingCmd["STOP"] = 2] = "STOP";
/**
* Stop execution of scripts and restart.
*/
ScriptingCmd[ScriptingCmd["STOP_AND_RESTART"] = 3] = "STOP_AND_RESTART";
})(ScriptingCmd = exports.ScriptingCmd || (exports.ScriptingCmd = {}));
/**
* LIMITS_STATE
*/
var LimitsState;
(function (LimitsState) {
/**
* Pre-initialization.
*/
LimitsState[LimitsState["INIT"] = 0] = "INIT";
/**
* Disabled.
*/
LimitsState[LimitsState["DISABLED"] = 1] = "DISABLED";
/**
* Checking limits.
*/
LimitsState[LimitsState["ENABLED"] = 2] = "ENABLED";
/**
* A limit has been breached.
*/
LimitsState[LimitsState["TRIGGERED"] = 3] = "TRIGGERED";
/**
* Taking action e.g. Return/RTL.
*/
LimitsState[LimitsState["RECOVERING"] = 4] = "RECOVERING";
/**
* We're no longer in breach of a limit.
*/
LimitsState[LimitsState["RECOVERED"] = 5] = "RECOVERED";
})(LimitsState = exports.LimitsState || (exports.LimitsState = {}));
/**
* LIMIT_MODULE
*/
var LimitModule;
(function (LimitModule) {
/**
* Pre-initialization.
*/
LimitModule[LimitModule["GPSLOCK"] = 1] = "GPSLOCK";
/**
* Disabled.
*/
LimitModule[LimitModule["GEOFENCE"] = 2] = "GEOFENCE";
/**
* Checking limits.
*/
LimitModule[LimitModule["ALTITUDE"] = 4] = "ALTITUDE";
})(LimitModule = exports.LimitModule || (exports.LimitModule = {}));
/**
* Flags in RALLY_POINT message.
*/
var RallyFlags;
(function (RallyFlags) {
/**
* Flag set when requiring favorable winds for landing.
*/
RallyFlags[RallyFlags["FAVORABLE_WIND"] = 1] = "FAVORABLE_WIND";
/**
* Flag set when plane is to immediately descend to break altitude and land without GCS intervention.
* Flag not set when plane is to loiter at Rally point until commanded to land.
*/
RallyFlags[RallyFlags["LAND_IMMEDIATELY"] = 2] = "LAND_IMMEDIATELY";
})(RallyFlags = exports.RallyFlags || (exports.RallyFlags = {}));
/**
* CAMERA_STATUS_TYPES
*/
var CameraStatusTypes;
(function (CameraStatusTypes) {
/**
* Camera heartbeat, announce camera component ID at 1Hz.
*/
CameraStatusTypes[CameraStatusTypes["HEARTBEAT"] = 0] = "HEARTBEAT";
/**
* Camera image triggered.
*/
CameraStatusTypes[CameraStatusTypes["TRIGGER"] = 1] = "TRIGGER";
/**
* Camera connection lost.
*/
CameraStatusTypes[CameraStatusTypes["DISCONNECT"] = 2] = "DISCONNECT";
/**
* Camera unknown error.
*/
CameraStatusTypes[CameraStatusTypes["ERROR"] = 3] = "ERROR";
/**
* Camera battery low. Parameter p1 shows reported voltage.
*/
CameraStatusTypes[CameraStatusTypes["LOWBATT"] = 4] = "LOWBATT";
/**
* Camera storage low. Parameter p1 shows reported shots remaining.
*/
CameraStatusTypes[CameraStatusTypes["LOWSTORE"] = 5] = "LOWSTORE";
/**
* Camera storage low. Parameter p1 shows reported video minutes remaining.
*/
CameraStatusTypes[CameraStatusTypes["LOWSTOREV"] = 6] = "LOWSTOREV";
})(CameraStatusTypes = exports.CameraStatusTypes || (exports.CameraStatusTypes = {}));
/**
* CAMERA_FEEDBACK_FLAGS
*/
var CameraFeedbackFlags;
(function (CameraFeedbackFlags) {
/**
* Shooting photos, not video.
*/
CameraFeedbackFlags[CameraFeedbackFlags["PHOTO"] = 0] = "PHOTO";
/**
* Shooting video, not stills.
*/
CameraFeedbackFlags[CameraFeedbackFlags["VIDEO"] = 1] = "VIDEO";
/**
* Unable to achieve requested exposure (e.g. shutter speed too low).
*/
CameraFeedbackFlags[CameraFeedbackFlags["BADEXPOSURE"] = 2] = "BADEXPOSURE";
/**
* Closed loop feedback from camera, we know for sure it has successfully taken a picture.
*/
CameraFeedbackFlags[CameraFeedbackFlags["CLOSEDLOOP"] = 3] = "CLOSEDLOOP";
/**
* Open loop camera, an image trigger has been requested but we can't know for sure it has successfully
* taken a picture.
*/
CameraFeedbackFlags[CameraFeedbackFlags["OPENLOOP"] = 4] = "OPENLOOP";
})(CameraFeedbackFlags = exports.CameraFeedbackFlags || (exports.CameraFeedbackFlags = {}));
/**
* MAV_MODE_GIMBAL
*/
var MavModeGimbal;
(function (MavModeGimbal) {
/**
* Gimbal is powered on but has not started initializing yet.
*/
MavModeGimbal[MavModeGimbal["UNINITIALIZED"] = 0] = "UNINITIALIZED";
/**
* Gimbal is currently running calibration on the pitch axis.
*/
MavModeGimbal[MavModeGimbal["CALIBRATING_PITCH"] = 1] = "CALIBRATING_PITCH";
/**
* Gimbal is currently running calibration on the roll axis.
*/
MavModeGimbal[MavModeGimbal["CALIBRATING_ROLL"] = 2] = "CALIBRATING_ROLL";
/**
* Gimbal is currently running calibration on the yaw axis.
*/
MavModeGimbal[MavModeGimbal["CALIBRATING_YAW"] = 3] = "CALIBRATING_YAW";
/**
* Gimbal has finished calibrating and initializing, but is relaxed pending reception of first rate
* command from copter.
*/
MavModeGimbal[MavModeGimbal["INITIALIZED"] = 4] = "INITIALIZED";
/**
* Gimbal is actively stabilizing.
*/
MavModeGimbal[MavModeGimbal["ACTIVE"] = 5] = "ACTIVE";
/**
* Gimbal is relaxed because it missed more than 10 expected rate command messages in a row. Gimbal
* will move back to active mode when it receives a new rate command.
*/
MavModeGimbal[MavModeGimbal["RATE_CMD_TIMEOUT"] = 6] = "RATE_CMD_TIMEOUT";
})(MavModeGimbal = exports.MavModeGimbal || (exports.MavModeGimbal = {}));
/**
* GIMBAL_AXIS
*/
var GimbalAxis;
(function (GimbalAxis) {
/**
* Gimbal yaw axis.
*/
GimbalAxis[GimbalAxis["YAW"] = 0] = "YAW";
/**
* Gimbal pitch axis.
*/
GimbalAxis[GimbalAxis["PITCH"] = 1] = "PITCH";
/**
* Gimbal roll axis.
*/
GimbalAxis[GimbalAxis["ROLL"] = 2] = "ROLL";
})(GimbalAxis = exports.GimbalAxis || (exports.GimbalAxis = {}));
/**
* GIMBAL_AXIS_CALIBRATION_STATUS
*/
var GimbalAxisCalibrationStatus;
(function (GimbalAxisCalibrationStatus) {
/**
* Axis calibration is in progress.
*/
GimbalAxisCalibrationStatus[GimbalAxisCalibrationStatus["IN_PROGRESS"] = 0] = "IN_PROGRESS";
/**
* Axis calibration succeeded.
*/
GimbalAxisCalibrationStatus[GimbalAxisCalibrationStatus["SUCCEEDED"] = 1] = "SUCCEEDED";
/**
* Axis calibration failed.
*/
GimbalAxisCalibrationStatus[GimbalAxisCalibrationStatus["FAILED"] = 2] = "FAILED";
})(GimbalAxisCalibrationStatus = exports.GimbalAxisCalibrationStatus || (exports.GimbalAxisCalibrationStatus = {}));
/**
* GIMBAL_AXIS_CALIBRATION_REQUIRED
*/
var GimbalAxisCalibrationRequired;
(function (GimbalAxisCalibrationRequired) {
/**
* Whether or not this axis requires calibration is unknown at this time.
*/
GimbalAxisCalibrationRequired[GimbalAxisCalibrationRequired["UNKNOWN"] = 0] = "UNKNOWN";
/**
* This axis requires calibration.
*/
GimbalAxisCalibrationRequired[GimbalAxisCalibrationRequired["TRUE"] = 1] = "TRUE";
/**
* This axis does not require calibration.
*/
GimbalAxisCalibrationRequired[GimbalAxisCalibrationRequired["FALSE"] = 2] = "FALSE";
})(GimbalAxisCalibrationRequired = exports.GimbalAxisCalibrationRequired || (exports.GimbalAxisCalibrationRequired = {}));
/**
* GOPRO_HEARTBEAT_STATUS
*/
var GoproHeartbeatStatus;
(function (GoproHeartbeatStatus) {
/**
* No GoPro connected.
*/
GoproHeartbeatStatus[GoproHeartbeatStatus["DISCONNECTED"] = 0] = "DISCONNECTED";
/**
* The detected GoPro is not HeroBus compatible.
*/
GoproHeartbeatStatus[GoproHeartbeatStatus["INCOMPATIBLE"] = 1] = "INCOMPATIBLE";
/**
* A HeroBus compatible GoPro is connected.
*/
GoproHeartbeatStatus[GoproHeartbeatStatus["CONNECTED"] = 2] = "CONNECTED";
/**
* An unrecoverable error was encountered with the connected GoPro, it may require a power cycle.
*/
GoproHeartbeatStatus[GoproHeartbeatStatus["ERROR"] = 3] = "ERROR";
})(GoproHeartbeatStatus = exports.GoproHeartbeatStatus || (exports.GoproHeartbeatStatus = {}));
/**
* GOPRO_HEARTBEAT_FLAGS
*/
var GoproHeartbeatFlags;
(function (GoproHeartbeatFlags) {
/**
* GoPro is currently recording.
*/
GoproHeartbeatFlags[GoproHeartbeatFlags["RECORDING"] = 1] = "RECORDING";
})(GoproHeartbeatFlags = exports.GoproHeartbeatFlags || (exports.GoproHeartbeatFlags = {}));
/**
* GOPRO_REQUEST_STATUS
*/
var GoproRequestStatus;
(function (GoproRequestStatus) {
/**
* The write message with ID indicated succeeded.
*/
GoproRequestStatus[GoproRequestStatus["SUCCESS"] = 0] = "SUCCESS";
/**
* The write message with ID indicated failed.
*/
GoproRequestStatus[GoproRequestStatus["FAILED"] = 1] = "FAILED";
})(GoproRequestStatus = exports.GoproRequestStatus || (exports.GoproRequestStatus = {}));
/**
* GOPRO_COMMAND
*/
var GoproCommand;
(function (GoproCommand) {
/**
* (Get/Set).
*/
GoproCommand[GoproCommand["POWER"] = 0] = "POWER";
/**
* (Get/Set).
*/
GoproCommand[GoproCommand["CAPTURE_MODE"] = 1] = "CAPTURE_MODE";
/**
* (___/Set).
*/
GoproCommand[GoproCommand["SHUTTER"] = 2] = "SHUTTER";
/**
* (Get/___).
*/
GoproCommand[GoproCommand["BATTERY"] = 3] = "BATTERY";
/**
* (Get/___).
*/
GoproCommand[GoproCommand["MODEL"] = 4] = "MODEL";
/**
* (Get/Set).
*/
GoproCommand[GoproCommand["VIDEO_SETTINGS"] = 5] = "VIDEO_SETTINGS";
/**
* (Get/Set).
*/
GoproCommand[GoproCommand["LOW_LIGHT"] = 6] = "LOW_LIGHT";
/**
* (Get/Set).
*/
GoproCommand[GoproCommand["PHOTO_RESOLUTION"] = 7] = "PHOTO_RESOLUTION";
/**
* (Get/Set).
*/
GoproCommand[GoproCommand["PHOTO_BURST_RATE"] = 8] = "PHOTO_BURST_RATE";
/**
* (Get/Set).
*/
GoproCommand[GoproCommand["PROTUNE"] = 9] = "PROTUNE";
/**
* (Get/Set) Hero 3+ Only.
*/
GoproCommand[GoproCommand["PROTUNE_WHITE_BALANCE"] = 10] = "PROTUNE_WHITE_BALANCE";
/**
* (Get/Set) Hero 3+ Only.
*/
GoproCommand[GoproCommand["PROTUNE_COLOUR"] = 11] = "PROTUNE_COLOUR";
/**
* (Get/Set) Hero 3+ Only.
*/
GoproCommand[GoproCommand["PROTUNE_GAIN"] = 12] = "PROTUNE_GAIN";
/**
* (Get/Set) Hero 3+ Only.
*/
GoproCommand[GoproCommand["PROTUNE_SHARPNESS"] = 13] = "PROTUNE_SHARPNESS";
/**
* (Get/Set) Hero 3+ Only.
*/
GoproCommand[GoproCommand["PROTUNE_EXPOSURE"] = 14] = "PROTUNE_EXPOSURE";
/**
* (Get/Set).
*/
GoproCommand[GoproCommand["TIME"] = 15] = "TIME";
/**
* (Get/Set).
*/
GoproCommand[GoproCommand["CHARGING"] = 16] = "CHARGING";
})(GoproCommand = exports.GoproCommand || (exports.GoproCommand = {}));
/**
* GOPRO_CAPTURE_MODE
*/
var GoproCaptureMode;
(function (GoproCaptureMode) {
/**
* Video mode.
*/
GoproCaptureMode[GoproCaptureMode["VIDEO"] = 0] = "VIDEO";
/**
* Photo mode.
*/
GoproCaptureMode[GoproCaptureMode["PHOTO"] = 1] = "PHOTO";
/**
* Burst mode, Hero 3+ only.
*/
GoproCaptureMode[GoproCaptureMode["BURST"] = 2] = "BURST";
/**
* Time lapse mode, Hero 3+ only.
*/
GoproCaptureMode[GoproCaptureMode["TIME_LAPSE"] = 3] = "TIME_LAPSE";
/**
* Multi shot mode, Hero 4 only.
*/
GoproCaptureMode[GoproCaptureMode["MULTI_SHOT"] = 4] = "MULTI_SHOT";
/**
* Playback mode, Hero 4 only, silver only except when LCD or HDMI is connected to black.
*/
GoproCaptureMode[GoproCaptureMode["PLAYBACK"] = 5] = "PLAYBACK";
/**
* Playback mode, Hero 4 only.
*/
GoproCaptureMode[GoproCaptureMode["SETUP"] = 6] = "SETUP";
/**
* Mode not yet known.
*/
GoproCaptureMode[GoproCaptureMode["UNKNOWN"] = 255] = "UNKNOWN";
})(GoproCaptureMode = exports.GoproCaptureMode || (exports.GoproCaptureMode = {}));
/**
* GOPRO_RESOLUTION
*/
var GoproResolution;
(function (GoproResolution) {
/**
* 848 x 480 (480p).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_480p"] = 0] = "GOPRO_RESOLUTION_480p";
/**
* 1280 x 720 (720p).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_720p"] = 1] = "GOPRO_RESOLUTION_720p";
/**
* 1280 x 960 (960p).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_960p"] = 2] = "GOPRO_RESOLUTION_960p";
/**
* 1920 x 1080 (1080p).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_1080p"] = 3] = "GOPRO_RESOLUTION_1080p";
/**
* 1920 x 1440 (1440p).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_1440p"] = 4] = "GOPRO_RESOLUTION_1440p";
/**
* 2704 x 1440 (2.7k-17:9).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_2_7k_17_9"] = 5] = "GOPRO_RESOLUTION_2_7k_17_9";
/**
* 2704 x 1524 (2.7k-16:9).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_2_7k_16_9"] = 6] = "GOPRO_RESOLUTION_2_7k_16_9";
/**
* 2704 x 2028 (2.7k-4:3).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_2_7k_4_3"] = 7] = "GOPRO_RESOLUTION_2_7k_4_3";
/**
* 3840 x 2160 (4k-16:9).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_4k_16_9"] = 8] = "GOPRO_RESOLUTION_4k_16_9";
/**
* 4096 x 2160 (4k-17:9).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_4k_17_9"] = 9] = "GOPRO_RESOLUTION_4k_17_9";
/**
* 1280 x 720 (720p-SuperView).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_720p_SUPERVIEW"] = 10] = "GOPRO_RESOLUTION_720p_SUPERVIEW";
/**
* 1920 x 1080 (1080p-SuperView).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_1080p_SUPERVIEW"] = 11] = "GOPRO_RESOLUTION_1080p_SUPERVIEW";
/**
* 2704 x 1520 (2.7k-SuperView).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_2_7k_SUPERVIEW"] = 12] = "GOPRO_RESOLUTION_2_7k_SUPERVIEW";
/**
* 3840 x 2160 (4k-SuperView).
*/
GoproResolution[GoproResolution["GOPRO_RESOLUTION_4k_SUPERVIEW"] = 13] = "GOPRO_RESOLUTION_4k_SUPERVIEW";
})(GoproResolution = exports.GoproResolution || (exports.GoproResolution = {}));
/**
* GOPRO_FRAME_RATE
*/
var GoproFrameRate;
(function (GoproFrameRate) {
/**
* 12 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_12"] = 0] = "GOPRO_FRAME_RATE_12";
/**
* 15 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_15"] = 1] = "GOPRO_FRAME_RATE_15";
/**
* 24 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_24"] = 2] = "GOPRO_FRAME_RATE_24";
/**
* 25 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_25"] = 3] = "GOPRO_FRAME_RATE_25";
/**
* 30 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_30"] = 4] = "GOPRO_FRAME_RATE_30";
/**
* 48 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_48"] = 5] = "GOPRO_FRAME_RATE_48";
/**
* 50 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_50"] = 6] = "GOPRO_FRAME_RATE_50";
/**
* 60 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_60"] = 7] = "GOPRO_FRAME_RATE_60";
/**
* 80 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_80"] = 8] = "GOPRO_FRAME_RATE_80";
/**
* 90 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_90"] = 9] = "GOPRO_FRAME_RATE_90";
/**
* 100 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_100"] = 10] = "GOPRO_FRAME_RATE_100";
/**
* 120 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_120"] = 11] = "GOPRO_FRAME_RATE_120";
/**
* 240 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_240"] = 12] = "GOPRO_FRAME_RATE_240";
/**
* 12.5 FPS.
*/
GoproFrameRate[GoproFrameRate["GOPRO_FRAME_RATE_12_5"] = 13] = "GOPRO_FRAME_RATE_12_5";
})(GoproFrameRate = exports.GoproFrameRate || (exports.GoproFrameRate = {}));
/**
* GOPRO_FIELD_OF_VIEW
*/
var GoproFieldOfView;
(function (GoproFieldOfView) {
/**
* 0x00: Wide.
*/
GoproFieldOfView[GoproFieldOfView["WIDE"] = 0] = "WIDE";
/**
* 0x01: Medium.
*/
GoproFieldOfView[GoproFieldOfView["MEDIUM"] = 1] = "MEDIUM";
/**
* 0x02: Narrow.
*/
GoproFieldOfView[GoproFieldOfView["NARROW"] = 2] = "NARROW";
})(GoproFieldOfView = exports.GoproFieldOfView || (exports.GoproFieldOfView = {}));
/**
* GOPRO_VIDEO_SETTINGS_FLAGS
*/
var GoproVideoSettingsFlags;
(function (GoproVideoSettingsFlags) {
/**
* 0=NTSC, 1=PAL.
*/
GoproVideoSettingsFlags[GoproVideoSettingsFlags["MODE"] = 1] = "MODE";
})(GoproVideoSettingsFlags = exports.GoproVideoSettingsFlags || (exports.GoproVideoSettingsFlags = {}));
/**
* GOPRO_PHOTO_RESOLUTION
*/
var GoproPhotoResolution;
(function (GoproPhotoResolution) {
/**
* 5MP Medium.
*/
GoproPhotoResolution[GoproPhotoResolution["GOPRO_PHOTO_RESOLUTION_5MP_MEDIUM"] = 0] = "GOPRO_PHOTO_RESOLUTION_5MP_MEDIUM";
/**
* 7MP Medium.
*/
GoproPhotoResolution[GoproPhotoResolution["GOPRO_PHOTO_RESOLUTION_7MP_MEDIUM"] = 1] = "GOPRO_PHOTO_RESOLUTION_7MP_MEDIUM";
/**
* 7MP Wide.
*/
GoproPhotoResolution[GoproPhotoResolution["GOPRO_PHOTO_RESOLUTION_7MP_WIDE"] = 2] = "GOPRO_PHOTO_RESOLUTION_7MP_WIDE";
/**
* 10MP Wide.
*/
GoproPhotoResolution[GoproPhotoResolution["GOPRO_PHOTO_RESOLUTION_10MP_WIDE"] = 3] = "GOPRO_PHOTO_RESOLUTION_10MP_WIDE";
/**
* 12MP Wide.
*/
GoproPhotoResolution[GoproPhotoResolution["GOPRO_PHOTO_RESOLUTION_12MP_WIDE"] = 4] = "GOPRO_PHOTO_RESOLUTION_12MP_WIDE";
})(GoproPhotoResolution = exports.GoproPhotoResolution || (exports.GoproPhotoResolution = {}));
/**
* GOPRO_PROTUNE_WHITE_BALANCE
*/
var GoproProtuneWhiteBalance;
(function (GoproProtuneWhiteBalance) {
/**
* Auto.
*/
GoproProtuneWhiteBalance[GoproProtuneWhiteBalance["AUTO"] = 0] = "AUTO";
/**
* 3000K.
*/
GoproProtuneWhiteBalance[GoproProtuneWhiteBalance["GOPRO_PROTUNE_WHITE_BALANCE_3000K"] = 1] = "GOPRO_PROTUNE_WHITE_BALANCE_3000K";
/**
* 5500K.
*/
GoproProtuneWhiteBalance[GoproProtuneWhiteBalance["GOPRO_PROTUNE_WHITE_BALANCE_5500K"] = 2] = "GOPRO_PROTUNE_WHITE_BALANCE_5500K";
/**
* 6500K.
*/
GoproProtuneWhiteBalance[GoproProtuneWhiteBalance["GOPRO_PROTUNE_WHITE_BALANCE_6500K"] = 3] = "GOPRO_PROTUNE_WHITE_BALANCE_6500K";
/**
* Camera Raw.
*/
GoproProtuneWhiteBalance[GoproProtuneWhiteBalance["RAW"] = 4] = "RAW";
})(GoproProtuneWhiteBalance = exports.GoproProtuneWhiteBalance || (exports.GoproProtuneWhiteBalance = {}));
/**
* GOPRO_PROTUNE_COLOUR
*/
var GoproProtuneColour;
(function (GoproProtuneColour) {
/**
* Auto.
*/
GoproProtuneColour[GoproProtuneColour["STANDARD"] = 0] = "STANDARD";
/**
* Neutral.
*/
GoproProtuneColour[GoproProtuneColour["NEUTRAL"] = 1] = "NEUTRAL";
})(GoproProtuneColour = exports.GoproProtuneColour || (exports.GoproProtuneColour = {}));
/**
* GOPRO_PROTUNE_GAIN
*/
var GoproProtuneGain;
(function (GoproProtuneGain) {
/**
* ISO 400.
*/
GoproProtuneGain[GoproProtuneGain["GOPRO_PROTUNE_GAIN_400"] = 0] = "GOPRO_PROTUNE_GAIN_400";
/**
* ISO 800 (Only Hero 4).
*/
GoproProtuneGain[GoproProtuneGain["GOPRO_PROTUNE_GAIN_800"] = 1] = "GOPRO_PROTUNE_GAIN_800";
/**
* ISO 1600.
*/
GoproProtuneGain[GoproProtuneGain["GOPRO_PROTUNE_GAIN_1600"] = 2] = "GOPRO_PROTUNE_GAIN_1600";
/**
* ISO 3200 (Only Hero 4).
*/
GoproProtuneGain[GoproProtuneGain["GOPRO_PROTUNE_GAIN_3200"] = 3] = "GOPRO_PROTUNE_GAIN_3200";
/**
* ISO 6400.
*/
GoproProtuneGain[GoproProtuneGain["GOPRO_PROTUNE_GAIN_6400"] = 4] = "GOPRO_PROTUNE_GAIN_6400";
})(GoproProtuneGain = exports.GoproProtuneGain || (exports.GoproProtuneGain = {}));
/**
* GOPRO_PROTUNE_SHARPNESS
*/
var GoproProtuneSharpness;
(function (GoproProtuneSharpness) {
/**
* Low Sharpness.
*/
GoproProtuneSharpness[GoproProtuneSharpness["LOW"] = 0] = "LOW";
/**
* Medium Sharpness.
*/
GoproProtuneSharpness[GoproProtuneSharpness["MEDIUM"] = 1] = "MEDIUM";
/**
* High Sharpness.
*/
GoproProtuneSharpness[GoproProtuneSharpness["HIGH"] = 2] = "HIGH";
})(GoproProtuneSharpness = exports.GoproProtuneSharpness || (exports.GoproProtuneSharpness = {}));
/**
* GOPRO_PROTUNE_EXPOSURE
*/
var GoproProtuneExposure;
(function (GoproProtuneExposure) {
/**
* -5.0 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["NEG_5_0"] = 0] = "NEG_5_0";
/**
* -4.5 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["NEG_4_5"] = 1] = "NEG_4_5";
/**
* -4.0 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["NEG_4_0"] = 2] = "NEG_4_0";
/**
* -3.5 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["NEG_3_5"] = 3] = "NEG_3_5";
/**
* -3.0 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["NEG_3_0"] = 4] = "NEG_3_0";
/**
* -2.5 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["NEG_2_5"] = 5] = "NEG_2_5";
/**
* -2.0 EV.
*/
GoproProtuneExposure[GoproProtuneExposure["NEG_2_0"] = 6] = "NEG_2_0";
/**
* -1.5 EV.
*/
GoproProtuneExposure[GoproProtuneExposure["NEG_1_5"] = 7] = "NEG_1_5";
/**
* -1.0 EV.
*/
GoproProtuneExposure[GoproProtuneExposure["NEG_1_0"] = 8] = "NEG_1_0";
/**
* -0.5 EV.
*/
GoproProtuneExposure[GoproProtuneExposure["NEG_0_5"] = 9] = "NEG_0_5";
/**
* 0.0 EV.
*/
GoproProtuneExposure[GoproProtuneExposure["ZERO"] = 10] = "ZERO";
/**
* +0.5 EV.
*/
GoproProtuneExposure[GoproProtuneExposure["POS_0_5"] = 11] = "POS_0_5";
/**
* +1.0 EV.
*/
GoproProtuneExposure[GoproProtuneExposure["POS_1_0"] = 12] = "POS_1_0";
/**
* +1.5 EV.
*/
GoproProtuneExposure[GoproProtuneExposure["POS_1_5"] = 13] = "POS_1_5";
/**
* +2.0 EV.
*/
GoproProtuneExposure[GoproProtuneExposure["POS_2_0"] = 14] = "POS_2_0";
/**
* +2.5 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["POS_2_5"] = 15] = "POS_2_5";
/**
* +3.0 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["POS_3_0"] = 16] = "POS_3_0";
/**
* +3.5 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["POS_3_5"] = 17] = "POS_3_5";
/**
* +4.0 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["POS_4_0"] = 18] = "POS_4_0";
/**
* +4.5 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["POS_4_5"] = 19] = "POS_4_5";
/**
* +5.0 EV (Hero 3+ Only).
*/
GoproProtuneExposure[GoproProtuneExposure["POS_5_0"] = 20] = "POS_5_0";
})(GoproProtuneExposure = exports.GoproProtuneExposure || (exports.GoproProtuneExposure = {}));
/**
* GOPRO_CHARGING
*/
var GoproCharging;
(function (GoproCharging) {
/**
* Charging disabled.
*/
GoproCharging[GoproCharging["DISABLED"] = 0] = "DISABLED";
/**
* Charging enabled.
*/
GoproCharging[GoproCharging["ENABLED"] = 1] = "ENABLED";
})(GoproCharging = exports.GoproCharging || (exports.GoproCharging = {}));
/**
* GOPRO_MODEL
*/
var GoproModel;
(function (GoproModel) {
/**
* Unknown gopro model.
*/
GoproModel[GoproModel["UNKNOWN"] = 0] = "UNKNOWN";
/**
* Hero 3+ Silver (HeroBus not supported by GoPro).
*/
GoproModel[GoproModel["HERO_3_PLUS_SILVER"] = 1] = "HERO_3_PLUS_SILVER";
/**
* Hero 3+ Black.
*/
GoproModel[GoproModel["HERO_3_PLUS_BLACK"] = 2] = "HERO_3_PLUS_BLACK";
/**
* Hero 4 Silver.
*/
GoproModel[GoproModel["HERO_4_SILVER"] = 3] = "HERO_4_SILVER";
/**
* Hero 4 Black.
*/
GoproModel[GoproModel["HERO_4_BLACK"] = 4] = "HERO_4_BLACK";
})(GoproModel = exports.GoproModel || (exports.GoproModel = {}));
/**
* GOPRO_BURST_RATE
*/
var GoproBurstRate;
(function (GoproBurstRate) {
/**
* 3 Shots / 1 Second.
*/
GoproBurstRate[GoproBurstRate["GOPRO_BURST_RATE_3_IN_1_SECOND"] = 0] = "GOPRO_BURST_RATE_3_IN_1_SECOND";
/**
* 5 Shots / 1 Second.
*/
GoproBurstRate[GoproBurstRate["GOPRO_BURST_RATE_5_IN_1_SECOND"] = 1] = "GOPRO_BURST_RATE_5_IN_1_SECOND";
/**
* 10 Shots / 1 Second.
*/
GoproBurstRate[GoproBurstRate["GOPRO_BURST_RATE_10_IN_1_SECOND"] = 2] = "GOPRO_BURST_RATE_10_IN_1_SECOND";
/**
* 10 Shots / 2 Second.
*/
GoproBurstRate[GoproBurstRate["GOPRO_BURST_RATE_10_IN_2_SECOND"] = 3] = "GOPRO_BURST_RATE_10_IN_2_SECOND";
/**
* 10 Shots / 3 Second (Hero 4 Only).
*/
GoproBurstRate[GoproBurstRate["GOPRO_BURST_RATE_10_IN_3_SECOND"] = 4] = "GOPRO_BURST_RATE_10_IN_3_SECOND";
/**
* 30 Shots / 1 Second.
*/
GoproBurstRate[GoproBurstRate["GOPRO_BURST_RATE_30_IN_1_SECOND"] = 5] = "GOPRO_BURST_RATE_30_IN_1_SECOND";
/**
* 30 Shots / 2 Second.
*/
GoproBurstRate[GoproBurstRate["GOPRO_BURST_RATE_30_IN_2_SECOND"] = 6] = "GOPRO_BURST_RATE_30_IN_2_SECOND";
/**
* 30 Shots / 3 Second.
*/
GoproBurstRate[GoproBurstRate["GOPRO_BURST_RATE_30_IN_3_SECOND"] = 7] = "GOPRO_BURST_RATE_30_IN_3_SECOND";
/**
* 30 Shots / 6 Second.
*/
GoproBurstRate[GoproBurstRate["GOPRO_BURST_RATE_30_IN_6_SECOND"] = 8] = "GOPRO_BURST_RATE_30_IN_6_SECOND";
})(GoproBurstRate = exports.GoproBurstRate || (exports.GoproBurstRate = {}));
/**
* MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL
*/
var MavCmdDoAuxFunctionSwitchLevel;
(function (MavCmdDoAuxFunctionSwitchLevel) {
/**
* Switch Low.
*/
MavCmdDoAuxFunctionSwitchLevel[MavCmdDoAuxFunctionSwitchLevel["LOW"] = 0] = "LOW";
/**
* Switch Middle.
*/
MavCmdDoAuxFunctionSwitchLevel[MavCmdDoAuxFunctionSwitchLevel["MIDDLE"] = 1] = "MIDDLE";
/**
* Switch High.
*/
MavCmdDoAuxFunctionSwitchLevel[MavCmdDoAuxFunctionSwitchLevel["HIGH"] = 2] = "HIGH";
})(MavCmdDoAuxFunctionSwitchLevel = exports.MavCmdDoAuxFunctionSwitchLevel || (exports.MavCmdDoAuxFunctionSwitchLevel = {}));
/**
* LED_CONTROL_PATTERN
*/
var LedControlPattern;
(function (LedControlPattern) {
/**
* LED patterns off (return control to regular vehicle control).
*/
LedControlPattern[LedControlPattern["OFF"] = 0] = "OFF";
/**
* LEDs show pattern during firmware update.
*/
LedControlPattern[LedControlPattern["FIRMWAREUPDATE"] = 1] = "FIRMWAREUPDATE";
/**
* Custom Pattern using custom bytes fields.
*/
LedControlPattern[LedControlPattern["CUSTOM"] = 255] = "CUSTOM";
})(LedControlPattern = exports.LedControlPattern || (exports.LedControlPattern = {}));
/**
* Flags in EKF_STATUS message.
*/
var EkfStatusFlags;
(function (EkfStatusFlags) {
/**
* Set if EKF's attitude estimate is good.
*/
EkfStatusFlags[EkfStatusFlags["ATTITUDE"] = 1] = "ATTITUDE";
/**
* Set if EKF's horizontal velocity estimate is good.
*/
EkfStatusFlags[EkfStatusFlags["VELOCITY_HORIZ"] = 2] = "VELOCITY_HORIZ";
/**
* Set if EKF's vertical velocity estimate is good.
*/
EkfStatusFlags[EkfStatusFlags["VELOCITY_VERT"] = 4] = "VELOCITY_VERT";
/**
* Set if EKF's horizontal position (relative) estimate is good.
*/
EkfStatusFlags[EkfStatusFlags["POS_HORIZ_REL"] = 8] = "POS_HORIZ_REL";
/**
* Set if EKF's horizontal position (absolute) estimate is good.
*/
EkfStatusFlags[EkfStatusFlags["POS_HORIZ_ABS"] = 16] = "POS_HORIZ_ABS";
/**
* Set if EKF's vertical position (absolute) estimate is good.
*/
EkfStatusFlags[EkfStatusFlags["POS_VERT_ABS"] = 32] = "POS_VERT_ABS";
/**
* Set if EKF's vertical position (above ground) estimate is good.
*/
EkfStatusFlags[EkfStatusFlags["POS_VERT_AGL"] = 64] = "POS_VERT_AGL";
/**
* EKF is in constant position mode and does not know it's absolute or relative position.
*/
EkfStatusFlags[EkfStatusFlags["CONST_POS_MODE"] = 128] = "CONST_POS_MODE";
/**
* Set if EKF's predicted horizontal position (relative) estimate is good.
*/
EkfStatusFlags[EkfStatusFlags["PRED_POS_HORIZ_REL"] = 256] = "PRED_POS_HORIZ_REL";
/**
* Set if EKF's predicted horizontal position (absolute) estimate is good.
*/
EkfStatusFlags[EkfStatusFlags["PRED_POS_HORIZ_ABS"] = 512] = "PRED_POS_HORIZ_ABS";
/**
* Set if EKF has never been healthy.
*/
EkfStatusFlags[EkfStatusFlags["UNINITIALIZED"] = 1024] = "UNINITIALIZED";
})(EkfStatusFlags = exports.EkfStatusFlags || (exports.EkfStatusFlags = {}));
/**
* PID_TUNING_AXIS
*/
var PidTuningAxis;
(function (PidTuningAxis) {
PidTuningAxis[PidTuningAxis["ROLL"] = 1] = "ROLL";
PidTuningAxis[PidTuningAxis["PITCH"] = 2] = "PITCH";
PidTuningAxis[PidTuningAxis["YAW"] = 3] = "YAW";
PidTuningAxis[PidTuningAxis["ACCZ"] = 4] = "ACCZ";
PidTuningAxis[PidTuningAxis["STEER"] = 5] = "STEER";
PidTuningAxis[PidTuningAxis["LANDING"] = 6] = "LANDING";
})(PidTuningAxis = exports.PidTuningAxis || (exports.PidTuningAxis = {}));
/**
* Special ACK block numbers control activation of dataflash log streaming.
*/
var MavRemoteLogDataBlockCommands;
(function (MavRemoteLogDataBlockCommands) {
/**
* UAV to stop sending DataFlash blocks.
*/
MavRemoteLogDataBlockCommands[MavRemoteLogDataBlockCommands["STOP"] = 2147483645] = "STOP";
/**
* UAV to start sending DataFlash blocks.
*/
MavRemoteLogDataBlockCommands[MavRemoteLogDataBlockCommands["START"] = 2147483646] = "START";
})(MavRemoteLogDataBlockCommands = exports.MavRemoteLogDataBlockCommands || (exports.MavRemoteLogDataBlockCommands = {}));
/**
* Possible remote log data block statuses.
*/
var MavRemoteLogDataBlockStatuses;
(function (MavRemoteLogDataBlockStatuses) {
/**
* This block has NOT been received.
*/
MavRemoteLogDataBlockStatuses[MavRemoteLogDataBlockStatuses["NACK"] = 0] = "NACK";
/**
* This block has been received.
*/
MavRemoteLogDataBlockStatuses[MavRemoteLogDataBlockStatuses["ACK"] = 1] = "ACK";
})(MavRemoteLogDataBlockStatuses = exports.MavRemoteLogDataBlockStatuses || (exports.MavRemoteLogDataBlockStatuses = {}));
/**
* Bus types for device operations.
*/
var DeviceOpBustype;
(function (DeviceOpBustype) {
/**
* I2C Device operation.
*/
DeviceOpBustype[DeviceOpBustype["I2C"] = 0] = "I2C";
/**
* SPI Device operation.
*/
DeviceOpBustype[DeviceOpBustype["SPI"] = 1] = "SPI";
})(DeviceOpBustype = exports.DeviceOpBustype || (exports.DeviceOpBustype = {}));
/**
* Deepstall flight stage.
*/
var DeepstallStage;
(function (DeepstallStage) {
/**
* Flying to the landing point.
*/
DeepstallStage[DeepstallStage["FLY_TO_LANDING"] = 0] = "FLY_TO_LANDING";
/**