github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/development/message_target_relative.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package development 4 5 // The location of a target measured by MAV's onboard sensors. 6 type MessageTargetRelative struct { 7 // Timestamp (UNIX epoch time) 8 Timestamp uint64 9 // The ID of the target if multiple targets are present 10 Id uint8 11 // Coordinate frame used for following fields. 12 Frame TARGET_OBS_FRAME `mavenum:"uint8"` 13 // X Position of the target in TARGET_OBS_FRAME 14 X float32 15 // Y Position of the target in TARGET_OBS_FRAME 16 Y float32 17 // Z Position of the target in TARGET_OBS_FRAME 18 Z float32 19 // Standard deviation of the target's position in TARGET_OBS_FRAME 20 PosStd [3]float32 21 // Standard deviation of the target's orientation in TARGET_OBS_FRAME 22 YawStd float32 23 // Quaternion of the target's orientation from the target's frame to the TARGET_OBS_FRAME (w, x, y, z order, zero-rotation is 1, 0, 0, 0) 24 QTarget [4]float32 25 // Quaternion of the sensor's orientation from TARGET_OBS_FRAME to vehicle-carried NED. (Ignored if set to (0,0,0,0)) (w, x, y, z order, zero-rotation is 1, 0, 0, 0) 26 QSensor [4]float32 27 // Type of target 28 Type LANDING_TARGET_TYPE `mavenum:"uint8"` 29 } 30 31 // GetID implements the message.Message interface. 32 func (*MessageTargetRelative) GetID() uint32 { 33 return 511 34 }