Ejemplo n.º 1
0
// Init initializes mavlink.ProtocolName, mavlink.ProtocolVersion, and mavlink.MessageFactory.
func Init() {
	common.Init()

	mavlink.ProtocolName = PROTOCOL_NAME

	mavlink.MessageFactory[170] = func() mavlink.Message { return new(CpuLoad) }
	mavlink.MessageFactory[172] = func() mavlink.Message { return new(SensorBias) }
	mavlink.MessageFactory[173] = func() mavlink.Message { return new(Diagnostic) }
	mavlink.MessageFactory[176] = func() mavlink.Message { return new(SlugsNavigation) }
	mavlink.MessageFactory[177] = func() mavlink.Message { return new(DataLog) }
	mavlink.MessageFactory[179] = func() mavlink.Message { return new(GpsDateTime) }
	mavlink.MessageFactory[180] = func() mavlink.Message { return new(MidLvlCmds) }
	mavlink.MessageFactory[181] = func() mavlink.Message { return new(CtrlSrfcPt) }
	mavlink.MessageFactory[184] = func() mavlink.Message { return new(SlugsCameraOrder) }
	mavlink.MessageFactory[185] = func() mavlink.Message { return new(ControlSurface) }
	mavlink.MessageFactory[186] = func() mavlink.Message { return new(SlugsMobileLocation) }
	mavlink.MessageFactory[188] = func() mavlink.Message { return new(SlugsConfigurationCamera) }
	mavlink.MessageFactory[189] = func() mavlink.Message { return new(IsrLocation) }
	mavlink.MessageFactory[191] = func() mavlink.Message { return new(VoltSensor) }
	mavlink.MessageFactory[192] = func() mavlink.Message { return new(PtzStatus) }
	mavlink.MessageFactory[193] = func() mavlink.Message { return new(UavStatus) }
	mavlink.MessageFactory[194] = func() mavlink.Message { return new(StatusGps) }
	mavlink.MessageFactory[195] = func() mavlink.Message { return new(NovatelDiag) }
	mavlink.MessageFactory[196] = func() mavlink.Message { return new(SensorDiag) }
	mavlink.MessageFactory[197] = func() mavlink.Message { return new(Boot) }
}
Ejemplo n.º 2
0
// Init initializes mavlink.ProtocolName, mavlink.ProtocolVersion, and mavlink.MessageFactory.
func Init() {
	common.Init()

	mavlink.ProtocolName = PROTOCOL_NAME

	mavlink.MessageFactory[151] = func() mavlink.Message { return new(SetCamShutter) }
	mavlink.MessageFactory[152] = func() mavlink.Message { return new(ImageTriggered) }
	mavlink.MessageFactory[153] = func() mavlink.Message { return new(ImageTriggerControl) }
	mavlink.MessageFactory[154] = func() mavlink.Message { return new(ImageAvailable) }
	mavlink.MessageFactory[160] = func() mavlink.Message { return new(SetPositionControlOffset) }
	mavlink.MessageFactory[170] = func() mavlink.Message { return new(PositionControlSetpoint) }
	mavlink.MessageFactory[171] = func() mavlink.Message { return new(Marker) }
	mavlink.MessageFactory[172] = func() mavlink.Message { return new(RawAux) }
	mavlink.MessageFactory[180] = func() mavlink.Message { return new(WatchdogHeartbeat) }
	mavlink.MessageFactory[181] = func() mavlink.Message { return new(WatchdogProcessInfo) }
	mavlink.MessageFactory[182] = func() mavlink.Message { return new(WatchdogProcessStatus) }
	mavlink.MessageFactory[183] = func() mavlink.Message { return new(WatchdogCommand) }
	mavlink.MessageFactory[190] = func() mavlink.Message { return new(PatternDetected) }
	mavlink.MessageFactory[191] = func() mavlink.Message { return new(PointOfInterest) }
	mavlink.MessageFactory[192] = func() mavlink.Message { return new(PointOfInterestConnection) }
	mavlink.MessageFactory[195] = func() mavlink.Message { return new(BriefFeature) }
	mavlink.MessageFactory[200] = func() mavlink.Message { return new(AttitudeControl) }
	mavlink.MessageFactory[205] = func() mavlink.Message { return new(DetectionStats) }
	mavlink.MessageFactory[206] = func() mavlink.Message { return new(OnboardHealth) }
}
Ejemplo n.º 3
0
// Init initializes mavlink.ProtocolName, mavlink.ProtocolVersion, and mavlink.MessageFactory.
func Init() {
	common.Init()

	mavlink.ProtocolName = PROTOCOL_NAME
	mavlink.ProtocolVersion = PROTOCOL_VERSION

	mavlink.MessageFactory[150] = func() mavlink.Message { return new(AqTelemetryF) }
}
Ejemplo n.º 4
0
// Init initializes mavlink.ProtocolName, mavlink.ProtocolVersion, and mavlink.MessageFactory.
func Init() {
	common.Init()

	mavlink.ProtocolName = PROTOCOL_NAME

	mavlink.MessageFactory[220] = func() mavlink.Message { return new(NavFilterBias) }
	mavlink.MessageFactory[221] = func() mavlink.Message { return new(RadioCalibration) }
	mavlink.MessageFactory[222] = func() mavlink.Message { return new(UalbertaSysStatus) }
}
Ejemplo n.º 5
0
// Init initializes mavlink.ProtocolName, mavlink.ProtocolVersion, and mavlink.MessageFactory.
func Init() {
	common.Init()

	mavlink.ProtocolName = PROTOCOL_NAME

	mavlink.MessageFactory[201] = func() mavlink.Message { return new(SensPower) }
	mavlink.MessageFactory[202] = func() mavlink.Message { return new(SensMppt) }
	mavlink.MessageFactory[203] = func() mavlink.Message { return new(AslctrlData) }
	mavlink.MessageFactory[204] = func() mavlink.Message { return new(AslctrlDebug) }
	mavlink.MessageFactory[205] = func() mavlink.Message { return new(AsluavStatus) }
	mavlink.MessageFactory[206] = func() mavlink.Message { return new(EkfExt) }
	mavlink.MessageFactory[207] = func() mavlink.Message { return new(AslObctrl) }
	mavlink.MessageFactory[208] = func() mavlink.Message { return new(SensAtmos) }
}
Ejemplo n.º 6
0
// Init initializes mavlink.ProtocolName, mavlink.ProtocolVersion, and mavlink.MessageFactory.
func Init() {
	common.Init()

	mavlink.ProtocolName = PROTOCOL_NAME

	mavlink.MessageFactory[150] = func() mavlink.Message { return new(SensorOffsets) }
	mavlink.MessageFactory[151] = func() mavlink.Message { return new(SetMagOffsets) }
	mavlink.MessageFactory[152] = func() mavlink.Message { return new(Meminfo) }
	mavlink.MessageFactory[153] = func() mavlink.Message { return new(ApAdc) }
	mavlink.MessageFactory[154] = func() mavlink.Message { return new(DigicamConfigure) }
	mavlink.MessageFactory[155] = func() mavlink.Message { return new(DigicamControl) }
	mavlink.MessageFactory[156] = func() mavlink.Message { return new(MountConfigure) }
	mavlink.MessageFactory[157] = func() mavlink.Message { return new(MountControl) }
	mavlink.MessageFactory[158] = func() mavlink.Message { return new(MountStatus) }
	mavlink.MessageFactory[160] = func() mavlink.Message { return new(FencePoint) }
	mavlink.MessageFactory[161] = func() mavlink.Message { return new(FenceFetchPoint) }
	mavlink.MessageFactory[162] = func() mavlink.Message { return new(FenceStatus) }
	mavlink.MessageFactory[163] = func() mavlink.Message { return new(Ahrs) }
	mavlink.MessageFactory[164] = func() mavlink.Message { return new(Simstate) }
	mavlink.MessageFactory[165] = func() mavlink.Message { return new(Hwstatus) }
	mavlink.MessageFactory[166] = func() mavlink.Message { return new(Radio) }
	mavlink.MessageFactory[167] = func() mavlink.Message { return new(LimitsStatus) }
	mavlink.MessageFactory[168] = func() mavlink.Message { return new(Wind) }
	mavlink.MessageFactory[169] = func() mavlink.Message { return new(Data16) }
	mavlink.MessageFactory[170] = func() mavlink.Message { return new(Data32) }
	mavlink.MessageFactory[171] = func() mavlink.Message { return new(Data64) }
	mavlink.MessageFactory[172] = func() mavlink.Message { return new(Data96) }
	mavlink.MessageFactory[173] = func() mavlink.Message { return new(Rangefinder) }
	mavlink.MessageFactory[174] = func() mavlink.Message { return new(AirspeedAutocal) }
	mavlink.MessageFactory[175] = func() mavlink.Message { return new(RallyPoint) }
	mavlink.MessageFactory[176] = func() mavlink.Message { return new(RallyFetchPoint) }
	mavlink.MessageFactory[177] = func() mavlink.Message { return new(CompassmotStatus) }
	mavlink.MessageFactory[178] = func() mavlink.Message { return new(Ahrs2) }
	mavlink.MessageFactory[179] = func() mavlink.Message { return new(CameraStatus) }
	mavlink.MessageFactory[180] = func() mavlink.Message { return new(CameraFeedback) }
	mavlink.MessageFactory[181] = func() mavlink.Message { return new(Battery2) }
	mavlink.MessageFactory[182] = func() mavlink.Message { return new(Ahrs3) }
	mavlink.MessageFactory[183] = func() mavlink.Message { return new(AutopilotVersionRequest) }
	mavlink.MessageFactory[184] = func() mavlink.Message { return new(GimbalReport) }
	mavlink.MessageFactory[185] = func() mavlink.Message { return new(GimbalControl) }
}