github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_optical_flow_rad.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package common 4 5 // Optical flow from an angular rate flow sensor (e.g. PX4FLOW or mouse sensor) 6 type MessageOpticalFlowRad struct { 7 // Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number. 8 TimeUsec uint64 9 // Sensor ID 10 SensorId uint8 11 // Integration time. Divide integrated_x and integrated_y by the integration time to obtain average flow. The integration time also indicates the. 12 IntegrationTimeUs uint32 13 // Flow around X axis (Sensor RH rotation about the X axis induces a positive flow. Sensor linear motion along the positive Y axis induces a negative flow.) 14 IntegratedX float32 15 // Flow around Y axis (Sensor RH rotation about the Y axis induces a positive flow. Sensor linear motion along the positive X axis induces a positive flow.) 16 IntegratedY float32 17 // RH rotation around X axis 18 IntegratedXgyro float32 19 // RH rotation around Y axis 20 IntegratedYgyro float32 21 // RH rotation around Z axis 22 IntegratedZgyro float32 23 // Temperature 24 Temperature int16 25 // Optical flow quality / confidence. 0: no valid flow, 255: maximum quality 26 Quality uint8 27 // Time since the distance was sampled. 28 TimeDeltaDistanceUs uint32 29 // Distance to the center of the flow field. Positive value (including zero): distance known. Negative value: Unknown distance. 30 Distance float32 31 } 32 33 // GetID implements the message.Message interface. 34 func (*MessageOpticalFlowRad) GetID() uint32 { 35 return 106 36 }