예제 #1
0
파일: slugs.go 프로젝트: letalo/go-mavlink
// 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) }
}
예제 #2
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(FlexifunctionSet) }
	mavlink.MessageFactory[151] = func() mavlink.Message { return new(FlexifunctionReadReq) }
	mavlink.MessageFactory[152] = func() mavlink.Message { return new(FlexifunctionBufferFunction) }
	mavlink.MessageFactory[153] = func() mavlink.Message { return new(FlexifunctionBufferFunctionAck) }
	mavlink.MessageFactory[155] = func() mavlink.Message { return new(FlexifunctionDirectory) }
	mavlink.MessageFactory[156] = func() mavlink.Message { return new(FlexifunctionDirectoryAck) }
	mavlink.MessageFactory[157] = func() mavlink.Message { return new(FlexifunctionCommand) }
	mavlink.MessageFactory[158] = func() mavlink.Message { return new(FlexifunctionCommandAck) }
	mavlink.MessageFactory[170] = func() mavlink.Message { return new(SerialUdbExtraF2A) }
	mavlink.MessageFactory[171] = func() mavlink.Message { return new(SerialUdbExtraF2B) }
	mavlink.MessageFactory[172] = func() mavlink.Message { return new(SerialUdbExtraF4) }
	mavlink.MessageFactory[173] = func() mavlink.Message { return new(SerialUdbExtraF5) }
	mavlink.MessageFactory[174] = func() mavlink.Message { return new(SerialUdbExtraF6) }
	mavlink.MessageFactory[175] = func() mavlink.Message { return new(SerialUdbExtraF7) }
	mavlink.MessageFactory[176] = func() mavlink.Message { return new(SerialUdbExtraF8) }
	mavlink.MessageFactory[177] = func() mavlink.Message { return new(SerialUdbExtraF13) }
	mavlink.MessageFactory[178] = func() mavlink.Message { return new(SerialUdbExtraF14) }
	mavlink.MessageFactory[179] = func() mavlink.Message { return new(SerialUdbExtraF15) }
	mavlink.MessageFactory[180] = func() mavlink.Message { return new(SerialUdbExtraF16) }
	mavlink.MessageFactory[181] = func() mavlink.Message { return new(Altitudes) }
	mavlink.MessageFactory[182] = func() mavlink.Message { return new(Airspeeds) }
}
예제 #3
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) }
}
예제 #4
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) }
}
예제 #5
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) }
}
예제 #6
0
파일: ASLUAV.go 프로젝트: letalo/go-mavlink
// 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) }
}
예제 #7
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) }
}