github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_hil_sensor.go (about) 1 //autogenerated:yes 2 //nolint:revive,misspell,govet,lll 3 package common 4 5 // The IMU readings in SI units in NED body frame 6 type MessageHilSensor 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 // X acceleration 10 Xacc float32 11 // Y acceleration 12 Yacc float32 13 // Z acceleration 14 Zacc float32 15 // Angular speed around X axis in body frame 16 Xgyro float32 17 // Angular speed around Y axis in body frame 18 Ygyro float32 19 // Angular speed around Z axis in body frame 20 Zgyro float32 21 // X Magnetic field 22 Xmag float32 23 // Y Magnetic field 24 Ymag float32 25 // Z Magnetic field 26 Zmag float32 27 // Absolute pressure 28 AbsPressure float32 29 // Differential pressure (airspeed) 30 DiffPressure float32 31 // Altitude calculated from pressure 32 PressureAlt float32 33 // Temperature 34 Temperature float32 35 // Bitmap for fields that have updated since last message 36 FieldsUpdated HIL_SENSOR_UPDATED_FLAGS `mavenum:"uint32"` 37 // Sensor ID (zero indexed). Used for multiple sensor inputs 38 Id uint8 `mavext:"true"` 39 } 40 41 // GetID implements the message.Message interface. 42 func (*MessageHilSensor) GetID() uint32 { 43 return 107 44 }