Skip to content

Commit

Permalink
(automatic) update dialects to rev https://github.com/mavlink/mavlink…
Browse files Browse the repository at this point in the history
  • Loading branch information
gomavlib-bot committed Nov 30, 2023
1 parent 2af1509 commit c3da804
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/dialects/common/message_mission_ack.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ type MessageMissionAck struct {
Type MAV_MISSION_RESULT `mavenum:"uint8"`
// Mission type.
MissionType MAV_MISSION_TYPE `mavenum:"uint8" mavext:"true"`
// Id of new on-vehicle mission, fence, or rally point plan (on upload to vehicle).
// The id is calculated and returned by a vehicle when a new plan is uploaded by a GCS.
// The only requirement on the id is that it must change when there is any change to the on-vehicle plan type (there is no requirement that the id be globally unique).
// 0 on download from the vehicle to the GCS (on download the ID is set in MISSION_COUNT).
// 0 if plan ids are not supported.
// The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded.
OpaqueId uint32 `mavext:"true"`
}

// GetID implements the message.Message interface.
Expand Down
7 changes: 7 additions & 0 deletions pkg/dialects/common/message_mission_count.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ type MessageMissionCount struct {
Count uint16
// Mission type.
MissionType MAV_MISSION_TYPE `mavenum:"uint8" mavext:"true"`
// Id of current on-vehicle mission, fence, or rally point plan (on download from vehicle).
// This field is used when downloading a plan from a vehicle to a GCS.
// 0 on upload to the vehicle from GCS.
// 0 if plan ids are not supported.
// The current on-vehicle plan ids are streamed in `MISSION_CURRENT`, allowing a GCS to determine if any part of the plan has changed and needs to be re-uploaded.
// The ids are recalculated by the vehicle when any part of the on-vehicle plan changes (when a new plan is uploaded, the vehicle returns the new id to the GCS in MISSION_ACK).
OpaqueId uint32 `mavext:"true"`
}

// GetID implements the message.Message interface.
Expand Down
6 changes: 6 additions & 0 deletions pkg/dialects/common/message_mission_current.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ type MessageMissionCurrent struct {
MissionState MISSION_STATE `mavenum:"uint8" mavext:"true"`
// Vehicle is in a mode that can execute mission items or suspended. 0: Unknown, 1: In mission mode, 2: Suspended (not in mission mode).
MissionMode uint8 `mavext:"true"`
// Id of current on-vehicle mission plan, or 0 if IDs are not supported or there is no mission loaded. GCS can use this to track changes to the mission plan type. The same value is returned on mission upload (in the MISSION_ACK).
MissionId uint32 `mavext:"true"`
// Id of current on-vehicle fence plan, or 0 if IDs are not supported or there is no fence loaded. GCS can use this to track changes to the fence plan type. The same value is returned on fence upload (in the MISSION_ACK).
FenceId uint32 `mavext:"true"`
// Id of current on-vehicle rally point plan, or 0 if IDs are not supported or there are no rally points loaded. GCS can use this to track changes to the rally point plan type. The same value is returned on rally point upload (in the MISSION_ACK).
RallyPointsId uint32 `mavext:"true"`
}

// GetID implements the message.Message interface.
Expand Down

0 comments on commit c3da804

Please sign in to comment.