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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // Sent from autopilot to simulation. Hardware in the loop control outputs
     6  type MessageHilControls 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  	// Control output -1 .. 1
    10  	RollAilerons float32
    11  	// Control output -1 .. 1
    12  	PitchElevator float32
    13  	// Control output -1 .. 1
    14  	YawRudder float32
    15  	// Throttle 0 .. 1
    16  	Throttle float32
    17  	// Aux 1, -1 .. 1
    18  	Aux1 float32
    19  	// Aux 2, -1 .. 1
    20  	Aux2 float32
    21  	// Aux 3, -1 .. 1
    22  	Aux3 float32
    23  	// Aux 4, -1 .. 1
    24  	Aux4 float32
    25  	// System mode.
    26  	Mode MAV_MODE `mavenum:"uint8"`
    27  	// Navigation mode (MAV_NAV_MODE)
    28  	NavMode uint8
    29  }
    30  
    31  // GetID implements the message.Message interface.
    32  func (*MessageHilControls) GetID() uint32 {
    33  	return 91
    34  }