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

     1  //autogenerated:yes
     2  //nolint:revive,misspell,govet,lll
     3  package ardupilotmega
     4  
     5  // A fence point. Used to set a point when from GCS -> MAV. Also used to return a point from MAV -> GCS.
     6  type MessageFencePoint struct {
     7  	// System ID.
     8  	TargetSystem uint8
     9  	// Component ID.
    10  	TargetComponent uint8
    11  	// Point index (first point is 1, 0 is for return point).
    12  	Idx uint8
    13  	// Total number of points (for sanity checking).
    14  	Count uint8
    15  	// Latitude of point.
    16  	Lat float32
    17  	// Longitude of point.
    18  	Lng float32
    19  }
    20  
    21  // GetID implements the message.Message interface.
    22  func (*MessageFencePoint) GetID() uint32 {
    23  	return 160
    24  }