github.com/bluenviron/gomavlib/v2@v2.2.1-0.20240308101627-2c07e3da629c/pkg/dialects/common/message_attitude_target.go (about)

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // Reports the current commanded attitude of the vehicle as specified by the autopilot. This should match the commands sent in a SET_ATTITUDE_TARGET message if the vehicle is being controlled this way.
     6  type MessageAttitudeTarget struct {
     7  	// Timestamp (time since system boot).
     8  	TimeBootMs uint32
     9  	// Bitmap to indicate which dimensions should be ignored by the vehicle.
    10  	TypeMask ATTITUDE_TARGET_TYPEMASK `mavenum:"uint8"`
    11  	// Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
    12  	Q [4]float32
    13  	// Body roll rate
    14  	BodyRollRate float32
    15  	// Body pitch rate
    16  	BodyPitchRate float32
    17  	// Body yaw rate
    18  	BodyYawRate float32
    19  	// Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
    20  	Thrust float32
    21  }
    22  
    23  // GetID implements the message.Message interface.
    24  func (*MessageAttitudeTarget) GetID() uint32 {
    25  	return 83
    26  }