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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package common
     4  
     5  // Set the mission item with sequence number seq as the current item and emit MISSION_CURRENT (whether or not the mission number changed).
     6  // If a mission is currently being executed, the system will continue to this new mission item on the shortest path, skipping any intermediate mission items.
     7  // Note that mission jump repeat counters are not reset (see MAV_CMD_DO_JUMP param2).
     8  // This message may trigger a mission state-machine change on some systems: for example from MISSION_STATE_NOT_STARTED or MISSION_STATE_PAUSED to MISSION_STATE_ACTIVE.
     9  // If the system is in mission mode, on those systems this command might therefore start, restart or resume the mission.
    10  // If the system is not in mission mode this message must not trigger a switch to mission mode.
    11  type MessageMissionSetCurrent struct {
    12  	// System ID
    13  	TargetSystem uint8
    14  	// Component ID
    15  	TargetComponent uint8
    16  	// Sequence
    17  	Seq uint16
    18  }
    19  
    20  // GetID implements the message.Message interface.
    21  func (*MessageMissionSetCurrent) GetID() uint32 {
    22  	return 41
    23  }