diff --git a/cmd/dialect-import/main.go b/cmd/dialect-import/main.go index 3deef2702..66ec619e0 100644 --- a/cmd/dialect-import/main.go +++ b/cmd/dialect-import/main.go @@ -4,6 +4,7 @@ import ( "bytes" "fmt" "io/ioutil" + "math" "net/http" "net/url" "os" @@ -63,7 +64,7 @@ import ( {{- range .Enum.Description }} // {{ . }} {{- end }} -type {{ .Enum.Name }} int +type {{ .Enum.Name }} uint32 const ( {{- $pn := .Enum.Name }} @@ -183,7 +184,7 @@ func parseDescription(in string) []string { } type outEnumValue struct { - Value string + Value *uint32 Name string Description []string } @@ -270,8 +271,17 @@ func processDefinition( } for _, val := range enum.Values { + tmp, err := strconv.ParseInt(val.Value, 10, 64) + if err != nil { + return nil, err + } + if tmp < 0 || tmp > int64(math.Pow(2, 32)) { + return nil, fmt.Errorf("enum values that overflow an uint32 are not supported") + } + + v := uint32(tmp) oute.Values = append(oute.Values, &outEnumValue{ - Value: val.Value, + Value: &v, Name: val.Name, Description: parseDescription(val.Description), }) @@ -522,13 +532,13 @@ func run() error { // fill enum missing values for _, enum := range enums { - nextVal := 0 + nextVal := uint32(0) for _, v := range enum.Values { - if v.Value != "" { - nextVal, _ = strconv.Atoi(v.Value) - nextVal++ + if v.Value != nil { + nextVal = *v.Value + 1 } else { - v.Value = strconv.Itoa(nextVal) + n := nextVal + v.Value = &n nextVal++ } } diff --git a/node_test.go b/node_test.go index 5d44d8871..5626a1756 100644 --- a/node_test.go +++ b/node_test.go @@ -17,10 +17,10 @@ import ( ) type ( - MAV_TYPE int //nolint:revive - MAV_AUTOPILOT int //nolint:revive - MAV_MODE_FLAG int //nolint:revive - MAV_STATE int //nolint:revive + MAV_TYPE uint32 //nolint:revive + MAV_AUTOPILOT uint32 //nolint:revive + MAV_MODE_FLAG uint32 //nolint:revive + MAV_STATE uint32 //nolint:revive ) type MessageHeartbeat struct { diff --git a/nodeheartbeat.go b/nodeheartbeat.go index 8a4048066..9d28c7406 100644 --- a/nodeheartbeat.go +++ b/nodeheartbeat.go @@ -71,11 +71,11 @@ func (h *nodeHeartbeat) run() { select { case <-ticker.C: m := reflect.New(reflect.TypeOf(h.msgHeartbeat).Elem()) - m.Elem().FieldByName("Type").SetInt(int64(h.n.conf.HeartbeatSystemType)) - m.Elem().FieldByName("Autopilot").SetInt(int64(h.n.conf.HeartbeatAutopilotType)) - m.Elem().FieldByName("BaseMode").SetInt(0) + m.Elem().FieldByName("Type").SetUint(uint64(h.n.conf.HeartbeatSystemType)) + m.Elem().FieldByName("Autopilot").SetUint(uint64(h.n.conf.HeartbeatAutopilotType)) + m.Elem().FieldByName("BaseMode").SetUint(0) m.Elem().FieldByName("CustomMode").SetUint(0) - m.Elem().FieldByName("SystemStatus").SetInt(4) // MAV_STATE_ACTIVE + m.Elem().FieldByName("SystemStatus").SetUint(4) // MAV_STATE_ACTIVE m.Elem().FieldByName("MavlinkVersion").SetUint(uint64(h.n.conf.Dialect.Version)) h.n.WriteMessageAll(m.Interface().(msg.Message)) diff --git a/nodestreamrequest.go b/nodestreamrequest.go index 6be31d119..c4cd48ec1 100644 --- a/nodestreamrequest.go +++ b/nodestreamrequest.go @@ -124,7 +124,7 @@ func (sr *nodeStreamRequest) run() { func (sr *nodeStreamRequest) onEventFrame(evt *EventFrame) { // message must be heartbeat and sender must be an ardupilot device if evt.Message().GetID() != 0 || - reflect.ValueOf(evt.Message()).Elem().FieldByName("Autopilot").Int() != 3 { + reflect.ValueOf(evt.Message()).Elem().FieldByName("Autopilot").Uint() != 3 { return } diff --git a/pkg/dialect/decencoder_test.go b/pkg/dialect/decencoder_test.go index 875d47ab4..63a4d2e3d 100644 --- a/pkg/dialect/decencoder_test.go +++ b/pkg/dialect/decencoder_test.go @@ -9,10 +9,10 @@ import ( ) type ( - MAV_TYPE int //nolint:revive - MAV_AUTOPILOT int //nolint:revive - MAV_MODE_FLAG int //nolint:revive - MAV_STATE int //nolint:revive + MAV_TYPE uint32 //nolint:revive + MAV_AUTOPILOT uint32 //nolint:revive + MAV_MODE_FLAG uint32 //nolint:revive + MAV_STATE uint32 //nolint:revive ) type MessageHeartbeat struct { diff --git a/pkg/dialects/all/enum_accelcal_vehicle_pos.go b/pkg/dialects/all/enum_accelcal_vehicle_pos.go index 951319b26..31ee24a59 100644 --- a/pkg/dialects/all/enum_accelcal_vehicle_pos.go +++ b/pkg/dialects/all/enum_accelcal_vehicle_pos.go @@ -6,7 +6,7 @@ import ( "errors" ) -type ACCELCAL_VEHICLE_POS int +type ACCELCAL_VEHICLE_POS uint32 const ( ACCELCAL_VEHICLE_POS_LEVEL ACCELCAL_VEHICLE_POS = 1 diff --git a/pkg/dialects/all/enum_actuator_configuration.go b/pkg/dialects/all/enum_actuator_configuration.go index da269a1f9..ced2bcc11 100644 --- a/pkg/dialects/all/enum_actuator_configuration.go +++ b/pkg/dialects/all/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/all/enum_actuator_output_function.go b/pkg/dialects/all/enum_actuator_output_function.go index 5705d682a..e4c988b94 100644 --- a/pkg/dialects/all/enum_actuator_output_function.go +++ b/pkg/dialects/all/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/all/enum_adsb_altitude_type.go b/pkg/dialects/all/enum_adsb_altitude_type.go index 9798048b6..fd0ba33e0 100644 --- a/pkg/dialects/all/enum_adsb_altitude_type.go +++ b/pkg/dialects/all/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/all/enum_adsb_emitter_type.go b/pkg/dialects/all/enum_adsb_emitter_type.go index 5e4fb650e..513498063 100644 --- a/pkg/dialects/all/enum_adsb_emitter_type.go +++ b/pkg/dialects/all/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/all/enum_adsb_flags.go b/pkg/dialects/all/enum_adsb_flags.go index d8ac11bdb..e70337ac6 100644 --- a/pkg/dialects/all/enum_adsb_flags.go +++ b/pkg/dialects/all/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/all/enum_airspeed_sensor_type.go b/pkg/dialects/all/enum_airspeed_sensor_type.go index 8b507382a..c5afe1aa5 100644 --- a/pkg/dialects/all/enum_airspeed_sensor_type.go +++ b/pkg/dialects/all/enum_airspeed_sensor_type.go @@ -7,7 +7,7 @@ import ( ) // Types of airspeed sensor/data. May be be used in AIRSPEED message to estimate accuracy of indicated speed. -type AIRSPEED_SENSOR_TYPE int +type AIRSPEED_SENSOR_TYPE uint32 const ( // Airspeed sensor type unknown/not supplied. diff --git a/pkg/dialects/all/enum_ais_flags.go b/pkg/dialects/all/enum_ais_flags.go index 294dcf1d1..64afd318f 100644 --- a/pkg/dialects/all/enum_ais_flags.go +++ b/pkg/dialects/all/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/all/enum_ais_nav_status.go b/pkg/dialects/all/enum_ais_nav_status.go index 027751291..80a91b23b 100644 --- a/pkg/dialects/all/enum_ais_nav_status.go +++ b/pkg/dialects/all/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/all/enum_ais_type.go b/pkg/dialects/all/enum_ais_type.go index d5e2c206a..f645b3b8b 100644 --- a/pkg/dialects/all/enum_ais_type.go +++ b/pkg/dialects/all/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/all/enum_attitude_target_typemask.go b/pkg/dialects/all/enum_attitude_target_typemask.go index bd956f5f4..213bc0945 100644 --- a/pkg/dialects/all/enum_attitude_target_typemask.go +++ b/pkg/dialects/all/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/all/enum_autotune_axis.go b/pkg/dialects/all/enum_autotune_axis.go index 4fac04c4c..5846f9e0b 100644 --- a/pkg/dialects/all/enum_autotune_axis.go +++ b/pkg/dialects/all/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/all/enum_camera_cap_flags.go b/pkg/dialects/all/enum_camera_cap_flags.go index cb623e421..4dde80d17 100644 --- a/pkg/dialects/all/enum_camera_cap_flags.go +++ b/pkg/dialects/all/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/all/enum_camera_feedback_flags.go b/pkg/dialects/all/enum_camera_feedback_flags.go index e6ad21b6c..a4835701a 100644 --- a/pkg/dialects/all/enum_camera_feedback_flags.go +++ b/pkg/dialects/all/enum_camera_feedback_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type CAMERA_FEEDBACK_FLAGS int +type CAMERA_FEEDBACK_FLAGS uint32 const ( // Shooting photos, not video. diff --git a/pkg/dialects/all/enum_camera_mode.go b/pkg/dialects/all/enum_camera_mode.go index b5092269b..b2f7b4973 100644 --- a/pkg/dialects/all/enum_camera_mode.go +++ b/pkg/dialects/all/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/all/enum_camera_status_types.go b/pkg/dialects/all/enum_camera_status_types.go index 43781a734..98988a68a 100644 --- a/pkg/dialects/all/enum_camera_status_types.go +++ b/pkg/dialects/all/enum_camera_status_types.go @@ -6,7 +6,7 @@ import ( "errors" ) -type CAMERA_STATUS_TYPES int +type CAMERA_STATUS_TYPES uint32 const ( // Camera heartbeat, announce camera component ID at 1Hz. diff --git a/pkg/dialects/all/enum_camera_tracking_mode.go b/pkg/dialects/all/enum_camera_tracking_mode.go index 1bcd8d633..5033f47cd 100644 --- a/pkg/dialects/all/enum_camera_tracking_mode.go +++ b/pkg/dialects/all/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/all/enum_camera_tracking_status_flags.go b/pkg/dialects/all/enum_camera_tracking_status_flags.go index 14ee3ed73..e9bd6bd05 100644 --- a/pkg/dialects/all/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/all/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/all/enum_camera_tracking_target_data.go b/pkg/dialects/all/enum_camera_tracking_target_data.go index 0444f228c..5c27afe11 100644 --- a/pkg/dialects/all/enum_camera_tracking_target_data.go +++ b/pkg/dialects/all/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/all/enum_camera_zoom_type.go b/pkg/dialects/all/enum_camera_zoom_type.go index 88bce4a14..87fb2ba2b 100644 --- a/pkg/dialects/all/enum_camera_zoom_type.go +++ b/pkg/dialects/all/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/all/enum_cellular_config_response.go b/pkg/dialects/all/enum_cellular_config_response.go index e8e4d0d07..f770b7a69 100644 --- a/pkg/dialects/all/enum_cellular_config_response.go +++ b/pkg/dialects/all/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/all/enum_cellular_network_failed_reason.go b/pkg/dialects/all/enum_cellular_network_failed_reason.go index 999b0d74f..71681ea57 100644 --- a/pkg/dialects/all/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/all/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/all/enum_cellular_network_radio_type.go b/pkg/dialects/all/enum_cellular_network_radio_type.go index c905fdf3d..9907c36e0 100644 --- a/pkg/dialects/all/enum_cellular_network_radio_type.go +++ b/pkg/dialects/all/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/all/enum_cellular_status_flag.go b/pkg/dialects/all/enum_cellular_status_flag.go index 6925ef31f..f14711366 100644 --- a/pkg/dialects/all/enum_cellular_status_flag.go +++ b/pkg/dialects/all/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/all/enum_comp_metadata_type.go b/pkg/dialects/all/enum_comp_metadata_type.go index cbe3a1c44..177cc6850 100644 --- a/pkg/dialects/all/enum_comp_metadata_type.go +++ b/pkg/dialects/all/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/all/enum_copter_mode.go b/pkg/dialects/all/enum_copter_mode.go index 17692badf..8ab2941ec 100644 --- a/pkg/dialects/all/enum_copter_mode.go +++ b/pkg/dialects/all/enum_copter_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of copter flight modes for custom_mode field of heartbeat. -type COPTER_MODE int +type COPTER_MODE uint32 const ( COPTER_MODE_STABILIZE COPTER_MODE = 0 diff --git a/pkg/dialects/all/enum_deepstall_stage.go b/pkg/dialects/all/enum_deepstall_stage.go index 3d10eb957..1f8bc8738 100644 --- a/pkg/dialects/all/enum_deepstall_stage.go +++ b/pkg/dialects/all/enum_deepstall_stage.go @@ -7,7 +7,7 @@ import ( ) // Deepstall flight stage. -type DEEPSTALL_STAGE int +type DEEPSTALL_STAGE uint32 const ( // Flying to the landing point. diff --git a/pkg/dialects/all/enum_device_op_bustype.go b/pkg/dialects/all/enum_device_op_bustype.go index 5f521349b..4e15b530e 100644 --- a/pkg/dialects/all/enum_device_op_bustype.go +++ b/pkg/dialects/all/enum_device_op_bustype.go @@ -7,7 +7,7 @@ import ( ) // Bus types for device operations. -type DEVICE_OP_BUSTYPE int +type DEVICE_OP_BUSTYPE uint32 const ( // I2C Device operation. diff --git a/pkg/dialects/all/enum_ekf_status_flags.go b/pkg/dialects/all/enum_ekf_status_flags.go index 8e42b5690..3d52f99e4 100644 --- a/pkg/dialects/all/enum_ekf_status_flags.go +++ b/pkg/dialects/all/enum_ekf_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in EKF_STATUS message. -type EKF_STATUS_FLAGS int +type EKF_STATUS_FLAGS uint32 const ( // Set if EKF's attitude estimate is good. diff --git a/pkg/dialects/all/enum_esc_connection_type.go b/pkg/dialects/all/enum_esc_connection_type.go index eb97273a7..5b32d4e51 100644 --- a/pkg/dialects/all/enum_esc_connection_type.go +++ b/pkg/dialects/all/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/all/enum_esc_failure_flags.go b/pkg/dialects/all/enum_esc_failure_flags.go index a33e09d5e..eca0b5670 100644 --- a/pkg/dialects/all/enum_esc_failure_flags.go +++ b/pkg/dialects/all/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/all/enum_estimator_status_flags.go b/pkg/dialects/all/enum_estimator_status_flags.go index f48aa7d15..700b54dbb 100644 --- a/pkg/dialects/all/enum_estimator_status_flags.go +++ b/pkg/dialects/all/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/all/enum_failure_type.go b/pkg/dialects/all/enum_failure_type.go index 90c50348a..6287002d7 100644 --- a/pkg/dialects/all/enum_failure_type.go +++ b/pkg/dialects/all/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/all/enum_failure_unit.go b/pkg/dialects/all/enum_failure_unit.go index 9ef08c2a0..00b2d7438 100644 --- a/pkg/dialects/all/enum_failure_unit.go +++ b/pkg/dialects/all/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/all/enum_fence_action.go b/pkg/dialects/all/enum_fence_action.go index dbbec9bab..52c1671ba 100644 --- a/pkg/dialects/all/enum_fence_action.go +++ b/pkg/dialects/all/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/all/enum_fence_breach.go b/pkg/dialects/all/enum_fence_breach.go index 1148785e3..eced5db3d 100644 --- a/pkg/dialects/all/enum_fence_breach.go +++ b/pkg/dialects/all/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/all/enum_fence_mitigate.go b/pkg/dialects/all/enum_fence_mitigate.go index 4a4c07680..07352ec7a 100644 --- a/pkg/dialects/all/enum_fence_mitigate.go +++ b/pkg/dialects/all/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/all/enum_firmware_version_type.go b/pkg/dialects/all/enum_firmware_version_type.go index dc6a654ff..e2863cb9c 100644 --- a/pkg/dialects/all/enum_firmware_version_type.go +++ b/pkg/dialects/all/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/all/enum_gimbal_axis.go b/pkg/dialects/all/enum_gimbal_axis.go index 39f53ef88..954f0601f 100644 --- a/pkg/dialects/all/enum_gimbal_axis.go +++ b/pkg/dialects/all/enum_gimbal_axis.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GIMBAL_AXIS int +type GIMBAL_AXIS uint32 const ( // Gimbal yaw axis. diff --git a/pkg/dialects/all/enum_gimbal_axis_calibration_required.go b/pkg/dialects/all/enum_gimbal_axis_calibration_required.go index 0a70447b0..d8eac55a8 100644 --- a/pkg/dialects/all/enum_gimbal_axis_calibration_required.go +++ b/pkg/dialects/all/enum_gimbal_axis_calibration_required.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GIMBAL_AXIS_CALIBRATION_REQUIRED int +type GIMBAL_AXIS_CALIBRATION_REQUIRED uint32 const ( // Whether or not this axis requires calibration is unknown at this time. diff --git a/pkg/dialects/all/enum_gimbal_axis_calibration_status.go b/pkg/dialects/all/enum_gimbal_axis_calibration_status.go index 86d43bfe3..ac34fe1b9 100644 --- a/pkg/dialects/all/enum_gimbal_axis_calibration_status.go +++ b/pkg/dialects/all/enum_gimbal_axis_calibration_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GIMBAL_AXIS_CALIBRATION_STATUS int +type GIMBAL_AXIS_CALIBRATION_STATUS uint32 const ( // Axis calibration is in progress. diff --git a/pkg/dialects/all/enum_gimbal_device_cap_flags.go b/pkg/dialects/all/enum_gimbal_device_cap_flags.go index 43b060934..a3ac418d9 100644 --- a/pkg/dialects/all/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/all/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/all/enum_gimbal_device_error_flags.go b/pkg/dialects/all/enum_gimbal_device_error_flags.go index 0f803a173..7d7ebb66d 100644 --- a/pkg/dialects/all/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/all/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/all/enum_gimbal_device_flags.go b/pkg/dialects/all/enum_gimbal_device_flags.go index 57f3a0e62..49b0d03fa 100644 --- a/pkg/dialects/all/enum_gimbal_device_flags.go +++ b/pkg/dialects/all/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/all/enum_gimbal_manager_cap_flags.go b/pkg/dialects/all/enum_gimbal_manager_cap_flags.go index 2c5bd44cf..781f1ffaf 100644 --- a/pkg/dialects/all/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/all/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/all/enum_gimbal_manager_flags.go b/pkg/dialects/all/enum_gimbal_manager_flags.go index 8944ffe4b..c63d4f8ee 100644 --- a/pkg/dialects/all/enum_gimbal_manager_flags.go +++ b/pkg/dialects/all/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/all/enum_gopro_burst_rate.go b/pkg/dialects/all/enum_gopro_burst_rate.go index d66e3b1f0..d29356e9d 100644 --- a/pkg/dialects/all/enum_gopro_burst_rate.go +++ b/pkg/dialects/all/enum_gopro_burst_rate.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_BURST_RATE int +type GOPRO_BURST_RATE uint32 const ( // 3 Shots / 1 Second. diff --git a/pkg/dialects/all/enum_gopro_capture_mode.go b/pkg/dialects/all/enum_gopro_capture_mode.go index 045aabacb..c910dcae7 100644 --- a/pkg/dialects/all/enum_gopro_capture_mode.go +++ b/pkg/dialects/all/enum_gopro_capture_mode.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_CAPTURE_MODE int +type GOPRO_CAPTURE_MODE uint32 const ( // Video mode. diff --git a/pkg/dialects/all/enum_gopro_charging.go b/pkg/dialects/all/enum_gopro_charging.go index 78a949400..593688c14 100644 --- a/pkg/dialects/all/enum_gopro_charging.go +++ b/pkg/dialects/all/enum_gopro_charging.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_CHARGING int +type GOPRO_CHARGING uint32 const ( // Charging disabled. diff --git a/pkg/dialects/all/enum_gopro_command.go b/pkg/dialects/all/enum_gopro_command.go index 5a7e6c09c..aa6a85eb4 100644 --- a/pkg/dialects/all/enum_gopro_command.go +++ b/pkg/dialects/all/enum_gopro_command.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_COMMAND int +type GOPRO_COMMAND uint32 const ( // (Get/Set). diff --git a/pkg/dialects/all/enum_gopro_field_of_view.go b/pkg/dialects/all/enum_gopro_field_of_view.go index 6b80697e3..0f4c6a7ad 100644 --- a/pkg/dialects/all/enum_gopro_field_of_view.go +++ b/pkg/dialects/all/enum_gopro_field_of_view.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_FIELD_OF_VIEW int +type GOPRO_FIELD_OF_VIEW uint32 const ( // 0x00: Wide. diff --git a/pkg/dialects/all/enum_gopro_frame_rate.go b/pkg/dialects/all/enum_gopro_frame_rate.go index ca47e65c4..9139c1d2d 100644 --- a/pkg/dialects/all/enum_gopro_frame_rate.go +++ b/pkg/dialects/all/enum_gopro_frame_rate.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_FRAME_RATE int +type GOPRO_FRAME_RATE uint32 const ( // 12 FPS. diff --git a/pkg/dialects/all/enum_gopro_heartbeat_flags.go b/pkg/dialects/all/enum_gopro_heartbeat_flags.go index 61c679c34..2e757796e 100644 --- a/pkg/dialects/all/enum_gopro_heartbeat_flags.go +++ b/pkg/dialects/all/enum_gopro_heartbeat_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_HEARTBEAT_FLAGS int +type GOPRO_HEARTBEAT_FLAGS uint32 const ( // GoPro is currently recording. diff --git a/pkg/dialects/all/enum_gopro_heartbeat_status.go b/pkg/dialects/all/enum_gopro_heartbeat_status.go index e858a9dea..ccbb2713f 100644 --- a/pkg/dialects/all/enum_gopro_heartbeat_status.go +++ b/pkg/dialects/all/enum_gopro_heartbeat_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_HEARTBEAT_STATUS int +type GOPRO_HEARTBEAT_STATUS uint32 const ( // No GoPro connected. diff --git a/pkg/dialects/all/enum_gopro_model.go b/pkg/dialects/all/enum_gopro_model.go index 01e2a3832..56048d934 100644 --- a/pkg/dialects/all/enum_gopro_model.go +++ b/pkg/dialects/all/enum_gopro_model.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_MODEL int +type GOPRO_MODEL uint32 const ( // Unknown gopro model. diff --git a/pkg/dialects/all/enum_gopro_photo_resolution.go b/pkg/dialects/all/enum_gopro_photo_resolution.go index 1a7c604f1..28ddff17f 100644 --- a/pkg/dialects/all/enum_gopro_photo_resolution.go +++ b/pkg/dialects/all/enum_gopro_photo_resolution.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PHOTO_RESOLUTION int +type GOPRO_PHOTO_RESOLUTION uint32 const ( // 5MP Medium. diff --git a/pkg/dialects/all/enum_gopro_protune_colour.go b/pkg/dialects/all/enum_gopro_protune_colour.go index 2e1c60fe6..2ff16490c 100644 --- a/pkg/dialects/all/enum_gopro_protune_colour.go +++ b/pkg/dialects/all/enum_gopro_protune_colour.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_COLOUR int +type GOPRO_PROTUNE_COLOUR uint32 const ( // Auto. diff --git a/pkg/dialects/all/enum_gopro_protune_exposure.go b/pkg/dialects/all/enum_gopro_protune_exposure.go index feb344d93..a5a940fbb 100644 --- a/pkg/dialects/all/enum_gopro_protune_exposure.go +++ b/pkg/dialects/all/enum_gopro_protune_exposure.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_EXPOSURE int +type GOPRO_PROTUNE_EXPOSURE uint32 const ( // -5.0 EV (Hero 3+ Only). diff --git a/pkg/dialects/all/enum_gopro_protune_gain.go b/pkg/dialects/all/enum_gopro_protune_gain.go index 3e477a970..52cb866de 100644 --- a/pkg/dialects/all/enum_gopro_protune_gain.go +++ b/pkg/dialects/all/enum_gopro_protune_gain.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_GAIN int +type GOPRO_PROTUNE_GAIN uint32 const ( // ISO 400. diff --git a/pkg/dialects/all/enum_gopro_protune_sharpness.go b/pkg/dialects/all/enum_gopro_protune_sharpness.go index ff4686e56..af6f93875 100644 --- a/pkg/dialects/all/enum_gopro_protune_sharpness.go +++ b/pkg/dialects/all/enum_gopro_protune_sharpness.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_SHARPNESS int +type GOPRO_PROTUNE_SHARPNESS uint32 const ( // Low Sharpness. diff --git a/pkg/dialects/all/enum_gopro_protune_white_balance.go b/pkg/dialects/all/enum_gopro_protune_white_balance.go index 58d6629f8..a954c7ffc 100644 --- a/pkg/dialects/all/enum_gopro_protune_white_balance.go +++ b/pkg/dialects/all/enum_gopro_protune_white_balance.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_WHITE_BALANCE int +type GOPRO_PROTUNE_WHITE_BALANCE uint32 const ( // Auto. diff --git a/pkg/dialects/all/enum_gopro_request_status.go b/pkg/dialects/all/enum_gopro_request_status.go index 9a06e122a..d50d405aa 100644 --- a/pkg/dialects/all/enum_gopro_request_status.go +++ b/pkg/dialects/all/enum_gopro_request_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_REQUEST_STATUS int +type GOPRO_REQUEST_STATUS uint32 const ( // The write message with ID indicated succeeded. diff --git a/pkg/dialects/all/enum_gopro_resolution.go b/pkg/dialects/all/enum_gopro_resolution.go index bff8f3b1a..c17360e48 100644 --- a/pkg/dialects/all/enum_gopro_resolution.go +++ b/pkg/dialects/all/enum_gopro_resolution.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_RESOLUTION int +type GOPRO_RESOLUTION uint32 const ( // 848 x 480 (480p). diff --git a/pkg/dialects/all/enum_gopro_video_settings_flags.go b/pkg/dialects/all/enum_gopro_video_settings_flags.go index 91b65a4a7..3588d7808 100644 --- a/pkg/dialects/all/enum_gopro_video_settings_flags.go +++ b/pkg/dialects/all/enum_gopro_video_settings_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_VIDEO_SETTINGS_FLAGS int +type GOPRO_VIDEO_SETTINGS_FLAGS uint32 const ( // 0=NTSC, 1=PAL. diff --git a/pkg/dialects/all/enum_gps_fix_type.go b/pkg/dialects/all/enum_gps_fix_type.go index 8c9920c72..8b3665e80 100644 --- a/pkg/dialects/all/enum_gps_fix_type.go +++ b/pkg/dialects/all/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/all/enum_gps_input_ignore_flags.go b/pkg/dialects/all/enum_gps_input_ignore_flags.go index 9e50dfb39..8f246562f 100644 --- a/pkg/dialects/all/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/all/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/all/enum_gripper_actions.go b/pkg/dialects/all/enum_gripper_actions.go index 4551ea0e4..12b6c53da 100644 --- a/pkg/dialects/all/enum_gripper_actions.go +++ b/pkg/dialects/all/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/all/enum_gsm_link_type.go b/pkg/dialects/all/enum_gsm_link_type.go index a5a59eba9..e7e42079a 100644 --- a/pkg/dialects/all/enum_gsm_link_type.go +++ b/pkg/dialects/all/enum_gsm_link_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GSM_LINK_TYPE int +type GSM_LINK_TYPE uint32 const ( // no service diff --git a/pkg/dialects/all/enum_gsm_modem_type.go b/pkg/dialects/all/enum_gsm_modem_type.go index 29990eabf..ffadf615a 100644 --- a/pkg/dialects/all/enum_gsm_modem_type.go +++ b/pkg/dialects/all/enum_gsm_modem_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GSM_MODEM_TYPE int +type GSM_MODEM_TYPE uint32 const ( // not specified diff --git a/pkg/dialects/all/enum_heading_type.go b/pkg/dialects/all/enum_heading_type.go index 6ffff7227..873337a95 100644 --- a/pkg/dialects/all/enum_heading_type.go +++ b/pkg/dialects/all/enum_heading_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type HEADING_TYPE int +type HEADING_TYPE uint32 const ( HEADING_TYPE_COURSE_OVER_GROUND HEADING_TYPE = 0 diff --git a/pkg/dialects/all/enum_highres_imu_updated_flags.go b/pkg/dialects/all/enum_highres_imu_updated_flags.go index a11f0044a..0bd83fd2f 100644 --- a/pkg/dialects/all/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/all/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/all/enum_hil_sensor_updated_flags.go b/pkg/dialects/all/enum_hil_sensor_updated_flags.go index c9e19677c..14732f316 100644 --- a/pkg/dialects/all/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/all/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/all/enum_hl_failure_flag.go b/pkg/dialects/all/enum_hl_failure_flag.go index 09c98007e..251c696f3 100644 --- a/pkg/dialects/all/enum_hl_failure_flag.go +++ b/pkg/dialects/all/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/all/enum_icarous_fms_state.go b/pkg/dialects/all/enum_icarous_fms_state.go index 46fdd3601..3998e0883 100644 --- a/pkg/dialects/all/enum_icarous_fms_state.go +++ b/pkg/dialects/all/enum_icarous_fms_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type ICAROUS_FMS_STATE int +type ICAROUS_FMS_STATE uint32 const ( ICAROUS_FMS_STATE_IDLE ICAROUS_FMS_STATE = 0 diff --git a/pkg/dialects/all/enum_icarous_track_band_types.go b/pkg/dialects/all/enum_icarous_track_band_types.go index acbb1ec5a..e0bdda62d 100644 --- a/pkg/dialects/all/enum_icarous_track_band_types.go +++ b/pkg/dialects/all/enum_icarous_track_band_types.go @@ -6,7 +6,7 @@ import ( "errors" ) -type ICAROUS_TRACK_BAND_TYPES int +type ICAROUS_TRACK_BAND_TYPES uint32 const ( ICAROUS_TRACK_BAND_TYPE_NONE ICAROUS_TRACK_BAND_TYPES = 0 diff --git a/pkg/dialects/all/enum_landing_target_type.go b/pkg/dialects/all/enum_landing_target_type.go index 479a01de7..7fcf0e0b1 100644 --- a/pkg/dialects/all/enum_landing_target_type.go +++ b/pkg/dialects/all/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/all/enum_led_control_pattern.go b/pkg/dialects/all/enum_led_control_pattern.go index 3a71183d0..a64b79e8e 100644 --- a/pkg/dialects/all/enum_led_control_pattern.go +++ b/pkg/dialects/all/enum_led_control_pattern.go @@ -6,7 +6,7 @@ import ( "errors" ) -type LED_CONTROL_PATTERN int +type LED_CONTROL_PATTERN uint32 const ( // LED patterns off (return control to regular vehicle control). diff --git a/pkg/dialects/all/enum_limit_module.go b/pkg/dialects/all/enum_limit_module.go index ada60eba1..5e6a30d50 100644 --- a/pkg/dialects/all/enum_limit_module.go +++ b/pkg/dialects/all/enum_limit_module.go @@ -6,7 +6,7 @@ import ( "errors" ) -type LIMIT_MODULE int +type LIMIT_MODULE uint32 const ( // Pre-initialization. diff --git a/pkg/dialects/all/enum_limits_state.go b/pkg/dialects/all/enum_limits_state.go index ef14bcdc8..c190b6655 100644 --- a/pkg/dialects/all/enum_limits_state.go +++ b/pkg/dialects/all/enum_limits_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type LIMITS_STATE int +type LIMITS_STATE uint32 const ( // Pre-initialization. diff --git a/pkg/dialects/all/enum_mag_cal_status.go b/pkg/dialects/all/enum_mag_cal_status.go index f8a377318..8e4d6c472 100644 --- a/pkg/dialects/all/enum_mag_cal_status.go +++ b/pkg/dialects/all/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/all/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/all/enum_mav_arm_auth_denied_reason.go index 9d2c8ed66..0810fd674 100644 --- a/pkg/dialects/all/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/all/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/all/enum_mav_autopilot.go b/pkg/dialects/all/enum_mav_autopilot.go index 3cbc49844..a1b809ccf 100644 --- a/pkg/dialects/all/enum_mav_autopilot.go +++ b/pkg/dialects/all/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/all/enum_mav_avss_command_failure_reason.go b/pkg/dialects/all/enum_mav_avss_command_failure_reason.go index 565d87c31..09d17451f 100644 --- a/pkg/dialects/all/enum_mav_avss_command_failure_reason.go +++ b/pkg/dialects/all/enum_mav_avss_command_failure_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_AVSS_COMMAND_FAILURE_REASON int +type MAV_AVSS_COMMAND_FAILURE_REASON uint32 const ( // AVSS defined command failure reason. PRS not steady. diff --git a/pkg/dialects/all/enum_mav_battery_charge_state.go b/pkg/dialects/all/enum_mav_battery_charge_state.go index 74326e09a..67aaff47f 100644 --- a/pkg/dialects/all/enum_mav_battery_charge_state.go +++ b/pkg/dialects/all/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/all/enum_mav_battery_fault.go b/pkg/dialects/all/enum_mav_battery_fault.go index a93882b86..91fef4802 100644 --- a/pkg/dialects/all/enum_mav_battery_fault.go +++ b/pkg/dialects/all/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/all/enum_mav_battery_function.go b/pkg/dialects/all/enum_mav_battery_function.go index ac4b63c69..75a6b337a 100644 --- a/pkg/dialects/all/enum_mav_battery_function.go +++ b/pkg/dialects/all/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/all/enum_mav_battery_mode.go b/pkg/dialects/all/enum_mav_battery_mode.go index 57b538f0f..9e8873d04 100644 --- a/pkg/dialects/all/enum_mav_battery_mode.go +++ b/pkg/dialects/all/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/all/enum_mav_battery_type.go b/pkg/dialects/all/enum_mav_battery_type.go index 63f8baada..24aa4141b 100644 --- a/pkg/dialects/all/enum_mav_battery_type.go +++ b/pkg/dialects/all/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/all/enum_mav_cmd.go b/pkg/dialects/all/enum_mav_cmd.go index 41d83cfa5..23915db1a 100644 --- a/pkg/dialects/all/enum_mav_cmd.go +++ b/pkg/dialects/all/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/all/enum_mav_cmd_ack.go b/pkg/dialects/all/enum_mav_cmd_ack.go index f19007657..18e7be40b 100644 --- a/pkg/dialects/all/enum_mav_cmd_ack.go +++ b/pkg/dialects/all/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/all/enum_mav_cmd_do_aux_function_switch_level.go b/pkg/dialects/all/enum_mav_cmd_do_aux_function_switch_level.go index c7b83ea55..82ab67cda 100644 --- a/pkg/dialects/all/enum_mav_cmd_do_aux_function_switch_level.go +++ b/pkg/dialects/all/enum_mav_cmd_do_aux_function_switch_level.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL int +type MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL uint32 const ( // Switch Low. diff --git a/pkg/dialects/all/enum_mav_collision_action.go b/pkg/dialects/all/enum_mav_collision_action.go index 3e84e4d8f..8fdcd33ff 100644 --- a/pkg/dialects/all/enum_mav_collision_action.go +++ b/pkg/dialects/all/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/all/enum_mav_collision_src.go b/pkg/dialects/all/enum_mav_collision_src.go index f56df295b..945bafabd 100644 --- a/pkg/dialects/all/enum_mav_collision_src.go +++ b/pkg/dialects/all/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/all/enum_mav_collision_threat_level.go b/pkg/dialects/all/enum_mav_collision_threat_level.go index 8d15a283a..a2234cff7 100644 --- a/pkg/dialects/all/enum_mav_collision_threat_level.go +++ b/pkg/dialects/all/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/all/enum_mav_component.go b/pkg/dialects/all/enum_mav_component.go index 65885a277..305c62e06 100644 --- a/pkg/dialects/all/enum_mav_component.go +++ b/pkg/dialects/all/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/all/enum_mav_data_stream.go b/pkg/dialects/all/enum_mav_data_stream.go index 9f9c736e2..d302e863a 100644 --- a/pkg/dialects/all/enum_mav_data_stream.go +++ b/pkg/dialects/all/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/all/enum_mav_distance_sensor.go b/pkg/dialects/all/enum_mav_distance_sensor.go index 6f9e68393..40bce911b 100644 --- a/pkg/dialects/all/enum_mav_distance_sensor.go +++ b/pkg/dialects/all/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/all/enum_mav_do_reposition_flags.go b/pkg/dialects/all/enum_mav_do_reposition_flags.go index b4cee87bf..7495d8c50 100644 --- a/pkg/dialects/all/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/all/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/all/enum_mav_estimator_type.go b/pkg/dialects/all/enum_mav_estimator_type.go index f9ddb5d8f..014457b79 100644 --- a/pkg/dialects/all/enum_mav_estimator_type.go +++ b/pkg/dialects/all/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/all/enum_mav_event_current_sequence_flags.go b/pkg/dialects/all/enum_mav_event_current_sequence_flags.go index 6105234a2..07309162c 100644 --- a/pkg/dialects/all/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/all/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/all/enum_mav_event_error_reason.go b/pkg/dialects/all/enum_mav_event_error_reason.go index c3c911ac7..a61d98a74 100644 --- a/pkg/dialects/all/enum_mav_event_error_reason.go +++ b/pkg/dialects/all/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/all/enum_mav_frame.go b/pkg/dialects/all/enum_mav_frame.go index c81c32a6e..bf0b3f74a 100644 --- a/pkg/dialects/all/enum_mav_frame.go +++ b/pkg/dialects/all/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/all/enum_mav_generator_status_flag.go b/pkg/dialects/all/enum_mav_generator_status_flag.go index 41566d338..70fdad21a 100644 --- a/pkg/dialects/all/enum_mav_generator_status_flag.go +++ b/pkg/dialects/all/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/all/enum_mav_goto.go b/pkg/dialects/all/enum_mav_goto.go index e88926608..a2101902c 100644 --- a/pkg/dialects/all/enum_mav_goto.go +++ b/pkg/dialects/all/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/all/enum_mav_landed_state.go b/pkg/dialects/all/enum_mav_landed_state.go index fbe645939..f4bc9f2cb 100644 --- a/pkg/dialects/all/enum_mav_landed_state.go +++ b/pkg/dialects/all/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/all/enum_mav_mission_result.go b/pkg/dialects/all/enum_mav_mission_result.go index 4774bf9ea..cbe409b02 100644 --- a/pkg/dialects/all/enum_mav_mission_result.go +++ b/pkg/dialects/all/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/all/enum_mav_mission_type.go b/pkg/dialects/all/enum_mav_mission_type.go index b13c27b4f..7b732d92f 100644 --- a/pkg/dialects/all/enum_mav_mission_type.go +++ b/pkg/dialects/all/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/all/enum_mav_mode.go b/pkg/dialects/all/enum_mav_mode.go index 62b15d91c..3fa463568 100644 --- a/pkg/dialects/all/enum_mav_mode.go +++ b/pkg/dialects/all/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/all/enum_mav_mode_flag.go b/pkg/dialects/all/enum_mav_mode_flag.go index 4278f6205..216badfc6 100644 --- a/pkg/dialects/all/enum_mav_mode_flag.go +++ b/pkg/dialects/all/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/all/enum_mav_mode_flag_decode_position.go b/pkg/dialects/all/enum_mav_mode_flag_decode_position.go index 45cea8ab9..b242e3578 100644 --- a/pkg/dialects/all/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/all/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/all/enum_mav_mode_gimbal.go b/pkg/dialects/all/enum_mav_mode_gimbal.go index 3715ca62d..caf31d17b 100644 --- a/pkg/dialects/all/enum_mav_mode_gimbal.go +++ b/pkg/dialects/all/enum_mav_mode_gimbal.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_MODE_GIMBAL int +type MAV_MODE_GIMBAL uint32 const ( // Gimbal is powered on but has not started initializing yet. diff --git a/pkg/dialects/all/enum_mav_mount_mode.go b/pkg/dialects/all/enum_mav_mount_mode.go index 86995bb83..62773f727 100644 --- a/pkg/dialects/all/enum_mav_mount_mode.go +++ b/pkg/dialects/all/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/all/enum_mav_odid_auth_type.go b/pkg/dialects/all/enum_mav_odid_auth_type.go index 578dc6c5a..5b70e4f48 100644 --- a/pkg/dialects/all/enum_mav_odid_auth_type.go +++ b/pkg/dialects/all/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/all/enum_mav_odid_category_eu.go b/pkg/dialects/all/enum_mav_odid_category_eu.go index ae456f7f1..0c8f7f84f 100644 --- a/pkg/dialects/all/enum_mav_odid_category_eu.go +++ b/pkg/dialects/all/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/all/enum_mav_odid_class_eu.go b/pkg/dialects/all/enum_mav_odid_class_eu.go index ab1ac0ba3..d02d40c0c 100644 --- a/pkg/dialects/all/enum_mav_odid_class_eu.go +++ b/pkg/dialects/all/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/all/enum_mav_odid_classification_type.go b/pkg/dialects/all/enum_mav_odid_classification_type.go index 656b4d656..39c545d2b 100644 --- a/pkg/dialects/all/enum_mav_odid_classification_type.go +++ b/pkg/dialects/all/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/all/enum_mav_odid_desc_type.go b/pkg/dialects/all/enum_mav_odid_desc_type.go index e9afbe54b..e5a2e6ebb 100644 --- a/pkg/dialects/all/enum_mav_odid_desc_type.go +++ b/pkg/dialects/all/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/all/enum_mav_odid_height_ref.go b/pkg/dialects/all/enum_mav_odid_height_ref.go index 486095faa..ea6f701f6 100644 --- a/pkg/dialects/all/enum_mav_odid_height_ref.go +++ b/pkg/dialects/all/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/all/enum_mav_odid_hor_acc.go b/pkg/dialects/all/enum_mav_odid_hor_acc.go index 542941c6f..6f6341390 100644 --- a/pkg/dialects/all/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/all/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/all/enum_mav_odid_id_type.go b/pkg/dialects/all/enum_mav_odid_id_type.go index 456333dc4..c9f3d53a1 100644 --- a/pkg/dialects/all/enum_mav_odid_id_type.go +++ b/pkg/dialects/all/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/all/enum_mav_odid_operator_id_type.go b/pkg/dialects/all/enum_mav_odid_operator_id_type.go index b81fb790d..3748d5a38 100644 --- a/pkg/dialects/all/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/all/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/all/enum_mav_odid_operator_location_type.go b/pkg/dialects/all/enum_mav_odid_operator_location_type.go index f5e51e236..3314729b0 100644 --- a/pkg/dialects/all/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/all/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/all/enum_mav_odid_speed_acc.go b/pkg/dialects/all/enum_mav_odid_speed_acc.go index aec75a083..b7503e554 100644 --- a/pkg/dialects/all/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/all/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/all/enum_mav_odid_status.go b/pkg/dialects/all/enum_mav_odid_status.go index eaadfc169..9a5d099b3 100644 --- a/pkg/dialects/all/enum_mav_odid_status.go +++ b/pkg/dialects/all/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/all/enum_mav_odid_time_acc.go b/pkg/dialects/all/enum_mav_odid_time_acc.go index 7c7b36202..177ea0f9f 100644 --- a/pkg/dialects/all/enum_mav_odid_time_acc.go +++ b/pkg/dialects/all/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/all/enum_mav_odid_ua_type.go b/pkg/dialects/all/enum_mav_odid_ua_type.go index 288a1d6eb..79eb82b83 100644 --- a/pkg/dialects/all/enum_mav_odid_ua_type.go +++ b/pkg/dialects/all/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/all/enum_mav_odid_ver_acc.go b/pkg/dialects/all/enum_mav_odid_ver_acc.go index 235d74a36..d36f13200 100644 --- a/pkg/dialects/all/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/all/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/all/enum_mav_param_ext_type.go b/pkg/dialects/all/enum_mav_param_ext_type.go index e26cff9cf..57c9710f0 100644 --- a/pkg/dialects/all/enum_mav_param_ext_type.go +++ b/pkg/dialects/all/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/all/enum_mav_param_type.go b/pkg/dialects/all/enum_mav_param_type.go index b3060e6fd..8d81cbbf4 100644 --- a/pkg/dialects/all/enum_mav_param_type.go +++ b/pkg/dialects/all/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/all/enum_mav_power_status.go b/pkg/dialects/all/enum_mav_power_status.go index 5f696b349..9f37eb725 100644 --- a/pkg/dialects/all/enum_mav_power_status.go +++ b/pkg/dialects/all/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/all/enum_mav_protocol_capability.go b/pkg/dialects/all/enum_mav_protocol_capability.go index 540f53210..ba0d868d3 100644 --- a/pkg/dialects/all/enum_mav_protocol_capability.go +++ b/pkg/dialects/all/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/all/enum_mav_qshot_mode.go b/pkg/dialects/all/enum_mav_qshot_mode.go index e5719c24e..2f53012f5 100644 --- a/pkg/dialects/all/enum_mav_qshot_mode.go +++ b/pkg/dialects/all/enum_mav_qshot_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible shot modes. -type MAV_QSHOT_MODE int +type MAV_QSHOT_MODE uint32 const ( // Undefined shot mode. Can be used to determine if qshots should be used or not. diff --git a/pkg/dialects/all/enum_mav_remote_log_data_block_commands.go b/pkg/dialects/all/enum_mav_remote_log_data_block_commands.go index 755762712..2628b4157 100644 --- a/pkg/dialects/all/enum_mav_remote_log_data_block_commands.go +++ b/pkg/dialects/all/enum_mav_remote_log_data_block_commands.go @@ -7,7 +7,7 @@ import ( ) // Special ACK block numbers control activation of dataflash log streaming. -type MAV_REMOTE_LOG_DATA_BLOCK_COMMANDS int +type MAV_REMOTE_LOG_DATA_BLOCK_COMMANDS uint32 const ( // UAV to stop sending DataFlash blocks. diff --git a/pkg/dialects/all/enum_mav_remote_log_data_block_statuses.go b/pkg/dialects/all/enum_mav_remote_log_data_block_statuses.go index 41cd1f6fe..71fb9eeed 100644 --- a/pkg/dialects/all/enum_mav_remote_log_data_block_statuses.go +++ b/pkg/dialects/all/enum_mav_remote_log_data_block_statuses.go @@ -7,7 +7,7 @@ import ( ) // Possible remote log data block statuses. -type MAV_REMOTE_LOG_DATA_BLOCK_STATUSES int +type MAV_REMOTE_LOG_DATA_BLOCK_STATUSES uint32 const ( // This block has NOT been received. diff --git a/pkg/dialects/all/enum_mav_result.go b/pkg/dialects/all/enum_mav_result.go index 4966d9153..d904d2c40 100644 --- a/pkg/dialects/all/enum_mav_result.go +++ b/pkg/dialects/all/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/all/enum_mav_roi.go b/pkg/dialects/all/enum_mav_roi.go index 8ded21a91..7eb7ce5a6 100644 --- a/pkg/dialects/all/enum_mav_roi.go +++ b/pkg/dialects/all/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/all/enum_mav_sensor_orientation.go b/pkg/dialects/all/enum_mav_sensor_orientation.go index 95498532d..94c04553b 100644 --- a/pkg/dialects/all/enum_mav_sensor_orientation.go +++ b/pkg/dialects/all/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/all/enum_mav_severity.go b/pkg/dialects/all/enum_mav_severity.go index bd830a1fa..3a6ff33b5 100644 --- a/pkg/dialects/all/enum_mav_severity.go +++ b/pkg/dialects/all/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/all/enum_mav_state.go b/pkg/dialects/all/enum_mav_state.go index 7fccedb26..2147e0f58 100644 --- a/pkg/dialects/all/enum_mav_state.go +++ b/pkg/dialects/all/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/all/enum_mav_storm32_camera_prearm_flags.go b/pkg/dialects/all/enum_mav_storm32_camera_prearm_flags.go index 362334559..b7f41ed64 100644 --- a/pkg/dialects/all/enum_mav_storm32_camera_prearm_flags.go +++ b/pkg/dialects/all/enum_mav_storm32_camera_prearm_flags.go @@ -7,7 +7,7 @@ import ( ) // STorM32 camera prearm check flags. -type MAV_STORM32_CAMERA_PREARM_FLAGS int +type MAV_STORM32_CAMERA_PREARM_FLAGS uint32 const ( // The camera has been found and is connected. diff --git a/pkg/dialects/all/enum_mav_storm32_gimbal_action.go b/pkg/dialects/all/enum_mav_storm32_gimbal_action.go index 222f9d315..61fe8538a 100644 --- a/pkg/dialects/all/enum_mav_storm32_gimbal_action.go +++ b/pkg/dialects/all/enum_mav_storm32_gimbal_action.go @@ -7,7 +7,7 @@ import ( ) // Gimbal actions. -type MAV_STORM32_GIMBAL_ACTION int +type MAV_STORM32_GIMBAL_ACTION uint32 const ( // Trigger the gimbal device to recenter the gimbal. diff --git a/pkg/dialects/all/enum_mav_storm32_gimbal_device_cap_flags.go b/pkg/dialects/all/enum_mav_storm32_gimbal_device_cap_flags.go index 40bc60fea..2363b7b0e 100644 --- a/pkg/dialects/all/enum_mav_storm32_gimbal_device_cap_flags.go +++ b/pkg/dialects/all/enum_mav_storm32_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device capability flags. -type MAV_STORM32_GIMBAL_DEVICE_CAP_FLAGS int +type MAV_STORM32_GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position. diff --git a/pkg/dialects/all/enum_mav_storm32_gimbal_device_error_flags.go b/pkg/dialects/all/enum_mav_storm32_gimbal_device_error_flags.go index debbc5bb8..186a9fe51 100644 --- a/pkg/dialects/all/enum_mav_storm32_gimbal_device_error_flags.go +++ b/pkg/dialects/all/enum_mav_storm32_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device error and condition flags (0 means no error or other condition). -type MAV_STORM32_GIMBAL_DEVICE_ERROR_FLAGS int +type MAV_STORM32_GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/all/enum_mav_storm32_gimbal_device_flags.go b/pkg/dialects/all/enum_mav_storm32_gimbal_device_flags.go index 9f1a067ba..d94f9a9aa 100644 --- a/pkg/dialects/all/enum_mav_storm32_gimbal_device_flags.go +++ b/pkg/dialects/all/enum_mav_storm32_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device operation. Used for setting and reporting, unless specified otherwise. Settings which are in violation of the capability flags are ignored by the gimbal device. -type MAV_STORM32_GIMBAL_DEVICE_FLAGS int +type MAV_STORM32_GIMBAL_DEVICE_FLAGS uint32 const ( // Retracted safe position (no stabilization), takes presedence over NEUTRAL flag. If supported by the gimbal, the angles in the retracted position can be set in addition. diff --git a/pkg/dialects/all/enum_mav_storm32_gimbal_manager_cap_flags.go b/pkg/dialects/all/enum_mav_storm32_gimbal_manager_cap_flags.go index a4c86a78d..28f352946 100644 --- a/pkg/dialects/all/enum_mav_storm32_gimbal_manager_cap_flags.go +++ b/pkg/dialects/all/enum_mav_storm32_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager capability flags. -type MAV_STORM32_GIMBAL_MANAGER_CAP_FLAGS int +type MAV_STORM32_GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // The gimbal manager supports several profiles. diff --git a/pkg/dialects/all/enum_mav_storm32_gimbal_manager_client.go b/pkg/dialects/all/enum_mav_storm32_gimbal_manager_client.go index 301e20739..20e204ef3 100644 --- a/pkg/dialects/all/enum_mav_storm32_gimbal_manager_client.go +++ b/pkg/dialects/all/enum_mav_storm32_gimbal_manager_client.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager client ID. In a prioritizing profile, the priorities are determined by the implementation; they could e.g. be custom1 > onboard > GCS > autopilot/camera > GCS2 > custom2. -type MAV_STORM32_GIMBAL_MANAGER_CLIENT int +type MAV_STORM32_GIMBAL_MANAGER_CLIENT uint32 const ( // For convenience. diff --git a/pkg/dialects/all/enum_mav_storm32_gimbal_manager_flags.go b/pkg/dialects/all/enum_mav_storm32_gimbal_manager_flags.go index 6c3025195..9dd896d9e 100644 --- a/pkg/dialects/all/enum_mav_storm32_gimbal_manager_flags.go +++ b/pkg/dialects/all/enum_mav_storm32_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal manager operation. Used for setting and reporting, unless specified otherwise. If a setting is accepted by the gimbal manger, is reported in the STORM32_GIMBAL_MANAGER_STATUS message. -type MAV_STORM32_GIMBAL_MANAGER_FLAGS int +type MAV_STORM32_GIMBAL_MANAGER_FLAGS uint32 const ( // 0 = ignore. diff --git a/pkg/dialects/all/enum_mav_storm32_gimbal_manager_profile.go b/pkg/dialects/all/enum_mav_storm32_gimbal_manager_profile.go index b02abdfdc..a826a861b 100644 --- a/pkg/dialects/all/enum_mav_storm32_gimbal_manager_profile.go +++ b/pkg/dialects/all/enum_mav_storm32_gimbal_manager_profile.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager profiles. Only standard profiles are defined. Any implementation can define it's own profile in addition, and should use enum values > 16. -type MAV_STORM32_GIMBAL_MANAGER_PROFILE int +type MAV_STORM32_GIMBAL_MANAGER_PROFILE uint32 const ( // Default profile. Implementation specific. diff --git a/pkg/dialects/all/enum_mav_storm32_gimbal_manager_setup_flags.go b/pkg/dialects/all/enum_mav_storm32_gimbal_manager_setup_flags.go index 83e8b44c7..cd7e7bddd 100644 --- a/pkg/dialects/all/enum_mav_storm32_gimbal_manager_setup_flags.go +++ b/pkg/dialects/all/enum_mav_storm32_gimbal_manager_setup_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal manager set up. Used for setting and reporting, unless specified otherwise. -type MAV_STORM32_GIMBAL_MANAGER_SETUP_FLAGS int +type MAV_STORM32_GIMBAL_MANAGER_SETUP_FLAGS uint32 const ( // Enable gimbal manager. This flag is only for setting, is not reported. diff --git a/pkg/dialects/all/enum_mav_storm32_gimbal_prearm_flags.go b/pkg/dialects/all/enum_mav_storm32_gimbal_prearm_flags.go index 3c37227c5..c8043b512 100644 --- a/pkg/dialects/all/enum_mav_storm32_gimbal_prearm_flags.go +++ b/pkg/dialects/all/enum_mav_storm32_gimbal_prearm_flags.go @@ -7,7 +7,7 @@ import ( ) // STorM32 gimbal prearm check flags. -type MAV_STORM32_GIMBAL_PREARM_FLAGS int +type MAV_STORM32_GIMBAL_PREARM_FLAGS uint32 const ( // STorM32 gimbal is in normal state. diff --git a/pkg/dialects/all/enum_mav_storm32_tunnel_payload_type.go b/pkg/dialects/all/enum_mav_storm32_tunnel_payload_type.go index bdb53cdb2..2822a7db4 100644 --- a/pkg/dialects/all/enum_mav_storm32_tunnel_payload_type.go +++ b/pkg/dialects/all/enum_mav_storm32_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STORM32_TUNNEL_PAYLOAD_TYPE int +type MAV_STORM32_TUNNEL_PAYLOAD_TYPE uint32 const ( // Registered for STorM32 gimbal controller. diff --git a/pkg/dialects/all/enum_mav_sys_status_sensor.go b/pkg/dialects/all/enum_mav_sys_status_sensor.go index cc80e1e59..0a6dac2a6 100644 --- a/pkg/dialects/all/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/all/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/all/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/all/enum_mav_sys_status_sensor_extended.go index 2040adc5c..3c776bc90 100644 --- a/pkg/dialects/all/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/all/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/all/enum_mav_tunnel_payload_type.go b/pkg/dialects/all/enum_mav_tunnel_payload_type.go index 03179f49b..1a2afccce 100644 --- a/pkg/dialects/all/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/all/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/all/enum_mav_type.go b/pkg/dialects/all/enum_mav_type.go index a005ecbd9..4b25ea975 100644 --- a/pkg/dialects/all/enum_mav_type.go +++ b/pkg/dialects/all/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/all/enum_mav_vtol_state.go b/pkg/dialects/all/enum_mav_vtol_state.go index b8f25545f..f479fa59a 100644 --- a/pkg/dialects/all/enum_mav_vtol_state.go +++ b/pkg/dialects/all/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/all/enum_mav_winch_status_flag.go b/pkg/dialects/all/enum_mav_winch_status_flag.go index d0190dd01..4b210a7f6 100644 --- a/pkg/dialects/all/enum_mav_winch_status_flag.go +++ b/pkg/dialects/all/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/all/enum_mavlink_data_stream_type.go b/pkg/dialects/all/enum_mavlink_data_stream_type.go index 5eebb213a..8858a94ef 100644 --- a/pkg/dialects/all/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/all/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/all/enum_motor_test_order.go b/pkg/dialects/all/enum_motor_test_order.go index fc68921b4..ac54c6fcd 100644 --- a/pkg/dialects/all/enum_motor_test_order.go +++ b/pkg/dialects/all/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/all/enum_motor_test_throttle_type.go b/pkg/dialects/all/enum_motor_test_throttle_type.go index ab7bd4602..496763dce 100644 --- a/pkg/dialects/all/enum_motor_test_throttle_type.go +++ b/pkg/dialects/all/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/all/enum_nav_vtol_land_options.go b/pkg/dialects/all/enum_nav_vtol_land_options.go index 2c9a2dab3..4323d449e 100644 --- a/pkg/dialects/all/enum_nav_vtol_land_options.go +++ b/pkg/dialects/all/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/all/enum_orbit_yaw_behaviour.go b/pkg/dialects/all/enum_orbit_yaw_behaviour.go index 590dd2ec1..20c0e36ea 100644 --- a/pkg/dialects/all/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/all/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/all/enum_osd_param_config_error.go b/pkg/dialects/all/enum_osd_param_config_error.go index 92bea885b..ad6098f1a 100644 --- a/pkg/dialects/all/enum_osd_param_config_error.go +++ b/pkg/dialects/all/enum_osd_param_config_error.go @@ -7,7 +7,7 @@ import ( ) // The error type for the OSD parameter editor. -type OSD_PARAM_CONFIG_ERROR int +type OSD_PARAM_CONFIG_ERROR uint32 const ( OSD_PARAM_SUCCESS OSD_PARAM_CONFIG_ERROR = 0 diff --git a/pkg/dialects/all/enum_osd_param_config_type.go b/pkg/dialects/all/enum_osd_param_config_type.go index 2b9733efa..55da61c2b 100644 --- a/pkg/dialects/all/enum_osd_param_config_type.go +++ b/pkg/dialects/all/enum_osd_param_config_type.go @@ -7,7 +7,7 @@ import ( ) // The type of parameter for the OSD parameter editor. -type OSD_PARAM_CONFIG_TYPE int +type OSD_PARAM_CONFIG_TYPE uint32 const ( OSD_PARAM_NONE OSD_PARAM_CONFIG_TYPE = 0 diff --git a/pkg/dialects/all/enum_parachute_action.go b/pkg/dialects/all/enum_parachute_action.go index 64deebf0a..658ab7861 100644 --- a/pkg/dialects/all/enum_parachute_action.go +++ b/pkg/dialects/all/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/all/enum_param_ack.go b/pkg/dialects/all/enum_param_ack.go index 85bbd4de2..18db5bf4b 100644 --- a/pkg/dialects/all/enum_param_ack.go +++ b/pkg/dialects/all/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/all/enum_param_transaction_action.go b/pkg/dialects/all/enum_param_transaction_action.go index af76227c0..05a062f46 100644 --- a/pkg/dialects/all/enum_param_transaction_action.go +++ b/pkg/dialects/all/enum_param_transaction_action.go @@ -7,7 +7,7 @@ import ( ) // Possible parameter transaction actions. -type PARAM_TRANSACTION_ACTION int +type PARAM_TRANSACTION_ACTION uint32 const ( // Commit the current parameter transaction. diff --git a/pkg/dialects/all/enum_param_transaction_transport.go b/pkg/dialects/all/enum_param_transaction_transport.go index 103a9c786..06706f098 100644 --- a/pkg/dialects/all/enum_param_transaction_transport.go +++ b/pkg/dialects/all/enum_param_transaction_transport.go @@ -7,7 +7,7 @@ import ( ) // Possible transport layers to set and get parameters via mavlink during a parameter transaction. -type PARAM_TRANSACTION_TRANSPORT int +type PARAM_TRANSACTION_TRANSPORT uint32 const ( // Transaction over param transport. diff --git a/pkg/dialects/all/enum_pid_tuning_axis.go b/pkg/dialects/all/enum_pid_tuning_axis.go index b02464e63..656515f30 100644 --- a/pkg/dialects/all/enum_pid_tuning_axis.go +++ b/pkg/dialects/all/enum_pid_tuning_axis.go @@ -6,7 +6,7 @@ import ( "errors" ) -type PID_TUNING_AXIS int +type PID_TUNING_AXIS uint32 const ( PID_TUNING_ROLL PID_TUNING_AXIS = 1 diff --git a/pkg/dialects/all/enum_plane_mode.go b/pkg/dialects/all/enum_plane_mode.go index 90a2c25cb..560816699 100644 --- a/pkg/dialects/all/enum_plane_mode.go +++ b/pkg/dialects/all/enum_plane_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of plane flight modes for custom_mode field of heartbeat. -type PLANE_MODE int +type PLANE_MODE uint32 const ( PLANE_MODE_MANUAL PLANE_MODE = 0 diff --git a/pkg/dialects/all/enum_position_target_typemask.go b/pkg/dialects/all/enum_position_target_typemask.go index 3343725e1..1149e03bd 100644 --- a/pkg/dialects/all/enum_position_target_typemask.go +++ b/pkg/dialects/all/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/all/enum_precision_land_mode.go b/pkg/dialects/all/enum_precision_land_mode.go index 178344be7..9437e7545 100644 --- a/pkg/dialects/all/enum_precision_land_mode.go +++ b/pkg/dialects/all/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/all/enum_rally_flags.go b/pkg/dialects/all/enum_rally_flags.go index dd7ef955f..5df2384af 100644 --- a/pkg/dialects/all/enum_rally_flags.go +++ b/pkg/dialects/all/enum_rally_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in RALLY_POINT message. -type RALLY_FLAGS int +type RALLY_FLAGS uint32 const ( // Flag set when requiring favorable winds for landing. diff --git a/pkg/dialects/all/enum_rc_type.go b/pkg/dialects/all/enum_rc_type.go index 8a56abecf..bca4e8f7f 100644 --- a/pkg/dialects/all/enum_rc_type.go +++ b/pkg/dialects/all/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/all/enum_rover_mode.go b/pkg/dialects/all/enum_rover_mode.go index 449211ad7..e0921b501 100644 --- a/pkg/dialects/all/enum_rover_mode.go +++ b/pkg/dialects/all/enum_rover_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of rover flight modes for custom_mode field of heartbeat. -type ROVER_MODE int +type ROVER_MODE uint32 const ( ROVER_MODE_MANUAL ROVER_MODE = 0 diff --git a/pkg/dialects/all/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/all/enum_rtk_baseline_coordinate_system.go index 6b62dd1c6..10f41569d 100644 --- a/pkg/dialects/all/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/all/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/all/enum_scripting_cmd.go b/pkg/dialects/all/enum_scripting_cmd.go index ffcca9529..de9b71987 100644 --- a/pkg/dialects/all/enum_scripting_cmd.go +++ b/pkg/dialects/all/enum_scripting_cmd.go @@ -6,7 +6,7 @@ import ( "errors" ) -type SCRIPTING_CMD int +type SCRIPTING_CMD uint32 const ( // Start a REPL session. diff --git a/pkg/dialects/all/enum_serial_control_dev.go b/pkg/dialects/all/enum_serial_control_dev.go index 5b51faa05..d82c92207 100644 --- a/pkg/dialects/all/enum_serial_control_dev.go +++ b/pkg/dialects/all/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/all/enum_serial_control_flag.go b/pkg/dialects/all/enum_serial_control_flag.go index b601ad432..c119ba7db 100644 --- a/pkg/dialects/all/enum_serial_control_flag.go +++ b/pkg/dialects/all/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/all/enum_set_focus_type.go b/pkg/dialects/all/enum_set_focus_type.go index c68faac49..c0b858092 100644 --- a/pkg/dialects/all/enum_set_focus_type.go +++ b/pkg/dialects/all/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/all/enum_speed_type.go b/pkg/dialects/all/enum_speed_type.go index 1eb74e17f..58a082a89 100644 --- a/pkg/dialects/all/enum_speed_type.go +++ b/pkg/dialects/all/enum_speed_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type SPEED_TYPE int +type SPEED_TYPE uint32 const ( SPEED_TYPE_AIRSPEED SPEED_TYPE = 0 diff --git a/pkg/dialects/all/enum_storage_status.go b/pkg/dialects/all/enum_storage_status.go index c4a3b2252..a48c43b1b 100644 --- a/pkg/dialects/all/enum_storage_status.go +++ b/pkg/dialects/all/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/all/enum_storage_type.go b/pkg/dialects/all/enum_storage_type.go index 4b0c6a394..6353fd9fb 100644 --- a/pkg/dialects/all/enum_storage_type.go +++ b/pkg/dialects/all/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/all/enum_storage_usage_flag.go b/pkg/dialects/all/enum_storage_usage_flag.go index 89e32774e..c0df3042c 100644 --- a/pkg/dialects/all/enum_storage_usage_flag.go +++ b/pkg/dialects/all/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/all/enum_sub_mode.go b/pkg/dialects/all/enum_sub_mode.go index adc8d227a..3ae142402 100644 --- a/pkg/dialects/all/enum_sub_mode.go +++ b/pkg/dialects/all/enum_sub_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of sub flight modes for custom_mode field of heartbeat. -type SUB_MODE int +type SUB_MODE uint32 const ( SUB_MODE_STABILIZE SUB_MODE = 0 diff --git a/pkg/dialects/all/enum_tracker_mode.go b/pkg/dialects/all/enum_tracker_mode.go index 88a3b40a4..636c29529 100644 --- a/pkg/dialects/all/enum_tracker_mode.go +++ b/pkg/dialects/all/enum_tracker_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of antenna tracker flight modes for custom_mode field of heartbeat. -type TRACKER_MODE int +type TRACKER_MODE uint32 const ( TRACKER_MODE_MANUAL TRACKER_MODE = 0 diff --git a/pkg/dialects/all/enum_tune_format.go b/pkg/dialects/all/enum_tune_format.go index 1ec14b70d..d6ab729b0 100644 --- a/pkg/dialects/all/enum_tune_format.go +++ b/pkg/dialects/all/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/all/enum_ualberta_autopilot_mode.go b/pkg/dialects/all/enum_ualberta_autopilot_mode.go index 3b29e932f..5f970616d 100644 --- a/pkg/dialects/all/enum_ualberta_autopilot_mode.go +++ b/pkg/dialects/all/enum_ualberta_autopilot_mode.go @@ -7,7 +7,7 @@ import ( ) // Available autopilot modes for ualberta uav -type UALBERTA_AUTOPILOT_MODE int +type UALBERTA_AUTOPILOT_MODE uint32 const ( // Raw input pulse widts sent to output diff --git a/pkg/dialects/all/enum_ualberta_nav_mode.go b/pkg/dialects/all/enum_ualberta_nav_mode.go index 6bb3ea655..84485a2b6 100644 --- a/pkg/dialects/all/enum_ualberta_nav_mode.go +++ b/pkg/dialects/all/enum_ualberta_nav_mode.go @@ -7,7 +7,7 @@ import ( ) // Navigation filter mode -type UALBERTA_NAV_MODE int +type UALBERTA_NAV_MODE uint32 const ( NAV_AHRS_INIT UALBERTA_NAV_MODE = 1 diff --git a/pkg/dialects/all/enum_ualberta_pilot_mode.go b/pkg/dialects/all/enum_ualberta_pilot_mode.go index 62786105b..cd9941235 100644 --- a/pkg/dialects/all/enum_ualberta_pilot_mode.go +++ b/pkg/dialects/all/enum_ualberta_pilot_mode.go @@ -7,7 +7,7 @@ import ( ) // Mode currently commanded by pilot -type UALBERTA_PILOT_MODE int +type UALBERTA_PILOT_MODE uint32 const ( // sdf diff --git a/pkg/dialects/all/enum_uavcan_node_health.go b/pkg/dialects/all/enum_uavcan_node_health.go index c06c48356..2a1b8bc8a 100644 --- a/pkg/dialects/all/enum_uavcan_node_health.go +++ b/pkg/dialects/all/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/all/enum_uavcan_node_mode.go b/pkg/dialects/all/enum_uavcan_node_mode.go index fa54f5f2a..05d1aaa2e 100644 --- a/pkg/dialects/all/enum_uavcan_node_mode.go +++ b/pkg/dialects/all/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/all/enum_uavionix_adsb_emergency_status.go b/pkg/dialects/all/enum_uavionix_adsb_emergency_status.go index 959420177..7f5a31a64 100644 --- a/pkg/dialects/all/enum_uavionix_adsb_emergency_status.go +++ b/pkg/dialects/all/enum_uavionix_adsb_emergency_status.go @@ -7,7 +7,7 @@ import ( ) // Emergency status encoding -type UAVIONIX_ADSB_EMERGENCY_STATUS int +type UAVIONIX_ADSB_EMERGENCY_STATUS uint32 const ( UAVIONIX_ADSB_OUT_NO_EMERGENCY UAVIONIX_ADSB_EMERGENCY_STATUS = 0 diff --git a/pkg/dialects/all/enum_uavionix_adsb_out_cfg_aircraft_size.go b/pkg/dialects/all/enum_uavionix_adsb_out_cfg_aircraft_size.go index ef5dcc793..b9457898a 100644 --- a/pkg/dialects/all/enum_uavionix_adsb_out_cfg_aircraft_size.go +++ b/pkg/dialects/all/enum_uavionix_adsb_out_cfg_aircraft_size.go @@ -7,7 +7,7 @@ import ( ) // Definitions for aircraft size -type UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE int +type UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE uint32 const ( UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_NO_DATA UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE = 0 diff --git a/pkg/dialects/all/enum_uavionix_adsb_out_cfg_gps_offset_lat.go b/pkg/dialects/all/enum_uavionix_adsb_out_cfg_gps_offset_lat.go index 55a5ebc86..2bdd4834b 100644 --- a/pkg/dialects/all/enum_uavionix_adsb_out_cfg_gps_offset_lat.go +++ b/pkg/dialects/all/enum_uavionix_adsb_out_cfg_gps_offset_lat.go @@ -7,7 +7,7 @@ import ( ) // GPS lataral offset encoding -type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT int +type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT uint32 const ( UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_NO_DATA UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT = 0 diff --git a/pkg/dialects/all/enum_uavionix_adsb_out_cfg_gps_offset_lon.go b/pkg/dialects/all/enum_uavionix_adsb_out_cfg_gps_offset_lon.go index 266a65a3b..721c3aa7f 100644 --- a/pkg/dialects/all/enum_uavionix_adsb_out_cfg_gps_offset_lon.go +++ b/pkg/dialects/all/enum_uavionix_adsb_out_cfg_gps_offset_lon.go @@ -7,7 +7,7 @@ import ( ) // GPS longitudinal offset encoding -type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON int +type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON uint32 const ( UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON_NO_DATA UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON = 0 diff --git a/pkg/dialects/all/enum_uavionix_adsb_out_dynamic_gps_fix.go b/pkg/dialects/all/enum_uavionix_adsb_out_dynamic_gps_fix.go index 57094ff66..93d51392a 100644 --- a/pkg/dialects/all/enum_uavionix_adsb_out_dynamic_gps_fix.go +++ b/pkg/dialects/all/enum_uavionix_adsb_out_dynamic_gps_fix.go @@ -7,7 +7,7 @@ import ( ) // Status for ADS-B transponder dynamic input -type UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX int +type UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX uint32 const ( UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_NONE_0 UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX = 0 diff --git a/pkg/dialects/all/enum_uavionix_adsb_out_dynamic_state.go b/pkg/dialects/all/enum_uavionix_adsb_out_dynamic_state.go index 662b57162..aa1a78e54 100644 --- a/pkg/dialects/all/enum_uavionix_adsb_out_dynamic_state.go +++ b/pkg/dialects/all/enum_uavionix_adsb_out_dynamic_state.go @@ -7,7 +7,7 @@ import ( ) // State flags for ADS-B transponder dynamic report -type UAVIONIX_ADSB_OUT_DYNAMIC_STATE int +type UAVIONIX_ADSB_OUT_DYNAMIC_STATE uint32 const ( UAVIONIX_ADSB_OUT_DYNAMIC_STATE_INTENT_CHANGE UAVIONIX_ADSB_OUT_DYNAMIC_STATE = 1 diff --git a/pkg/dialects/all/enum_uavionix_adsb_out_rf_select.go b/pkg/dialects/all/enum_uavionix_adsb_out_rf_select.go index 3ff49bb35..230c856a9 100644 --- a/pkg/dialects/all/enum_uavionix_adsb_out_rf_select.go +++ b/pkg/dialects/all/enum_uavionix_adsb_out_rf_select.go @@ -7,7 +7,7 @@ import ( ) // Transceiver RF control flags for ADS-B transponder dynamic reports -type UAVIONIX_ADSB_OUT_RF_SELECT int +type UAVIONIX_ADSB_OUT_RF_SELECT uint32 const ( UAVIONIX_ADSB_OUT_RF_SELECT_STANDBY UAVIONIX_ADSB_OUT_RF_SELECT = 0 diff --git a/pkg/dialects/all/enum_uavionix_adsb_rf_health.go b/pkg/dialects/all/enum_uavionix_adsb_rf_health.go index af033a4d7..707bdec30 100644 --- a/pkg/dialects/all/enum_uavionix_adsb_rf_health.go +++ b/pkg/dialects/all/enum_uavionix_adsb_rf_health.go @@ -7,7 +7,7 @@ import ( ) // Status flags for ADS-B transponder dynamic output -type UAVIONIX_ADSB_RF_HEALTH int +type UAVIONIX_ADSB_RF_HEALTH uint32 const ( UAVIONIX_ADSB_RF_HEALTH_INITIALIZING UAVIONIX_ADSB_RF_HEALTH = 0 diff --git a/pkg/dialects/all/enum_utm_data_avail_flags.go b/pkg/dialects/all/enum_utm_data_avail_flags.go index 8ce9578e3..0b75ad1bc 100644 --- a/pkg/dialects/all/enum_utm_data_avail_flags.go +++ b/pkg/dialects/all/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/all/enum_utm_flight_state.go b/pkg/dialects/all/enum_utm_flight_state.go index b55cf5f5d..414379be3 100644 --- a/pkg/dialects/all/enum_utm_flight_state.go +++ b/pkg/dialects/all/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/all/enum_video_stream_status_flags.go b/pkg/dialects/all/enum_video_stream_status_flags.go index 5954d30d8..1fb401732 100644 --- a/pkg/dialects/all/enum_video_stream_status_flags.go +++ b/pkg/dialects/all/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/all/enum_video_stream_type.go b/pkg/dialects/all/enum_video_stream_type.go index 5b8f6fcbe..f504032a5 100644 --- a/pkg/dialects/all/enum_video_stream_type.go +++ b/pkg/dialects/all/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/all/enum_vtol_transition_heading.go b/pkg/dialects/all/enum_vtol_transition_heading.go index 15ea5e755..43904de80 100644 --- a/pkg/dialects/all/enum_vtol_transition_heading.go +++ b/pkg/dialects/all/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/all/enum_wifi_config_ap_mode.go b/pkg/dialects/all/enum_wifi_config_ap_mode.go index 2f7023003..a415b0ae6 100644 --- a/pkg/dialects/all/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/all/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/all/enum_wifi_config_ap_response.go b/pkg/dialects/all/enum_wifi_config_ap_response.go index ea0d6185b..6ac8042fc 100644 --- a/pkg/dialects/all/enum_wifi_config_ap_response.go +++ b/pkg/dialects/all/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/all/enum_wifi_network_security.go b/pkg/dialects/all/enum_wifi_network_security.go index dfb546c89..e0b0c5953 100644 --- a/pkg/dialects/all/enum_wifi_network_security.go +++ b/pkg/dialects/all/enum_wifi_network_security.go @@ -7,7 +7,7 @@ import ( ) // WiFi wireless security protocols. -type WIFI_NETWORK_SECURITY int +type WIFI_NETWORK_SECURITY uint32 const ( // Undefined or unknown security protocol. diff --git a/pkg/dialects/all/enum_winch_actions.go b/pkg/dialects/all/enum_winch_actions.go index 8ab8e302e..e63526b9b 100644 --- a/pkg/dialects/all/enum_winch_actions.go +++ b/pkg/dialects/all/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/ardupilotmega/enum_accelcal_vehicle_pos.go b/pkg/dialects/ardupilotmega/enum_accelcal_vehicle_pos.go index c139d735a..1b1462e6a 100644 --- a/pkg/dialects/ardupilotmega/enum_accelcal_vehicle_pos.go +++ b/pkg/dialects/ardupilotmega/enum_accelcal_vehicle_pos.go @@ -6,7 +6,7 @@ import ( "errors" ) -type ACCELCAL_VEHICLE_POS int +type ACCELCAL_VEHICLE_POS uint32 const ( ACCELCAL_VEHICLE_POS_LEVEL ACCELCAL_VEHICLE_POS = 1 diff --git a/pkg/dialects/ardupilotmega/enum_actuator_configuration.go b/pkg/dialects/ardupilotmega/enum_actuator_configuration.go index 23c255bbc..adcf41ee2 100644 --- a/pkg/dialects/ardupilotmega/enum_actuator_configuration.go +++ b/pkg/dialects/ardupilotmega/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/ardupilotmega/enum_actuator_output_function.go b/pkg/dialects/ardupilotmega/enum_actuator_output_function.go index b4ac643fd..f3d8c7033 100644 --- a/pkg/dialects/ardupilotmega/enum_actuator_output_function.go +++ b/pkg/dialects/ardupilotmega/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/ardupilotmega/enum_adsb_altitude_type.go b/pkg/dialects/ardupilotmega/enum_adsb_altitude_type.go index eef642a41..db4fb62b5 100644 --- a/pkg/dialects/ardupilotmega/enum_adsb_altitude_type.go +++ b/pkg/dialects/ardupilotmega/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/ardupilotmega/enum_adsb_emitter_type.go b/pkg/dialects/ardupilotmega/enum_adsb_emitter_type.go index 219437362..370c530ea 100644 --- a/pkg/dialects/ardupilotmega/enum_adsb_emitter_type.go +++ b/pkg/dialects/ardupilotmega/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_adsb_flags.go b/pkg/dialects/ardupilotmega/enum_adsb_flags.go index 94f35372d..d1a591688 100644 --- a/pkg/dialects/ardupilotmega/enum_adsb_flags.go +++ b/pkg/dialects/ardupilotmega/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/ardupilotmega/enum_ais_flags.go b/pkg/dialects/ardupilotmega/enum_ais_flags.go index 7523e4c21..4f4059151 100644 --- a/pkg/dialects/ardupilotmega/enum_ais_flags.go +++ b/pkg/dialects/ardupilotmega/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/ardupilotmega/enum_ais_nav_status.go b/pkg/dialects/ardupilotmega/enum_ais_nav_status.go index c11daf9d8..4df35fe8e 100644 --- a/pkg/dialects/ardupilotmega/enum_ais_nav_status.go +++ b/pkg/dialects/ardupilotmega/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/ardupilotmega/enum_ais_type.go b/pkg/dialects/ardupilotmega/enum_ais_type.go index b6e5fb86e..1875e5ce8 100644 --- a/pkg/dialects/ardupilotmega/enum_ais_type.go +++ b/pkg/dialects/ardupilotmega/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/ardupilotmega/enum_attitude_target_typemask.go b/pkg/dialects/ardupilotmega/enum_attitude_target_typemask.go index 630bb8eac..44887f30b 100644 --- a/pkg/dialects/ardupilotmega/enum_attitude_target_typemask.go +++ b/pkg/dialects/ardupilotmega/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/ardupilotmega/enum_autotune_axis.go b/pkg/dialects/ardupilotmega/enum_autotune_axis.go index 038d3f597..650a818ff 100644 --- a/pkg/dialects/ardupilotmega/enum_autotune_axis.go +++ b/pkg/dialects/ardupilotmega/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/ardupilotmega/enum_camera_cap_flags.go b/pkg/dialects/ardupilotmega/enum_camera_cap_flags.go index 1c30f8fa4..6a18ca4eb 100644 --- a/pkg/dialects/ardupilotmega/enum_camera_cap_flags.go +++ b/pkg/dialects/ardupilotmega/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/ardupilotmega/enum_camera_feedback_flags.go b/pkg/dialects/ardupilotmega/enum_camera_feedback_flags.go index c963fdbab..a2826dee7 100644 --- a/pkg/dialects/ardupilotmega/enum_camera_feedback_flags.go +++ b/pkg/dialects/ardupilotmega/enum_camera_feedback_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type CAMERA_FEEDBACK_FLAGS int +type CAMERA_FEEDBACK_FLAGS uint32 const ( // Shooting photos, not video. diff --git a/pkg/dialects/ardupilotmega/enum_camera_mode.go b/pkg/dialects/ardupilotmega/enum_camera_mode.go index 65a70a7f9..c6129d53c 100644 --- a/pkg/dialects/ardupilotmega/enum_camera_mode.go +++ b/pkg/dialects/ardupilotmega/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/ardupilotmega/enum_camera_status_types.go b/pkg/dialects/ardupilotmega/enum_camera_status_types.go index 851e4dc4c..6a7e2d107 100644 --- a/pkg/dialects/ardupilotmega/enum_camera_status_types.go +++ b/pkg/dialects/ardupilotmega/enum_camera_status_types.go @@ -6,7 +6,7 @@ import ( "errors" ) -type CAMERA_STATUS_TYPES int +type CAMERA_STATUS_TYPES uint32 const ( // Camera heartbeat, announce camera component ID at 1Hz. diff --git a/pkg/dialects/ardupilotmega/enum_camera_tracking_mode.go b/pkg/dialects/ardupilotmega/enum_camera_tracking_mode.go index a7ed5be7d..6b4037618 100644 --- a/pkg/dialects/ardupilotmega/enum_camera_tracking_mode.go +++ b/pkg/dialects/ardupilotmega/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/ardupilotmega/enum_camera_tracking_status_flags.go b/pkg/dialects/ardupilotmega/enum_camera_tracking_status_flags.go index 4e8a95117..2cffc5b9f 100644 --- a/pkg/dialects/ardupilotmega/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/ardupilotmega/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/ardupilotmega/enum_camera_tracking_target_data.go b/pkg/dialects/ardupilotmega/enum_camera_tracking_target_data.go index 42f37a0ee..779dbedf0 100644 --- a/pkg/dialects/ardupilotmega/enum_camera_tracking_target_data.go +++ b/pkg/dialects/ardupilotmega/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/ardupilotmega/enum_camera_zoom_type.go b/pkg/dialects/ardupilotmega/enum_camera_zoom_type.go index 5f15b94b8..a0ff6cdb4 100644 --- a/pkg/dialects/ardupilotmega/enum_camera_zoom_type.go +++ b/pkg/dialects/ardupilotmega/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/ardupilotmega/enum_cellular_config_response.go b/pkg/dialects/ardupilotmega/enum_cellular_config_response.go index 119916dbd..a5fea2b2d 100644 --- a/pkg/dialects/ardupilotmega/enum_cellular_config_response.go +++ b/pkg/dialects/ardupilotmega/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/ardupilotmega/enum_cellular_network_failed_reason.go b/pkg/dialects/ardupilotmega/enum_cellular_network_failed_reason.go index 3d8e94f7f..30ea35572 100644 --- a/pkg/dialects/ardupilotmega/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/ardupilotmega/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/ardupilotmega/enum_cellular_network_radio_type.go b/pkg/dialects/ardupilotmega/enum_cellular_network_radio_type.go index 7dfdcc5b2..a5deb2212 100644 --- a/pkg/dialects/ardupilotmega/enum_cellular_network_radio_type.go +++ b/pkg/dialects/ardupilotmega/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_cellular_status_flag.go b/pkg/dialects/ardupilotmega/enum_cellular_status_flag.go index 2d8d46ef4..0e158d81e 100644 --- a/pkg/dialects/ardupilotmega/enum_cellular_status_flag.go +++ b/pkg/dialects/ardupilotmega/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/ardupilotmega/enum_comp_metadata_type.go b/pkg/dialects/ardupilotmega/enum_comp_metadata_type.go index b1102f89e..c38a1e61c 100644 --- a/pkg/dialects/ardupilotmega/enum_comp_metadata_type.go +++ b/pkg/dialects/ardupilotmega/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/ardupilotmega/enum_copter_mode.go b/pkg/dialects/ardupilotmega/enum_copter_mode.go index f7f34dca9..f799f74b0 100644 --- a/pkg/dialects/ardupilotmega/enum_copter_mode.go +++ b/pkg/dialects/ardupilotmega/enum_copter_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of copter flight modes for custom_mode field of heartbeat. -type COPTER_MODE int +type COPTER_MODE uint32 const ( COPTER_MODE_STABILIZE COPTER_MODE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_deepstall_stage.go b/pkg/dialects/ardupilotmega/enum_deepstall_stage.go index a4de82ef4..831f57554 100644 --- a/pkg/dialects/ardupilotmega/enum_deepstall_stage.go +++ b/pkg/dialects/ardupilotmega/enum_deepstall_stage.go @@ -7,7 +7,7 @@ import ( ) // Deepstall flight stage. -type DEEPSTALL_STAGE int +type DEEPSTALL_STAGE uint32 const ( // Flying to the landing point. diff --git a/pkg/dialects/ardupilotmega/enum_device_op_bustype.go b/pkg/dialects/ardupilotmega/enum_device_op_bustype.go index 0329405ba..4b533cade 100644 --- a/pkg/dialects/ardupilotmega/enum_device_op_bustype.go +++ b/pkg/dialects/ardupilotmega/enum_device_op_bustype.go @@ -7,7 +7,7 @@ import ( ) // Bus types for device operations. -type DEVICE_OP_BUSTYPE int +type DEVICE_OP_BUSTYPE uint32 const ( // I2C Device operation. diff --git a/pkg/dialects/ardupilotmega/enum_ekf_status_flags.go b/pkg/dialects/ardupilotmega/enum_ekf_status_flags.go index dd572cb69..599ab5f03 100644 --- a/pkg/dialects/ardupilotmega/enum_ekf_status_flags.go +++ b/pkg/dialects/ardupilotmega/enum_ekf_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in EKF_STATUS message. -type EKF_STATUS_FLAGS int +type EKF_STATUS_FLAGS uint32 const ( // Set if EKF's attitude estimate is good. diff --git a/pkg/dialects/ardupilotmega/enum_esc_connection_type.go b/pkg/dialects/ardupilotmega/enum_esc_connection_type.go index 86fdaeff5..6e1daadbe 100644 --- a/pkg/dialects/ardupilotmega/enum_esc_connection_type.go +++ b/pkg/dialects/ardupilotmega/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/ardupilotmega/enum_esc_failure_flags.go b/pkg/dialects/ardupilotmega/enum_esc_failure_flags.go index 96f4556b2..39165e0b8 100644 --- a/pkg/dialects/ardupilotmega/enum_esc_failure_flags.go +++ b/pkg/dialects/ardupilotmega/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/ardupilotmega/enum_estimator_status_flags.go b/pkg/dialects/ardupilotmega/enum_estimator_status_flags.go index a33d33a52..4fd5c62b2 100644 --- a/pkg/dialects/ardupilotmega/enum_estimator_status_flags.go +++ b/pkg/dialects/ardupilotmega/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/ardupilotmega/enum_failure_type.go b/pkg/dialects/ardupilotmega/enum_failure_type.go index 231721eb3..a1e138554 100644 --- a/pkg/dialects/ardupilotmega/enum_failure_type.go +++ b/pkg/dialects/ardupilotmega/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/ardupilotmega/enum_failure_unit.go b/pkg/dialects/ardupilotmega/enum_failure_unit.go index 4131ceb39..0ed32c880 100644 --- a/pkg/dialects/ardupilotmega/enum_failure_unit.go +++ b/pkg/dialects/ardupilotmega/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/ardupilotmega/enum_fence_action.go b/pkg/dialects/ardupilotmega/enum_fence_action.go index 7624cb543..60874557e 100644 --- a/pkg/dialects/ardupilotmega/enum_fence_action.go +++ b/pkg/dialects/ardupilotmega/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/ardupilotmega/enum_fence_breach.go b/pkg/dialects/ardupilotmega/enum_fence_breach.go index 30fedec18..9fe98ac38 100644 --- a/pkg/dialects/ardupilotmega/enum_fence_breach.go +++ b/pkg/dialects/ardupilotmega/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/ardupilotmega/enum_fence_mitigate.go b/pkg/dialects/ardupilotmega/enum_fence_mitigate.go index 8f69179dc..27bbcb8c1 100644 --- a/pkg/dialects/ardupilotmega/enum_fence_mitigate.go +++ b/pkg/dialects/ardupilotmega/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/ardupilotmega/enum_firmware_version_type.go b/pkg/dialects/ardupilotmega/enum_firmware_version_type.go index baf2dfffa..71d09ca9c 100644 --- a/pkg/dialects/ardupilotmega/enum_firmware_version_type.go +++ b/pkg/dialects/ardupilotmega/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/ardupilotmega/enum_gimbal_axis.go b/pkg/dialects/ardupilotmega/enum_gimbal_axis.go index b5ae177f4..3bcce20f6 100644 --- a/pkg/dialects/ardupilotmega/enum_gimbal_axis.go +++ b/pkg/dialects/ardupilotmega/enum_gimbal_axis.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GIMBAL_AXIS int +type GIMBAL_AXIS uint32 const ( // Gimbal yaw axis. diff --git a/pkg/dialects/ardupilotmega/enum_gimbal_axis_calibration_required.go b/pkg/dialects/ardupilotmega/enum_gimbal_axis_calibration_required.go index fde2d4043..e2dd5c368 100644 --- a/pkg/dialects/ardupilotmega/enum_gimbal_axis_calibration_required.go +++ b/pkg/dialects/ardupilotmega/enum_gimbal_axis_calibration_required.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GIMBAL_AXIS_CALIBRATION_REQUIRED int +type GIMBAL_AXIS_CALIBRATION_REQUIRED uint32 const ( // Whether or not this axis requires calibration is unknown at this time. diff --git a/pkg/dialects/ardupilotmega/enum_gimbal_axis_calibration_status.go b/pkg/dialects/ardupilotmega/enum_gimbal_axis_calibration_status.go index 512407b62..0d7522227 100644 --- a/pkg/dialects/ardupilotmega/enum_gimbal_axis_calibration_status.go +++ b/pkg/dialects/ardupilotmega/enum_gimbal_axis_calibration_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GIMBAL_AXIS_CALIBRATION_STATUS int +type GIMBAL_AXIS_CALIBRATION_STATUS uint32 const ( // Axis calibration is in progress. diff --git a/pkg/dialects/ardupilotmega/enum_gimbal_device_cap_flags.go b/pkg/dialects/ardupilotmega/enum_gimbal_device_cap_flags.go index 77f794c6e..9262f5d3f 100644 --- a/pkg/dialects/ardupilotmega/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/ardupilotmega/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/ardupilotmega/enum_gimbal_device_error_flags.go b/pkg/dialects/ardupilotmega/enum_gimbal_device_error_flags.go index b1ce740ac..a5302ecba 100644 --- a/pkg/dialects/ardupilotmega/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/ardupilotmega/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/ardupilotmega/enum_gimbal_device_flags.go b/pkg/dialects/ardupilotmega/enum_gimbal_device_flags.go index 864a393ac..9a77c0e80 100644 --- a/pkg/dialects/ardupilotmega/enum_gimbal_device_flags.go +++ b/pkg/dialects/ardupilotmega/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/ardupilotmega/enum_gimbal_manager_cap_flags.go b/pkg/dialects/ardupilotmega/enum_gimbal_manager_cap_flags.go index ccd8e27f1..cfa51b03a 100644 --- a/pkg/dialects/ardupilotmega/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/ardupilotmega/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/ardupilotmega/enum_gimbal_manager_flags.go b/pkg/dialects/ardupilotmega/enum_gimbal_manager_flags.go index b16364777..324b324f7 100644 --- a/pkg/dialects/ardupilotmega/enum_gimbal_manager_flags.go +++ b/pkg/dialects/ardupilotmega/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/ardupilotmega/enum_gopro_burst_rate.go b/pkg/dialects/ardupilotmega/enum_gopro_burst_rate.go index 5db467f03..cdd5abb28 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_burst_rate.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_burst_rate.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_BURST_RATE int +type GOPRO_BURST_RATE uint32 const ( // 3 Shots / 1 Second. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_capture_mode.go b/pkg/dialects/ardupilotmega/enum_gopro_capture_mode.go index ce3f8dd94..3f9456933 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_capture_mode.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_capture_mode.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_CAPTURE_MODE int +type GOPRO_CAPTURE_MODE uint32 const ( // Video mode. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_charging.go b/pkg/dialects/ardupilotmega/enum_gopro_charging.go index a54266554..914925dfa 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_charging.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_charging.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_CHARGING int +type GOPRO_CHARGING uint32 const ( // Charging disabled. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_command.go b/pkg/dialects/ardupilotmega/enum_gopro_command.go index a40424af3..94da7996a 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_command.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_command.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_COMMAND int +type GOPRO_COMMAND uint32 const ( // (Get/Set). diff --git a/pkg/dialects/ardupilotmega/enum_gopro_field_of_view.go b/pkg/dialects/ardupilotmega/enum_gopro_field_of_view.go index a1c0889de..6eeca84bd 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_field_of_view.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_field_of_view.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_FIELD_OF_VIEW int +type GOPRO_FIELD_OF_VIEW uint32 const ( // 0x00: Wide. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_frame_rate.go b/pkg/dialects/ardupilotmega/enum_gopro_frame_rate.go index 02d2f0664..80f89e2be 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_frame_rate.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_frame_rate.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_FRAME_RATE int +type GOPRO_FRAME_RATE uint32 const ( // 12 FPS. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_heartbeat_flags.go b/pkg/dialects/ardupilotmega/enum_gopro_heartbeat_flags.go index 425972e99..4a61c2513 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_heartbeat_flags.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_heartbeat_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_HEARTBEAT_FLAGS int +type GOPRO_HEARTBEAT_FLAGS uint32 const ( // GoPro is currently recording. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_heartbeat_status.go b/pkg/dialects/ardupilotmega/enum_gopro_heartbeat_status.go index cfb544ec5..0a1b41980 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_heartbeat_status.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_heartbeat_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_HEARTBEAT_STATUS int +type GOPRO_HEARTBEAT_STATUS uint32 const ( // No GoPro connected. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_model.go b/pkg/dialects/ardupilotmega/enum_gopro_model.go index a0f74cb14..360274d57 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_model.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_model.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_MODEL int +type GOPRO_MODEL uint32 const ( // Unknown gopro model. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_photo_resolution.go b/pkg/dialects/ardupilotmega/enum_gopro_photo_resolution.go index 2fc8ddeba..2053b991c 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_photo_resolution.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_photo_resolution.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PHOTO_RESOLUTION int +type GOPRO_PHOTO_RESOLUTION uint32 const ( // 5MP Medium. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_protune_colour.go b/pkg/dialects/ardupilotmega/enum_gopro_protune_colour.go index b3ff2c23e..d70ea7f64 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_protune_colour.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_protune_colour.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_COLOUR int +type GOPRO_PROTUNE_COLOUR uint32 const ( // Auto. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_protune_exposure.go b/pkg/dialects/ardupilotmega/enum_gopro_protune_exposure.go index 3fad72d2f..b6d8b1261 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_protune_exposure.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_protune_exposure.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_EXPOSURE int +type GOPRO_PROTUNE_EXPOSURE uint32 const ( // -5.0 EV (Hero 3+ Only). diff --git a/pkg/dialects/ardupilotmega/enum_gopro_protune_gain.go b/pkg/dialects/ardupilotmega/enum_gopro_protune_gain.go index ed59ea369..36c40b148 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_protune_gain.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_protune_gain.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_GAIN int +type GOPRO_PROTUNE_GAIN uint32 const ( // ISO 400. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_protune_sharpness.go b/pkg/dialects/ardupilotmega/enum_gopro_protune_sharpness.go index bcbc935f1..ab0a0fcb3 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_protune_sharpness.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_protune_sharpness.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_SHARPNESS int +type GOPRO_PROTUNE_SHARPNESS uint32 const ( // Low Sharpness. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_protune_white_balance.go b/pkg/dialects/ardupilotmega/enum_gopro_protune_white_balance.go index 53594dbfd..b4691cdd5 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_protune_white_balance.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_protune_white_balance.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_WHITE_BALANCE int +type GOPRO_PROTUNE_WHITE_BALANCE uint32 const ( // Auto. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_request_status.go b/pkg/dialects/ardupilotmega/enum_gopro_request_status.go index 53c683d37..a0b66aea5 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_request_status.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_request_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_REQUEST_STATUS int +type GOPRO_REQUEST_STATUS uint32 const ( // The write message with ID indicated succeeded. diff --git a/pkg/dialects/ardupilotmega/enum_gopro_resolution.go b/pkg/dialects/ardupilotmega/enum_gopro_resolution.go index bb669dc53..521422332 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_resolution.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_resolution.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_RESOLUTION int +type GOPRO_RESOLUTION uint32 const ( // 848 x 480 (480p). diff --git a/pkg/dialects/ardupilotmega/enum_gopro_video_settings_flags.go b/pkg/dialects/ardupilotmega/enum_gopro_video_settings_flags.go index ddb6ed001..db2c9ae30 100644 --- a/pkg/dialects/ardupilotmega/enum_gopro_video_settings_flags.go +++ b/pkg/dialects/ardupilotmega/enum_gopro_video_settings_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_VIDEO_SETTINGS_FLAGS int +type GOPRO_VIDEO_SETTINGS_FLAGS uint32 const ( // 0=NTSC, 1=PAL. diff --git a/pkg/dialects/ardupilotmega/enum_gps_fix_type.go b/pkg/dialects/ardupilotmega/enum_gps_fix_type.go index 2343cefe0..ac38570fa 100644 --- a/pkg/dialects/ardupilotmega/enum_gps_fix_type.go +++ b/pkg/dialects/ardupilotmega/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/ardupilotmega/enum_gps_input_ignore_flags.go b/pkg/dialects/ardupilotmega/enum_gps_input_ignore_flags.go index e6ffad1fd..a547c2bc1 100644 --- a/pkg/dialects/ardupilotmega/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/ardupilotmega/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/ardupilotmega/enum_gripper_actions.go b/pkg/dialects/ardupilotmega/enum_gripper_actions.go index 86f7f0257..e456b2805 100644 --- a/pkg/dialects/ardupilotmega/enum_gripper_actions.go +++ b/pkg/dialects/ardupilotmega/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/ardupilotmega/enum_heading_type.go b/pkg/dialects/ardupilotmega/enum_heading_type.go index afee0126b..c4d0f600c 100644 --- a/pkg/dialects/ardupilotmega/enum_heading_type.go +++ b/pkg/dialects/ardupilotmega/enum_heading_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type HEADING_TYPE int +type HEADING_TYPE uint32 const ( HEADING_TYPE_COURSE_OVER_GROUND HEADING_TYPE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_highres_imu_updated_flags.go b/pkg/dialects/ardupilotmega/enum_highres_imu_updated_flags.go index 7c08474e9..d271a8a3f 100644 --- a/pkg/dialects/ardupilotmega/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/ardupilotmega/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/ardupilotmega/enum_hil_sensor_updated_flags.go b/pkg/dialects/ardupilotmega/enum_hil_sensor_updated_flags.go index 91b3a44dc..b26c6e467 100644 --- a/pkg/dialects/ardupilotmega/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/ardupilotmega/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/ardupilotmega/enum_hl_failure_flag.go b/pkg/dialects/ardupilotmega/enum_hl_failure_flag.go index 28d3d1123..bb6999b6a 100644 --- a/pkg/dialects/ardupilotmega/enum_hl_failure_flag.go +++ b/pkg/dialects/ardupilotmega/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/ardupilotmega/enum_icarous_fms_state.go b/pkg/dialects/ardupilotmega/enum_icarous_fms_state.go index 03d2dc5d2..46f1d7999 100644 --- a/pkg/dialects/ardupilotmega/enum_icarous_fms_state.go +++ b/pkg/dialects/ardupilotmega/enum_icarous_fms_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type ICAROUS_FMS_STATE int +type ICAROUS_FMS_STATE uint32 const ( ICAROUS_FMS_STATE_IDLE ICAROUS_FMS_STATE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_icarous_track_band_types.go b/pkg/dialects/ardupilotmega/enum_icarous_track_band_types.go index 819b7f7ed..51d543caf 100644 --- a/pkg/dialects/ardupilotmega/enum_icarous_track_band_types.go +++ b/pkg/dialects/ardupilotmega/enum_icarous_track_band_types.go @@ -6,7 +6,7 @@ import ( "errors" ) -type ICAROUS_TRACK_BAND_TYPES int +type ICAROUS_TRACK_BAND_TYPES uint32 const ( ICAROUS_TRACK_BAND_TYPE_NONE ICAROUS_TRACK_BAND_TYPES = 0 diff --git a/pkg/dialects/ardupilotmega/enum_landing_target_type.go b/pkg/dialects/ardupilotmega/enum_landing_target_type.go index 6f6f8b5e3..c76377427 100644 --- a/pkg/dialects/ardupilotmega/enum_landing_target_type.go +++ b/pkg/dialects/ardupilotmega/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/ardupilotmega/enum_led_control_pattern.go b/pkg/dialects/ardupilotmega/enum_led_control_pattern.go index e51024eda..c0ea47eeb 100644 --- a/pkg/dialects/ardupilotmega/enum_led_control_pattern.go +++ b/pkg/dialects/ardupilotmega/enum_led_control_pattern.go @@ -6,7 +6,7 @@ import ( "errors" ) -type LED_CONTROL_PATTERN int +type LED_CONTROL_PATTERN uint32 const ( // LED patterns off (return control to regular vehicle control). diff --git a/pkg/dialects/ardupilotmega/enum_limit_module.go b/pkg/dialects/ardupilotmega/enum_limit_module.go index 2b0c3d1e8..15e67f32b 100644 --- a/pkg/dialects/ardupilotmega/enum_limit_module.go +++ b/pkg/dialects/ardupilotmega/enum_limit_module.go @@ -6,7 +6,7 @@ import ( "errors" ) -type LIMIT_MODULE int +type LIMIT_MODULE uint32 const ( // Pre-initialization. diff --git a/pkg/dialects/ardupilotmega/enum_limits_state.go b/pkg/dialects/ardupilotmega/enum_limits_state.go index 9c66839a8..6642d3393 100644 --- a/pkg/dialects/ardupilotmega/enum_limits_state.go +++ b/pkg/dialects/ardupilotmega/enum_limits_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type LIMITS_STATE int +type LIMITS_STATE uint32 const ( // Pre-initialization. diff --git a/pkg/dialects/ardupilotmega/enum_mag_cal_status.go b/pkg/dialects/ardupilotmega/enum_mag_cal_status.go index 7f9e64803..3f11bf8b4 100644 --- a/pkg/dialects/ardupilotmega/enum_mag_cal_status.go +++ b/pkg/dialects/ardupilotmega/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/ardupilotmega/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/ardupilotmega/enum_mav_arm_auth_denied_reason.go index 322f7d72b..3436de3c5 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/ardupilotmega/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/ardupilotmega/enum_mav_autopilot.go b/pkg/dialects/ardupilotmega/enum_mav_autopilot.go index 6d90a3146..42f731c9f 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_autopilot.go +++ b/pkg/dialects/ardupilotmega/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/ardupilotmega/enum_mav_battery_charge_state.go b/pkg/dialects/ardupilotmega/enum_mav_battery_charge_state.go index 42c475bd0..95c7e3dfc 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_battery_charge_state.go +++ b/pkg/dialects/ardupilotmega/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/ardupilotmega/enum_mav_battery_fault.go b/pkg/dialects/ardupilotmega/enum_mav_battery_fault.go index 11d5e2d94..0cce89049 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_battery_fault.go +++ b/pkg/dialects/ardupilotmega/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/ardupilotmega/enum_mav_battery_function.go b/pkg/dialects/ardupilotmega/enum_mav_battery_function.go index 8ce9a5ea9..753e1e96a 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_battery_function.go +++ b/pkg/dialects/ardupilotmega/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/ardupilotmega/enum_mav_battery_mode.go b/pkg/dialects/ardupilotmega/enum_mav_battery_mode.go index c1706f29c..0b29bb2b0 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_battery_mode.go +++ b/pkg/dialects/ardupilotmega/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/ardupilotmega/enum_mav_battery_type.go b/pkg/dialects/ardupilotmega/enum_mav_battery_type.go index b7bd3a549..5756b5298 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_battery_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/ardupilotmega/enum_mav_cmd.go b/pkg/dialects/ardupilotmega/enum_mav_cmd.go index af75511f2..c548589be 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_cmd.go +++ b/pkg/dialects/ardupilotmega/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/ardupilotmega/enum_mav_cmd_ack.go b/pkg/dialects/ardupilotmega/enum_mav_cmd_ack.go index 8202c2050..fbd7fc6a4 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_cmd_ack.go +++ b/pkg/dialects/ardupilotmega/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/ardupilotmega/enum_mav_cmd_do_aux_function_switch_level.go b/pkg/dialects/ardupilotmega/enum_mav_cmd_do_aux_function_switch_level.go index 9945ea724..de7c67416 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_cmd_do_aux_function_switch_level.go +++ b/pkg/dialects/ardupilotmega/enum_mav_cmd_do_aux_function_switch_level.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL int +type MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL uint32 const ( // Switch Low. diff --git a/pkg/dialects/ardupilotmega/enum_mav_collision_action.go b/pkg/dialects/ardupilotmega/enum_mav_collision_action.go index f9273c7c0..0ac55b5dc 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_collision_action.go +++ b/pkg/dialects/ardupilotmega/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/ardupilotmega/enum_mav_collision_src.go b/pkg/dialects/ardupilotmega/enum_mav_collision_src.go index 7a1d6d8e1..2c003bde2 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_collision_src.go +++ b/pkg/dialects/ardupilotmega/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/ardupilotmega/enum_mav_collision_threat_level.go b/pkg/dialects/ardupilotmega/enum_mav_collision_threat_level.go index 335550437..17d18aa23 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_collision_threat_level.go +++ b/pkg/dialects/ardupilotmega/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/ardupilotmega/enum_mav_component.go b/pkg/dialects/ardupilotmega/enum_mav_component.go index 57fb9d225..b57a7b11e 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_component.go +++ b/pkg/dialects/ardupilotmega/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/ardupilotmega/enum_mav_data_stream.go b/pkg/dialects/ardupilotmega/enum_mav_data_stream.go index fe8377c39..18383209a 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_data_stream.go +++ b/pkg/dialects/ardupilotmega/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/ardupilotmega/enum_mav_distance_sensor.go b/pkg/dialects/ardupilotmega/enum_mav_distance_sensor.go index c162cda1e..2c1f1311b 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_distance_sensor.go +++ b/pkg/dialects/ardupilotmega/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/ardupilotmega/enum_mav_do_reposition_flags.go b/pkg/dialects/ardupilotmega/enum_mav_do_reposition_flags.go index 756fd74b2..4616a7117 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/ardupilotmega/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/ardupilotmega/enum_mav_estimator_type.go b/pkg/dialects/ardupilotmega/enum_mav_estimator_type.go index 93adc73ff..563ea3012 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_estimator_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/ardupilotmega/enum_mav_event_current_sequence_flags.go b/pkg/dialects/ardupilotmega/enum_mav_event_current_sequence_flags.go index 8cb2e9a0e..952a86a90 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/ardupilotmega/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/ardupilotmega/enum_mav_event_error_reason.go b/pkg/dialects/ardupilotmega/enum_mav_event_error_reason.go index d4e9e5b5b..b495f62f9 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_event_error_reason.go +++ b/pkg/dialects/ardupilotmega/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/ardupilotmega/enum_mav_frame.go b/pkg/dialects/ardupilotmega/enum_mav_frame.go index 3b0d9f37e..5f7e9999c 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_frame.go +++ b/pkg/dialects/ardupilotmega/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/ardupilotmega/enum_mav_generator_status_flag.go b/pkg/dialects/ardupilotmega/enum_mav_generator_status_flag.go index b364449b1..dd6c27ec7 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_generator_status_flag.go +++ b/pkg/dialects/ardupilotmega/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/ardupilotmega/enum_mav_goto.go b/pkg/dialects/ardupilotmega/enum_mav_goto.go index d8f310150..ff207497d 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_goto.go +++ b/pkg/dialects/ardupilotmega/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/ardupilotmega/enum_mav_landed_state.go b/pkg/dialects/ardupilotmega/enum_mav_landed_state.go index c687ae977..9958cc65e 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_landed_state.go +++ b/pkg/dialects/ardupilotmega/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/ardupilotmega/enum_mav_mission_result.go b/pkg/dialects/ardupilotmega/enum_mav_mission_result.go index 4f8a1e82a..b9951d072 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_mission_result.go +++ b/pkg/dialects/ardupilotmega/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/ardupilotmega/enum_mav_mission_type.go b/pkg/dialects/ardupilotmega/enum_mav_mission_type.go index 39117fdcf..eb13ec5a0 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_mission_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/ardupilotmega/enum_mav_mode.go b/pkg/dialects/ardupilotmega/enum_mav_mode.go index 20bdfd76c..12a6b672a 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_mode.go +++ b/pkg/dialects/ardupilotmega/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/ardupilotmega/enum_mav_mode_flag.go b/pkg/dialects/ardupilotmega/enum_mav_mode_flag.go index 28820bda7..61a7b19c8 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_mode_flag.go +++ b/pkg/dialects/ardupilotmega/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/ardupilotmega/enum_mav_mode_flag_decode_position.go b/pkg/dialects/ardupilotmega/enum_mav_mode_flag_decode_position.go index 4c9a660e3..01b3d74a9 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/ardupilotmega/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/ardupilotmega/enum_mav_mode_gimbal.go b/pkg/dialects/ardupilotmega/enum_mav_mode_gimbal.go index 409dc1987..33d6cdb6f 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_mode_gimbal.go +++ b/pkg/dialects/ardupilotmega/enum_mav_mode_gimbal.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_MODE_GIMBAL int +type MAV_MODE_GIMBAL uint32 const ( // Gimbal is powered on but has not started initializing yet. diff --git a/pkg/dialects/ardupilotmega/enum_mav_mount_mode.go b/pkg/dialects/ardupilotmega/enum_mav_mount_mode.go index 4d43985b2..fbe338ac4 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_mount_mode.go +++ b/pkg/dialects/ardupilotmega/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_auth_type.go b/pkg/dialects/ardupilotmega/enum_mav_odid_auth_type.go index e483c88e1..055656cbd 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_auth_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_category_eu.go b/pkg/dialects/ardupilotmega/enum_mav_odid_category_eu.go index e3107d5cb..aca56562b 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_category_eu.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_class_eu.go b/pkg/dialects/ardupilotmega/enum_mav_odid_class_eu.go index ab01af59b..c3c27a1ec 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_class_eu.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_classification_type.go b/pkg/dialects/ardupilotmega/enum_mav_odid_classification_type.go index a60e0d63a..64a725c62 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_classification_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_desc_type.go b/pkg/dialects/ardupilotmega/enum_mav_odid_desc_type.go index 2dc942924..8469890c8 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_desc_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_height_ref.go b/pkg/dialects/ardupilotmega/enum_mav_odid_height_ref.go index 1f756f63f..6e72467ae 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_height_ref.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_hor_acc.go b/pkg/dialects/ardupilotmega/enum_mav_odid_hor_acc.go index ddd8de1e4..d06534e34 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_id_type.go b/pkg/dialects/ardupilotmega/enum_mav_odid_id_type.go index d002b3e1c..fb607f575 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_id_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_operator_id_type.go b/pkg/dialects/ardupilotmega/enum_mav_odid_operator_id_type.go index 9706da60f..13a563273 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_operator_location_type.go b/pkg/dialects/ardupilotmega/enum_mav_odid_operator_location_type.go index 4d531fc81..dfd4b6d83 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_speed_acc.go b/pkg/dialects/ardupilotmega/enum_mav_odid_speed_acc.go index 5c9cb296e..1d8b5ffb8 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_status.go b/pkg/dialects/ardupilotmega/enum_mav_odid_status.go index 38282853f..67386676a 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_status.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_time_acc.go b/pkg/dialects/ardupilotmega/enum_mav_odid_time_acc.go index a47a57484..985933536 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_time_acc.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_ua_type.go b/pkg/dialects/ardupilotmega/enum_mav_odid_ua_type.go index 7672ba8f2..e4b519f1d 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_ua_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/ardupilotmega/enum_mav_odid_ver_acc.go b/pkg/dialects/ardupilotmega/enum_mav_odid_ver_acc.go index e91717d7f..87c1d6b7d 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/ardupilotmega/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/ardupilotmega/enum_mav_param_ext_type.go b/pkg/dialects/ardupilotmega/enum_mav_param_ext_type.go index 76a803aaf..7bb3a1987 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_param_ext_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/ardupilotmega/enum_mav_param_type.go b/pkg/dialects/ardupilotmega/enum_mav_param_type.go index 06b6e7ee2..4c7b0e11e 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_param_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/ardupilotmega/enum_mav_power_status.go b/pkg/dialects/ardupilotmega/enum_mav_power_status.go index ac06d6606..732c46b41 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_power_status.go +++ b/pkg/dialects/ardupilotmega/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/ardupilotmega/enum_mav_protocol_capability.go b/pkg/dialects/ardupilotmega/enum_mav_protocol_capability.go index 26cf7a5a4..b8832bdfc 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_protocol_capability.go +++ b/pkg/dialects/ardupilotmega/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/ardupilotmega/enum_mav_remote_log_data_block_commands.go b/pkg/dialects/ardupilotmega/enum_mav_remote_log_data_block_commands.go index ec5f29d10..30469c1ad 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_remote_log_data_block_commands.go +++ b/pkg/dialects/ardupilotmega/enum_mav_remote_log_data_block_commands.go @@ -7,7 +7,7 @@ import ( ) // Special ACK block numbers control activation of dataflash log streaming. -type MAV_REMOTE_LOG_DATA_BLOCK_COMMANDS int +type MAV_REMOTE_LOG_DATA_BLOCK_COMMANDS uint32 const ( // UAV to stop sending DataFlash blocks. diff --git a/pkg/dialects/ardupilotmega/enum_mav_remote_log_data_block_statuses.go b/pkg/dialects/ardupilotmega/enum_mav_remote_log_data_block_statuses.go index c5b7895bd..eac69e49c 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_remote_log_data_block_statuses.go +++ b/pkg/dialects/ardupilotmega/enum_mav_remote_log_data_block_statuses.go @@ -7,7 +7,7 @@ import ( ) // Possible remote log data block statuses. -type MAV_REMOTE_LOG_DATA_BLOCK_STATUSES int +type MAV_REMOTE_LOG_DATA_BLOCK_STATUSES uint32 const ( // This block has NOT been received. diff --git a/pkg/dialects/ardupilotmega/enum_mav_result.go b/pkg/dialects/ardupilotmega/enum_mav_result.go index 3de93303c..ac943ef2a 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_result.go +++ b/pkg/dialects/ardupilotmega/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/ardupilotmega/enum_mav_roi.go b/pkg/dialects/ardupilotmega/enum_mav_roi.go index c2907d189..26520c244 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_roi.go +++ b/pkg/dialects/ardupilotmega/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/ardupilotmega/enum_mav_sensor_orientation.go b/pkg/dialects/ardupilotmega/enum_mav_sensor_orientation.go index 40cfcfc6b..91f9834ac 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_sensor_orientation.go +++ b/pkg/dialects/ardupilotmega/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/ardupilotmega/enum_mav_severity.go b/pkg/dialects/ardupilotmega/enum_mav_severity.go index 0f8012238..f4682ad87 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_severity.go +++ b/pkg/dialects/ardupilotmega/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/ardupilotmega/enum_mav_state.go b/pkg/dialects/ardupilotmega/enum_mav_state.go index 261f0603b..4a35a5488 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_state.go +++ b/pkg/dialects/ardupilotmega/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/ardupilotmega/enum_mav_sys_status_sensor.go b/pkg/dialects/ardupilotmega/enum_mav_sys_status_sensor.go index 3de1baa0e..98700587f 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/ardupilotmega/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/ardupilotmega/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/ardupilotmega/enum_mav_sys_status_sensor_extended.go index 477372710..1a708886c 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/ardupilotmega/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/ardupilotmega/enum_mav_tunnel_payload_type.go b/pkg/dialects/ardupilotmega/enum_mav_tunnel_payload_type.go index 54e3dffbd..43708f560 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/ardupilotmega/enum_mav_type.go b/pkg/dialects/ardupilotmega/enum_mav_type.go index 28dc5cf79..7f93f5429 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_type.go +++ b/pkg/dialects/ardupilotmega/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/ardupilotmega/enum_mav_vtol_state.go b/pkg/dialects/ardupilotmega/enum_mav_vtol_state.go index ad820c6c9..4d62260e2 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_vtol_state.go +++ b/pkg/dialects/ardupilotmega/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/ardupilotmega/enum_mav_winch_status_flag.go b/pkg/dialects/ardupilotmega/enum_mav_winch_status_flag.go index c2804a42f..b33a1b7a2 100644 --- a/pkg/dialects/ardupilotmega/enum_mav_winch_status_flag.go +++ b/pkg/dialects/ardupilotmega/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/ardupilotmega/enum_mavlink_data_stream_type.go b/pkg/dialects/ardupilotmega/enum_mavlink_data_stream_type.go index 462b3aada..b8c9b9691 100644 --- a/pkg/dialects/ardupilotmega/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/ardupilotmega/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_motor_test_order.go b/pkg/dialects/ardupilotmega/enum_motor_test_order.go index ca9185ada..f4b05c27a 100644 --- a/pkg/dialects/ardupilotmega/enum_motor_test_order.go +++ b/pkg/dialects/ardupilotmega/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/ardupilotmega/enum_motor_test_throttle_type.go b/pkg/dialects/ardupilotmega/enum_motor_test_throttle_type.go index 8bf7f7379..6543c2459 100644 --- a/pkg/dialects/ardupilotmega/enum_motor_test_throttle_type.go +++ b/pkg/dialects/ardupilotmega/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/ardupilotmega/enum_nav_vtol_land_options.go b/pkg/dialects/ardupilotmega/enum_nav_vtol_land_options.go index 59069ee6d..2ce497cc2 100644 --- a/pkg/dialects/ardupilotmega/enum_nav_vtol_land_options.go +++ b/pkg/dialects/ardupilotmega/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/ardupilotmega/enum_orbit_yaw_behaviour.go b/pkg/dialects/ardupilotmega/enum_orbit_yaw_behaviour.go index d2933c393..1a659b796 100644 --- a/pkg/dialects/ardupilotmega/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/ardupilotmega/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/ardupilotmega/enum_osd_param_config_error.go b/pkg/dialects/ardupilotmega/enum_osd_param_config_error.go index ca95f771f..f4be14443 100644 --- a/pkg/dialects/ardupilotmega/enum_osd_param_config_error.go +++ b/pkg/dialects/ardupilotmega/enum_osd_param_config_error.go @@ -7,7 +7,7 @@ import ( ) // The error type for the OSD parameter editor. -type OSD_PARAM_CONFIG_ERROR int +type OSD_PARAM_CONFIG_ERROR uint32 const ( OSD_PARAM_SUCCESS OSD_PARAM_CONFIG_ERROR = 0 diff --git a/pkg/dialects/ardupilotmega/enum_osd_param_config_type.go b/pkg/dialects/ardupilotmega/enum_osd_param_config_type.go index db4640be5..db5b82e28 100644 --- a/pkg/dialects/ardupilotmega/enum_osd_param_config_type.go +++ b/pkg/dialects/ardupilotmega/enum_osd_param_config_type.go @@ -7,7 +7,7 @@ import ( ) // The type of parameter for the OSD parameter editor. -type OSD_PARAM_CONFIG_TYPE int +type OSD_PARAM_CONFIG_TYPE uint32 const ( OSD_PARAM_NONE OSD_PARAM_CONFIG_TYPE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_parachute_action.go b/pkg/dialects/ardupilotmega/enum_parachute_action.go index 32db8dd09..0d3d80036 100644 --- a/pkg/dialects/ardupilotmega/enum_parachute_action.go +++ b/pkg/dialects/ardupilotmega/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/ardupilotmega/enum_param_ack.go b/pkg/dialects/ardupilotmega/enum_param_ack.go index 801f920fa..937f3bb58 100644 --- a/pkg/dialects/ardupilotmega/enum_param_ack.go +++ b/pkg/dialects/ardupilotmega/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/ardupilotmega/enum_pid_tuning_axis.go b/pkg/dialects/ardupilotmega/enum_pid_tuning_axis.go index 253a27286..9da91f533 100644 --- a/pkg/dialects/ardupilotmega/enum_pid_tuning_axis.go +++ b/pkg/dialects/ardupilotmega/enum_pid_tuning_axis.go @@ -6,7 +6,7 @@ import ( "errors" ) -type PID_TUNING_AXIS int +type PID_TUNING_AXIS uint32 const ( PID_TUNING_ROLL PID_TUNING_AXIS = 1 diff --git a/pkg/dialects/ardupilotmega/enum_plane_mode.go b/pkg/dialects/ardupilotmega/enum_plane_mode.go index 10d118b1d..8c8a1e25f 100644 --- a/pkg/dialects/ardupilotmega/enum_plane_mode.go +++ b/pkg/dialects/ardupilotmega/enum_plane_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of plane flight modes for custom_mode field of heartbeat. -type PLANE_MODE int +type PLANE_MODE uint32 const ( PLANE_MODE_MANUAL PLANE_MODE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_position_target_typemask.go b/pkg/dialects/ardupilotmega/enum_position_target_typemask.go index 88e7bc4c9..6fa7e19f0 100644 --- a/pkg/dialects/ardupilotmega/enum_position_target_typemask.go +++ b/pkg/dialects/ardupilotmega/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/ardupilotmega/enum_precision_land_mode.go b/pkg/dialects/ardupilotmega/enum_precision_land_mode.go index 2464641c1..345cabc37 100644 --- a/pkg/dialects/ardupilotmega/enum_precision_land_mode.go +++ b/pkg/dialects/ardupilotmega/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/ardupilotmega/enum_rally_flags.go b/pkg/dialects/ardupilotmega/enum_rally_flags.go index fc095fd71..8ad793761 100644 --- a/pkg/dialects/ardupilotmega/enum_rally_flags.go +++ b/pkg/dialects/ardupilotmega/enum_rally_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in RALLY_POINT message. -type RALLY_FLAGS int +type RALLY_FLAGS uint32 const ( // Flag set when requiring favorable winds for landing. diff --git a/pkg/dialects/ardupilotmega/enum_rc_type.go b/pkg/dialects/ardupilotmega/enum_rc_type.go index 7c56c82af..f60971418 100644 --- a/pkg/dialects/ardupilotmega/enum_rc_type.go +++ b/pkg/dialects/ardupilotmega/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/ardupilotmega/enum_rover_mode.go b/pkg/dialects/ardupilotmega/enum_rover_mode.go index 5f130d195..312c3be9c 100644 --- a/pkg/dialects/ardupilotmega/enum_rover_mode.go +++ b/pkg/dialects/ardupilotmega/enum_rover_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of rover flight modes for custom_mode field of heartbeat. -type ROVER_MODE int +type ROVER_MODE uint32 const ( ROVER_MODE_MANUAL ROVER_MODE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/ardupilotmega/enum_rtk_baseline_coordinate_system.go index 676205522..02322887d 100644 --- a/pkg/dialects/ardupilotmega/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/ardupilotmega/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/ardupilotmega/enum_scripting_cmd.go b/pkg/dialects/ardupilotmega/enum_scripting_cmd.go index 879477187..20b80bcbc 100644 --- a/pkg/dialects/ardupilotmega/enum_scripting_cmd.go +++ b/pkg/dialects/ardupilotmega/enum_scripting_cmd.go @@ -6,7 +6,7 @@ import ( "errors" ) -type SCRIPTING_CMD int +type SCRIPTING_CMD uint32 const ( // Start a REPL session. diff --git a/pkg/dialects/ardupilotmega/enum_serial_control_dev.go b/pkg/dialects/ardupilotmega/enum_serial_control_dev.go index 9d6b27ae4..61fec1c49 100644 --- a/pkg/dialects/ardupilotmega/enum_serial_control_dev.go +++ b/pkg/dialects/ardupilotmega/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/ardupilotmega/enum_serial_control_flag.go b/pkg/dialects/ardupilotmega/enum_serial_control_flag.go index cd410e382..6bdfbb05a 100644 --- a/pkg/dialects/ardupilotmega/enum_serial_control_flag.go +++ b/pkg/dialects/ardupilotmega/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/ardupilotmega/enum_set_focus_type.go b/pkg/dialects/ardupilotmega/enum_set_focus_type.go index e3738f583..2b72d8687 100644 --- a/pkg/dialects/ardupilotmega/enum_set_focus_type.go +++ b/pkg/dialects/ardupilotmega/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/ardupilotmega/enum_speed_type.go b/pkg/dialects/ardupilotmega/enum_speed_type.go index ff21ca1e8..c4019dfd5 100644 --- a/pkg/dialects/ardupilotmega/enum_speed_type.go +++ b/pkg/dialects/ardupilotmega/enum_speed_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type SPEED_TYPE int +type SPEED_TYPE uint32 const ( SPEED_TYPE_AIRSPEED SPEED_TYPE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_storage_status.go b/pkg/dialects/ardupilotmega/enum_storage_status.go index 4ae6af9be..95fc3cf10 100644 --- a/pkg/dialects/ardupilotmega/enum_storage_status.go +++ b/pkg/dialects/ardupilotmega/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/ardupilotmega/enum_storage_type.go b/pkg/dialects/ardupilotmega/enum_storage_type.go index 64e150c83..ac09d15f9 100644 --- a/pkg/dialects/ardupilotmega/enum_storage_type.go +++ b/pkg/dialects/ardupilotmega/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/ardupilotmega/enum_storage_usage_flag.go b/pkg/dialects/ardupilotmega/enum_storage_usage_flag.go index 7c07b5c08..cf0a47d74 100644 --- a/pkg/dialects/ardupilotmega/enum_storage_usage_flag.go +++ b/pkg/dialects/ardupilotmega/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/ardupilotmega/enum_sub_mode.go b/pkg/dialects/ardupilotmega/enum_sub_mode.go index 6a1955733..0771d657d 100644 --- a/pkg/dialects/ardupilotmega/enum_sub_mode.go +++ b/pkg/dialects/ardupilotmega/enum_sub_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of sub flight modes for custom_mode field of heartbeat. -type SUB_MODE int +type SUB_MODE uint32 const ( SUB_MODE_STABILIZE SUB_MODE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_tracker_mode.go b/pkg/dialects/ardupilotmega/enum_tracker_mode.go index eb08348fe..977caa1bc 100644 --- a/pkg/dialects/ardupilotmega/enum_tracker_mode.go +++ b/pkg/dialects/ardupilotmega/enum_tracker_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of antenna tracker flight modes for custom_mode field of heartbeat. -type TRACKER_MODE int +type TRACKER_MODE uint32 const ( TRACKER_MODE_MANUAL TRACKER_MODE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_tune_format.go b/pkg/dialects/ardupilotmega/enum_tune_format.go index 4a1190954..2da6e31d7 100644 --- a/pkg/dialects/ardupilotmega/enum_tune_format.go +++ b/pkg/dialects/ardupilotmega/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/ardupilotmega/enum_uavcan_node_health.go b/pkg/dialects/ardupilotmega/enum_uavcan_node_health.go index 0f960049e..08e4bc288 100644 --- a/pkg/dialects/ardupilotmega/enum_uavcan_node_health.go +++ b/pkg/dialects/ardupilotmega/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/ardupilotmega/enum_uavcan_node_mode.go b/pkg/dialects/ardupilotmega/enum_uavcan_node_mode.go index 1fa5c68ef..a334c77fd 100644 --- a/pkg/dialects/ardupilotmega/enum_uavcan_node_mode.go +++ b/pkg/dialects/ardupilotmega/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_emergency_status.go b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_emergency_status.go index af5f96c15..7690725e6 100644 --- a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_emergency_status.go +++ b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_emergency_status.go @@ -7,7 +7,7 @@ import ( ) // Emergency status encoding -type UAVIONIX_ADSB_EMERGENCY_STATUS int +type UAVIONIX_ADSB_EMERGENCY_STATUS uint32 const ( UAVIONIX_ADSB_OUT_NO_EMERGENCY UAVIONIX_ADSB_EMERGENCY_STATUS = 0 diff --git a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_aircraft_size.go b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_aircraft_size.go index 94fc67ee8..a9c254d6d 100644 --- a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_aircraft_size.go +++ b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_aircraft_size.go @@ -7,7 +7,7 @@ import ( ) // Definitions for aircraft size -type UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE int +type UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE uint32 const ( UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_NO_DATA UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE = 0 diff --git a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_gps_offset_lat.go b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_gps_offset_lat.go index 5bc045aa7..31869efbe 100644 --- a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_gps_offset_lat.go +++ b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_gps_offset_lat.go @@ -7,7 +7,7 @@ import ( ) // GPS lataral offset encoding -type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT int +type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT uint32 const ( UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_NO_DATA UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT = 0 diff --git a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_gps_offset_lon.go b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_gps_offset_lon.go index 938c16921..926ab5382 100644 --- a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_gps_offset_lon.go +++ b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_cfg_gps_offset_lon.go @@ -7,7 +7,7 @@ import ( ) // GPS longitudinal offset encoding -type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON int +type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON uint32 const ( UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON_NO_DATA UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON = 0 diff --git a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_dynamic_gps_fix.go b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_dynamic_gps_fix.go index d2ee1f2d3..9d5a92997 100644 --- a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_dynamic_gps_fix.go +++ b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_dynamic_gps_fix.go @@ -7,7 +7,7 @@ import ( ) // Status for ADS-B transponder dynamic input -type UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX int +type UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX uint32 const ( UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_NONE_0 UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX = 0 diff --git a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_dynamic_state.go b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_dynamic_state.go index cef3d3d70..da2e00812 100644 --- a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_dynamic_state.go +++ b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_dynamic_state.go @@ -7,7 +7,7 @@ import ( ) // State flags for ADS-B transponder dynamic report -type UAVIONIX_ADSB_OUT_DYNAMIC_STATE int +type UAVIONIX_ADSB_OUT_DYNAMIC_STATE uint32 const ( UAVIONIX_ADSB_OUT_DYNAMIC_STATE_INTENT_CHANGE UAVIONIX_ADSB_OUT_DYNAMIC_STATE = 1 diff --git a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_rf_select.go b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_rf_select.go index c3c203583..d12e3f982 100644 --- a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_rf_select.go +++ b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_out_rf_select.go @@ -7,7 +7,7 @@ import ( ) // Transceiver RF control flags for ADS-B transponder dynamic reports -type UAVIONIX_ADSB_OUT_RF_SELECT int +type UAVIONIX_ADSB_OUT_RF_SELECT uint32 const ( UAVIONIX_ADSB_OUT_RF_SELECT_STANDBY UAVIONIX_ADSB_OUT_RF_SELECT = 0 diff --git a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_rf_health.go b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_rf_health.go index dfee42b5d..5e6c5d7a0 100644 --- a/pkg/dialects/ardupilotmega/enum_uavionix_adsb_rf_health.go +++ b/pkg/dialects/ardupilotmega/enum_uavionix_adsb_rf_health.go @@ -7,7 +7,7 @@ import ( ) // Status flags for ADS-B transponder dynamic output -type UAVIONIX_ADSB_RF_HEALTH int +type UAVIONIX_ADSB_RF_HEALTH uint32 const ( UAVIONIX_ADSB_RF_HEALTH_INITIALIZING UAVIONIX_ADSB_RF_HEALTH = 0 diff --git a/pkg/dialects/ardupilotmega/enum_utm_data_avail_flags.go b/pkg/dialects/ardupilotmega/enum_utm_data_avail_flags.go index 8a1689f7a..2c4443e76 100644 --- a/pkg/dialects/ardupilotmega/enum_utm_data_avail_flags.go +++ b/pkg/dialects/ardupilotmega/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/ardupilotmega/enum_utm_flight_state.go b/pkg/dialects/ardupilotmega/enum_utm_flight_state.go index 70f4fbb9c..33edf0468 100644 --- a/pkg/dialects/ardupilotmega/enum_utm_flight_state.go +++ b/pkg/dialects/ardupilotmega/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/ardupilotmega/enum_video_stream_status_flags.go b/pkg/dialects/ardupilotmega/enum_video_stream_status_flags.go index c979e792c..edd95b343 100644 --- a/pkg/dialects/ardupilotmega/enum_video_stream_status_flags.go +++ b/pkg/dialects/ardupilotmega/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/ardupilotmega/enum_video_stream_type.go b/pkg/dialects/ardupilotmega/enum_video_stream_type.go index 383adc1ea..c31956b7f 100644 --- a/pkg/dialects/ardupilotmega/enum_video_stream_type.go +++ b/pkg/dialects/ardupilotmega/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/ardupilotmega/enum_vtol_transition_heading.go b/pkg/dialects/ardupilotmega/enum_vtol_transition_heading.go index 4d75b040c..8166e0cdf 100644 --- a/pkg/dialects/ardupilotmega/enum_vtol_transition_heading.go +++ b/pkg/dialects/ardupilotmega/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/ardupilotmega/enum_wifi_config_ap_mode.go b/pkg/dialects/ardupilotmega/enum_wifi_config_ap_mode.go index a5e947d11..57edb74db 100644 --- a/pkg/dialects/ardupilotmega/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/ardupilotmega/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/ardupilotmega/enum_wifi_config_ap_response.go b/pkg/dialects/ardupilotmega/enum_wifi_config_ap_response.go index ac38e53ff..ad16d5486 100644 --- a/pkg/dialects/ardupilotmega/enum_wifi_config_ap_response.go +++ b/pkg/dialects/ardupilotmega/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/ardupilotmega/enum_winch_actions.go b/pkg/dialects/ardupilotmega/enum_winch_actions.go index 83961a980..e3c70d3fc 100644 --- a/pkg/dialects/ardupilotmega/enum_winch_actions.go +++ b/pkg/dialects/ardupilotmega/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/asluav/enum_actuator_configuration.go b/pkg/dialects/asluav/enum_actuator_configuration.go index 37f4b846a..887df588c 100644 --- a/pkg/dialects/asluav/enum_actuator_configuration.go +++ b/pkg/dialects/asluav/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/asluav/enum_actuator_output_function.go b/pkg/dialects/asluav/enum_actuator_output_function.go index 8a19dedae..11ad6278a 100644 --- a/pkg/dialects/asluav/enum_actuator_output_function.go +++ b/pkg/dialects/asluav/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/asluav/enum_adsb_altitude_type.go b/pkg/dialects/asluav/enum_adsb_altitude_type.go index b0a2963aa..7fa6bf9bb 100644 --- a/pkg/dialects/asluav/enum_adsb_altitude_type.go +++ b/pkg/dialects/asluav/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/asluav/enum_adsb_emitter_type.go b/pkg/dialects/asluav/enum_adsb_emitter_type.go index 6536080c4..3f5b80518 100644 --- a/pkg/dialects/asluav/enum_adsb_emitter_type.go +++ b/pkg/dialects/asluav/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/asluav/enum_adsb_flags.go b/pkg/dialects/asluav/enum_adsb_flags.go index b77b61d77..46c14e6da 100644 --- a/pkg/dialects/asluav/enum_adsb_flags.go +++ b/pkg/dialects/asluav/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/asluav/enum_ais_flags.go b/pkg/dialects/asluav/enum_ais_flags.go index 0c886c080..ed0d4b3f7 100644 --- a/pkg/dialects/asluav/enum_ais_flags.go +++ b/pkg/dialects/asluav/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/asluav/enum_ais_nav_status.go b/pkg/dialects/asluav/enum_ais_nav_status.go index 5bddcfc65..0642d52e8 100644 --- a/pkg/dialects/asluav/enum_ais_nav_status.go +++ b/pkg/dialects/asluav/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/asluav/enum_ais_type.go b/pkg/dialects/asluav/enum_ais_type.go index 03517a81d..b2b9756aa 100644 --- a/pkg/dialects/asluav/enum_ais_type.go +++ b/pkg/dialects/asluav/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/asluav/enum_attitude_target_typemask.go b/pkg/dialects/asluav/enum_attitude_target_typemask.go index a7449b23c..72bf309ab 100644 --- a/pkg/dialects/asluav/enum_attitude_target_typemask.go +++ b/pkg/dialects/asluav/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/asluav/enum_autotune_axis.go b/pkg/dialects/asluav/enum_autotune_axis.go index fe29b4dd0..0f16d4a8c 100644 --- a/pkg/dialects/asluav/enum_autotune_axis.go +++ b/pkg/dialects/asluav/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/asluav/enum_camera_cap_flags.go b/pkg/dialects/asluav/enum_camera_cap_flags.go index 7af11107a..d3e464ca9 100644 --- a/pkg/dialects/asluav/enum_camera_cap_flags.go +++ b/pkg/dialects/asluav/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/asluav/enum_camera_mode.go b/pkg/dialects/asluav/enum_camera_mode.go index 16fa6ac4f..40d94b3b3 100644 --- a/pkg/dialects/asluav/enum_camera_mode.go +++ b/pkg/dialects/asluav/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/asluav/enum_camera_tracking_mode.go b/pkg/dialects/asluav/enum_camera_tracking_mode.go index ca70adb53..8cc6ddcc5 100644 --- a/pkg/dialects/asluav/enum_camera_tracking_mode.go +++ b/pkg/dialects/asluav/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/asluav/enum_camera_tracking_status_flags.go b/pkg/dialects/asluav/enum_camera_tracking_status_flags.go index ca98fd5d1..3faefe56c 100644 --- a/pkg/dialects/asluav/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/asluav/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/asluav/enum_camera_tracking_target_data.go b/pkg/dialects/asluav/enum_camera_tracking_target_data.go index 3ec39253b..da9b3d590 100644 --- a/pkg/dialects/asluav/enum_camera_tracking_target_data.go +++ b/pkg/dialects/asluav/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/asluav/enum_camera_zoom_type.go b/pkg/dialects/asluav/enum_camera_zoom_type.go index 90829063e..34f0f7815 100644 --- a/pkg/dialects/asluav/enum_camera_zoom_type.go +++ b/pkg/dialects/asluav/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/asluav/enum_cellular_config_response.go b/pkg/dialects/asluav/enum_cellular_config_response.go index 91856f88b..3f9a46f48 100644 --- a/pkg/dialects/asluav/enum_cellular_config_response.go +++ b/pkg/dialects/asluav/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/asluav/enum_cellular_network_failed_reason.go b/pkg/dialects/asluav/enum_cellular_network_failed_reason.go index 72d3b5a8a..1404aac15 100644 --- a/pkg/dialects/asluav/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/asluav/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/asluav/enum_cellular_network_radio_type.go b/pkg/dialects/asluav/enum_cellular_network_radio_type.go index 1d6831b47..bda6a7db6 100644 --- a/pkg/dialects/asluav/enum_cellular_network_radio_type.go +++ b/pkg/dialects/asluav/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/asluav/enum_cellular_status_flag.go b/pkg/dialects/asluav/enum_cellular_status_flag.go index eee812c88..0ea53a547 100644 --- a/pkg/dialects/asluav/enum_cellular_status_flag.go +++ b/pkg/dialects/asluav/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/asluav/enum_comp_metadata_type.go b/pkg/dialects/asluav/enum_comp_metadata_type.go index 4d5660909..6ea977081 100644 --- a/pkg/dialects/asluav/enum_comp_metadata_type.go +++ b/pkg/dialects/asluav/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/asluav/enum_esc_connection_type.go b/pkg/dialects/asluav/enum_esc_connection_type.go index e35686ebb..760162123 100644 --- a/pkg/dialects/asluav/enum_esc_connection_type.go +++ b/pkg/dialects/asluav/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/asluav/enum_esc_failure_flags.go b/pkg/dialects/asluav/enum_esc_failure_flags.go index f3b1b41b7..9f6721395 100644 --- a/pkg/dialects/asluav/enum_esc_failure_flags.go +++ b/pkg/dialects/asluav/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/asluav/enum_estimator_status_flags.go b/pkg/dialects/asluav/enum_estimator_status_flags.go index bb998aa0a..7b82d7f87 100644 --- a/pkg/dialects/asluav/enum_estimator_status_flags.go +++ b/pkg/dialects/asluav/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/asluav/enum_failure_type.go b/pkg/dialects/asluav/enum_failure_type.go index e858d97a6..0913f46cd 100644 --- a/pkg/dialects/asluav/enum_failure_type.go +++ b/pkg/dialects/asluav/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/asluav/enum_failure_unit.go b/pkg/dialects/asluav/enum_failure_unit.go index 3a7b276c0..6104977bf 100644 --- a/pkg/dialects/asluav/enum_failure_unit.go +++ b/pkg/dialects/asluav/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/asluav/enum_fence_action.go b/pkg/dialects/asluav/enum_fence_action.go index 2c8e8b649..bc90e7d32 100644 --- a/pkg/dialects/asluav/enum_fence_action.go +++ b/pkg/dialects/asluav/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/asluav/enum_fence_breach.go b/pkg/dialects/asluav/enum_fence_breach.go index 978c6c261..fc37481ce 100644 --- a/pkg/dialects/asluav/enum_fence_breach.go +++ b/pkg/dialects/asluav/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/asluav/enum_fence_mitigate.go b/pkg/dialects/asluav/enum_fence_mitigate.go index d436a82d1..ae34dfc31 100644 --- a/pkg/dialects/asluav/enum_fence_mitigate.go +++ b/pkg/dialects/asluav/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/asluav/enum_firmware_version_type.go b/pkg/dialects/asluav/enum_firmware_version_type.go index 6e4e3f478..c70d432c9 100644 --- a/pkg/dialects/asluav/enum_firmware_version_type.go +++ b/pkg/dialects/asluav/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/asluav/enum_gimbal_device_cap_flags.go b/pkg/dialects/asluav/enum_gimbal_device_cap_flags.go index 0c75a32af..550198ec9 100644 --- a/pkg/dialects/asluav/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/asluav/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/asluav/enum_gimbal_device_error_flags.go b/pkg/dialects/asluav/enum_gimbal_device_error_flags.go index 817c6871d..f64e77de3 100644 --- a/pkg/dialects/asluav/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/asluav/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/asluav/enum_gimbal_device_flags.go b/pkg/dialects/asluav/enum_gimbal_device_flags.go index 25257a706..93b306f0f 100644 --- a/pkg/dialects/asluav/enum_gimbal_device_flags.go +++ b/pkg/dialects/asluav/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/asluav/enum_gimbal_manager_cap_flags.go b/pkg/dialects/asluav/enum_gimbal_manager_cap_flags.go index 97e0ea67a..580c3d116 100644 --- a/pkg/dialects/asluav/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/asluav/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/asluav/enum_gimbal_manager_flags.go b/pkg/dialects/asluav/enum_gimbal_manager_flags.go index 6be465a68..3fd1fdc5d 100644 --- a/pkg/dialects/asluav/enum_gimbal_manager_flags.go +++ b/pkg/dialects/asluav/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/asluav/enum_gps_fix_type.go b/pkg/dialects/asluav/enum_gps_fix_type.go index 380a018a4..250392936 100644 --- a/pkg/dialects/asluav/enum_gps_fix_type.go +++ b/pkg/dialects/asluav/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/asluav/enum_gps_input_ignore_flags.go b/pkg/dialects/asluav/enum_gps_input_ignore_flags.go index 65cb59e55..9ac84e9b2 100644 --- a/pkg/dialects/asluav/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/asluav/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/asluav/enum_gripper_actions.go b/pkg/dialects/asluav/enum_gripper_actions.go index 8fa8cdca6..00bca8ea7 100644 --- a/pkg/dialects/asluav/enum_gripper_actions.go +++ b/pkg/dialects/asluav/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/asluav/enum_gsm_link_type.go b/pkg/dialects/asluav/enum_gsm_link_type.go index 9cedf7d09..94c1b1d93 100644 --- a/pkg/dialects/asluav/enum_gsm_link_type.go +++ b/pkg/dialects/asluav/enum_gsm_link_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GSM_LINK_TYPE int +type GSM_LINK_TYPE uint32 const ( // no service diff --git a/pkg/dialects/asluav/enum_gsm_modem_type.go b/pkg/dialects/asluav/enum_gsm_modem_type.go index ba8fd40ea..02d7ad12c 100644 --- a/pkg/dialects/asluav/enum_gsm_modem_type.go +++ b/pkg/dialects/asluav/enum_gsm_modem_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GSM_MODEM_TYPE int +type GSM_MODEM_TYPE uint32 const ( // not specified diff --git a/pkg/dialects/asluav/enum_highres_imu_updated_flags.go b/pkg/dialects/asluav/enum_highres_imu_updated_flags.go index 57b733a27..9c90df02f 100644 --- a/pkg/dialects/asluav/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/asluav/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/asluav/enum_hil_sensor_updated_flags.go b/pkg/dialects/asluav/enum_hil_sensor_updated_flags.go index c9271f045..e6dad1116 100644 --- a/pkg/dialects/asluav/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/asluav/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/asluav/enum_hl_failure_flag.go b/pkg/dialects/asluav/enum_hl_failure_flag.go index f8146649e..447ffc732 100644 --- a/pkg/dialects/asluav/enum_hl_failure_flag.go +++ b/pkg/dialects/asluav/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/asluav/enum_landing_target_type.go b/pkg/dialects/asluav/enum_landing_target_type.go index e1c604265..d169d9fb4 100644 --- a/pkg/dialects/asluav/enum_landing_target_type.go +++ b/pkg/dialects/asluav/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/asluav/enum_mag_cal_status.go b/pkg/dialects/asluav/enum_mag_cal_status.go index e509e060d..89e06a161 100644 --- a/pkg/dialects/asluav/enum_mag_cal_status.go +++ b/pkg/dialects/asluav/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/asluav/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/asluav/enum_mav_arm_auth_denied_reason.go index 17892846b..39b53aa87 100644 --- a/pkg/dialects/asluav/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/asluav/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/asluav/enum_mav_autopilot.go b/pkg/dialects/asluav/enum_mav_autopilot.go index 114c99bde..4fcbd04dc 100644 --- a/pkg/dialects/asluav/enum_mav_autopilot.go +++ b/pkg/dialects/asluav/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/asluav/enum_mav_battery_charge_state.go b/pkg/dialects/asluav/enum_mav_battery_charge_state.go index 79fe99645..94dc966be 100644 --- a/pkg/dialects/asluav/enum_mav_battery_charge_state.go +++ b/pkg/dialects/asluav/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/asluav/enum_mav_battery_fault.go b/pkg/dialects/asluav/enum_mav_battery_fault.go index e6672a486..091d8ae23 100644 --- a/pkg/dialects/asluav/enum_mav_battery_fault.go +++ b/pkg/dialects/asluav/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/asluav/enum_mav_battery_function.go b/pkg/dialects/asluav/enum_mav_battery_function.go index 1c2cdd2cb..3248514da 100644 --- a/pkg/dialects/asluav/enum_mav_battery_function.go +++ b/pkg/dialects/asluav/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/asluav/enum_mav_battery_mode.go b/pkg/dialects/asluav/enum_mav_battery_mode.go index 4602e1d55..98521502e 100644 --- a/pkg/dialects/asluav/enum_mav_battery_mode.go +++ b/pkg/dialects/asluav/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/asluav/enum_mav_battery_type.go b/pkg/dialects/asluav/enum_mav_battery_type.go index dff066d63..0dafb61d2 100644 --- a/pkg/dialects/asluav/enum_mav_battery_type.go +++ b/pkg/dialects/asluav/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/asluav/enum_mav_cmd.go b/pkg/dialects/asluav/enum_mav_cmd.go index 2f701a07f..bd82a99f2 100644 --- a/pkg/dialects/asluav/enum_mav_cmd.go +++ b/pkg/dialects/asluav/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/asluav/enum_mav_cmd_ack.go b/pkg/dialects/asluav/enum_mav_cmd_ack.go index c4e2442c4..b4ab3a260 100644 --- a/pkg/dialects/asluav/enum_mav_cmd_ack.go +++ b/pkg/dialects/asluav/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/asluav/enum_mav_collision_action.go b/pkg/dialects/asluav/enum_mav_collision_action.go index 2a94e2fa3..2cf3f4b12 100644 --- a/pkg/dialects/asluav/enum_mav_collision_action.go +++ b/pkg/dialects/asluav/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/asluav/enum_mav_collision_src.go b/pkg/dialects/asluav/enum_mav_collision_src.go index 3b9999dc2..fca487fe1 100644 --- a/pkg/dialects/asluav/enum_mav_collision_src.go +++ b/pkg/dialects/asluav/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/asluav/enum_mav_collision_threat_level.go b/pkg/dialects/asluav/enum_mav_collision_threat_level.go index 9371d11e0..5e431b551 100644 --- a/pkg/dialects/asluav/enum_mav_collision_threat_level.go +++ b/pkg/dialects/asluav/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/asluav/enum_mav_component.go b/pkg/dialects/asluav/enum_mav_component.go index cd880ba69..83a37e6a0 100644 --- a/pkg/dialects/asluav/enum_mav_component.go +++ b/pkg/dialects/asluav/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/asluav/enum_mav_data_stream.go b/pkg/dialects/asluav/enum_mav_data_stream.go index f80633e7f..c2c4907bd 100644 --- a/pkg/dialects/asluav/enum_mav_data_stream.go +++ b/pkg/dialects/asluav/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/asluav/enum_mav_distance_sensor.go b/pkg/dialects/asluav/enum_mav_distance_sensor.go index 162f10a75..2f7c9eb0e 100644 --- a/pkg/dialects/asluav/enum_mav_distance_sensor.go +++ b/pkg/dialects/asluav/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/asluav/enum_mav_do_reposition_flags.go b/pkg/dialects/asluav/enum_mav_do_reposition_flags.go index f5ffb38db..c032324d5 100644 --- a/pkg/dialects/asluav/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/asluav/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/asluav/enum_mav_estimator_type.go b/pkg/dialects/asluav/enum_mav_estimator_type.go index 2cbec85d6..bd27fdd2a 100644 --- a/pkg/dialects/asluav/enum_mav_estimator_type.go +++ b/pkg/dialects/asluav/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/asluav/enum_mav_event_current_sequence_flags.go b/pkg/dialects/asluav/enum_mav_event_current_sequence_flags.go index fdd9e6f14..72e281df5 100644 --- a/pkg/dialects/asluav/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/asluav/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/asluav/enum_mav_event_error_reason.go b/pkg/dialects/asluav/enum_mav_event_error_reason.go index 8723e89ac..2608a3f80 100644 --- a/pkg/dialects/asluav/enum_mav_event_error_reason.go +++ b/pkg/dialects/asluav/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/asluav/enum_mav_frame.go b/pkg/dialects/asluav/enum_mav_frame.go index 15f7a4ae1..e161cf90a 100644 --- a/pkg/dialects/asluav/enum_mav_frame.go +++ b/pkg/dialects/asluav/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/asluav/enum_mav_generator_status_flag.go b/pkg/dialects/asluav/enum_mav_generator_status_flag.go index 5904433fc..423045005 100644 --- a/pkg/dialects/asluav/enum_mav_generator_status_flag.go +++ b/pkg/dialects/asluav/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/asluav/enum_mav_goto.go b/pkg/dialects/asluav/enum_mav_goto.go index acecad9f1..68a90c27a 100644 --- a/pkg/dialects/asluav/enum_mav_goto.go +++ b/pkg/dialects/asluav/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/asluav/enum_mav_landed_state.go b/pkg/dialects/asluav/enum_mav_landed_state.go index 4e34c52da..fdef77216 100644 --- a/pkg/dialects/asluav/enum_mav_landed_state.go +++ b/pkg/dialects/asluav/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/asluav/enum_mav_mission_result.go b/pkg/dialects/asluav/enum_mav_mission_result.go index f3edb1b5e..81b952440 100644 --- a/pkg/dialects/asluav/enum_mav_mission_result.go +++ b/pkg/dialects/asluav/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/asluav/enum_mav_mission_type.go b/pkg/dialects/asluav/enum_mav_mission_type.go index 0980ebaf7..3e72300f5 100644 --- a/pkg/dialects/asluav/enum_mav_mission_type.go +++ b/pkg/dialects/asluav/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/asluav/enum_mav_mode.go b/pkg/dialects/asluav/enum_mav_mode.go index 2c2c12265..9e4414eee 100644 --- a/pkg/dialects/asluav/enum_mav_mode.go +++ b/pkg/dialects/asluav/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/asluav/enum_mav_mode_flag.go b/pkg/dialects/asluav/enum_mav_mode_flag.go index 758670df3..a495c11f7 100644 --- a/pkg/dialects/asluav/enum_mav_mode_flag.go +++ b/pkg/dialects/asluav/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/asluav/enum_mav_mode_flag_decode_position.go b/pkg/dialects/asluav/enum_mav_mode_flag_decode_position.go index 2ea01c885..863b057a8 100644 --- a/pkg/dialects/asluav/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/asluav/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/asluav/enum_mav_mount_mode.go b/pkg/dialects/asluav/enum_mav_mount_mode.go index 46308c5eb..4c314000d 100644 --- a/pkg/dialects/asluav/enum_mav_mount_mode.go +++ b/pkg/dialects/asluav/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/asluav/enum_mav_odid_auth_type.go b/pkg/dialects/asluav/enum_mav_odid_auth_type.go index a6d75e0b1..3444b5a8e 100644 --- a/pkg/dialects/asluav/enum_mav_odid_auth_type.go +++ b/pkg/dialects/asluav/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/asluav/enum_mav_odid_category_eu.go b/pkg/dialects/asluav/enum_mav_odid_category_eu.go index 10179a990..d5ed30758 100644 --- a/pkg/dialects/asluav/enum_mav_odid_category_eu.go +++ b/pkg/dialects/asluav/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/asluav/enum_mav_odid_class_eu.go b/pkg/dialects/asluav/enum_mav_odid_class_eu.go index fa51fdce9..137e75333 100644 --- a/pkg/dialects/asluav/enum_mav_odid_class_eu.go +++ b/pkg/dialects/asluav/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/asluav/enum_mav_odid_classification_type.go b/pkg/dialects/asluav/enum_mav_odid_classification_type.go index 65d3721ee..ee9ce9f91 100644 --- a/pkg/dialects/asluav/enum_mav_odid_classification_type.go +++ b/pkg/dialects/asluav/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/asluav/enum_mav_odid_desc_type.go b/pkg/dialects/asluav/enum_mav_odid_desc_type.go index 71a811473..71bc64e9e 100644 --- a/pkg/dialects/asluav/enum_mav_odid_desc_type.go +++ b/pkg/dialects/asluav/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/asluav/enum_mav_odid_height_ref.go b/pkg/dialects/asluav/enum_mav_odid_height_ref.go index 776c30fb4..900d5ffac 100644 --- a/pkg/dialects/asluav/enum_mav_odid_height_ref.go +++ b/pkg/dialects/asluav/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/asluav/enum_mav_odid_hor_acc.go b/pkg/dialects/asluav/enum_mav_odid_hor_acc.go index 2b7b0ca4e..3c323a625 100644 --- a/pkg/dialects/asluav/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/asluav/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/asluav/enum_mav_odid_id_type.go b/pkg/dialects/asluav/enum_mav_odid_id_type.go index 0f11b027e..bc1437873 100644 --- a/pkg/dialects/asluav/enum_mav_odid_id_type.go +++ b/pkg/dialects/asluav/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/asluav/enum_mav_odid_operator_id_type.go b/pkg/dialects/asluav/enum_mav_odid_operator_id_type.go index 4b68aa9ae..8330c4f66 100644 --- a/pkg/dialects/asluav/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/asluav/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/asluav/enum_mav_odid_operator_location_type.go b/pkg/dialects/asluav/enum_mav_odid_operator_location_type.go index 6140ddc9f..a61f0c9ca 100644 --- a/pkg/dialects/asluav/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/asluav/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/asluav/enum_mav_odid_speed_acc.go b/pkg/dialects/asluav/enum_mav_odid_speed_acc.go index c3e0d975a..9098d7901 100644 --- a/pkg/dialects/asluav/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/asluav/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/asluav/enum_mav_odid_status.go b/pkg/dialects/asluav/enum_mav_odid_status.go index 4df96d34a..9179cfa6d 100644 --- a/pkg/dialects/asluav/enum_mav_odid_status.go +++ b/pkg/dialects/asluav/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/asluav/enum_mav_odid_time_acc.go b/pkg/dialects/asluav/enum_mav_odid_time_acc.go index 1c0031472..083de3e27 100644 --- a/pkg/dialects/asluav/enum_mav_odid_time_acc.go +++ b/pkg/dialects/asluav/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/asluav/enum_mav_odid_ua_type.go b/pkg/dialects/asluav/enum_mav_odid_ua_type.go index 94bc2cd8e..9d16738ec 100644 --- a/pkg/dialects/asluav/enum_mav_odid_ua_type.go +++ b/pkg/dialects/asluav/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/asluav/enum_mav_odid_ver_acc.go b/pkg/dialects/asluav/enum_mav_odid_ver_acc.go index 7f4add78b..70ba0ac2d 100644 --- a/pkg/dialects/asluav/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/asluav/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/asluav/enum_mav_param_ext_type.go b/pkg/dialects/asluav/enum_mav_param_ext_type.go index f6f4ef549..1c766954c 100644 --- a/pkg/dialects/asluav/enum_mav_param_ext_type.go +++ b/pkg/dialects/asluav/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/asluav/enum_mav_param_type.go b/pkg/dialects/asluav/enum_mav_param_type.go index ae433ca4b..2a40ae871 100644 --- a/pkg/dialects/asluav/enum_mav_param_type.go +++ b/pkg/dialects/asluav/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/asluav/enum_mav_power_status.go b/pkg/dialects/asluav/enum_mav_power_status.go index cbaa8e2e1..b6b2fdbb8 100644 --- a/pkg/dialects/asluav/enum_mav_power_status.go +++ b/pkg/dialects/asluav/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/asluav/enum_mav_protocol_capability.go b/pkg/dialects/asluav/enum_mav_protocol_capability.go index d5c91ac4b..cad03295f 100644 --- a/pkg/dialects/asluav/enum_mav_protocol_capability.go +++ b/pkg/dialects/asluav/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/asluav/enum_mav_result.go b/pkg/dialects/asluav/enum_mav_result.go index d86711bbc..48500ecda 100644 --- a/pkg/dialects/asluav/enum_mav_result.go +++ b/pkg/dialects/asluav/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/asluav/enum_mav_roi.go b/pkg/dialects/asluav/enum_mav_roi.go index 8312c0688..9d6301a6f 100644 --- a/pkg/dialects/asluav/enum_mav_roi.go +++ b/pkg/dialects/asluav/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/asluav/enum_mav_sensor_orientation.go b/pkg/dialects/asluav/enum_mav_sensor_orientation.go index 11bca4d4f..02fa9a452 100644 --- a/pkg/dialects/asluav/enum_mav_sensor_orientation.go +++ b/pkg/dialects/asluav/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/asluav/enum_mav_severity.go b/pkg/dialects/asluav/enum_mav_severity.go index e4fdee092..b243a015b 100644 --- a/pkg/dialects/asluav/enum_mav_severity.go +++ b/pkg/dialects/asluav/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/asluav/enum_mav_state.go b/pkg/dialects/asluav/enum_mav_state.go index 96b43a37c..c2dbc610c 100644 --- a/pkg/dialects/asluav/enum_mav_state.go +++ b/pkg/dialects/asluav/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/asluav/enum_mav_sys_status_sensor.go b/pkg/dialects/asluav/enum_mav_sys_status_sensor.go index 532361829..a2ffdbe79 100644 --- a/pkg/dialects/asluav/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/asluav/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/asluav/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/asluav/enum_mav_sys_status_sensor_extended.go index 457915c63..96c2799e8 100644 --- a/pkg/dialects/asluav/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/asluav/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/asluav/enum_mav_tunnel_payload_type.go b/pkg/dialects/asluav/enum_mav_tunnel_payload_type.go index 89e68d1ba..dfdcaa977 100644 --- a/pkg/dialects/asluav/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/asluav/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/asluav/enum_mav_type.go b/pkg/dialects/asluav/enum_mav_type.go index cf0a8e5a9..5e787dfd7 100644 --- a/pkg/dialects/asluav/enum_mav_type.go +++ b/pkg/dialects/asluav/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/asluav/enum_mav_vtol_state.go b/pkg/dialects/asluav/enum_mav_vtol_state.go index 0cfdf3691..16ac24a85 100644 --- a/pkg/dialects/asluav/enum_mav_vtol_state.go +++ b/pkg/dialects/asluav/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/asluav/enum_mav_winch_status_flag.go b/pkg/dialects/asluav/enum_mav_winch_status_flag.go index e7dcf433a..0b7e65f7e 100644 --- a/pkg/dialects/asluav/enum_mav_winch_status_flag.go +++ b/pkg/dialects/asluav/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/asluav/enum_mavlink_data_stream_type.go b/pkg/dialects/asluav/enum_mavlink_data_stream_type.go index d237254b0..6680e544c 100644 --- a/pkg/dialects/asluav/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/asluav/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/asluav/enum_motor_test_order.go b/pkg/dialects/asluav/enum_motor_test_order.go index e0370cfce..6411d7de1 100644 --- a/pkg/dialects/asluav/enum_motor_test_order.go +++ b/pkg/dialects/asluav/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/asluav/enum_motor_test_throttle_type.go b/pkg/dialects/asluav/enum_motor_test_throttle_type.go index 86b2ab4b4..8d2bcf443 100644 --- a/pkg/dialects/asluav/enum_motor_test_throttle_type.go +++ b/pkg/dialects/asluav/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/asluav/enum_nav_vtol_land_options.go b/pkg/dialects/asluav/enum_nav_vtol_land_options.go index 500d8185b..db04930e8 100644 --- a/pkg/dialects/asluav/enum_nav_vtol_land_options.go +++ b/pkg/dialects/asluav/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/asluav/enum_orbit_yaw_behaviour.go b/pkg/dialects/asluav/enum_orbit_yaw_behaviour.go index 045e8beb4..a022863d4 100644 --- a/pkg/dialects/asluav/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/asluav/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/asluav/enum_parachute_action.go b/pkg/dialects/asluav/enum_parachute_action.go index d54bff46c..85ed28902 100644 --- a/pkg/dialects/asluav/enum_parachute_action.go +++ b/pkg/dialects/asluav/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/asluav/enum_param_ack.go b/pkg/dialects/asluav/enum_param_ack.go index 92abb8b0d..812924d17 100644 --- a/pkg/dialects/asluav/enum_param_ack.go +++ b/pkg/dialects/asluav/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/asluav/enum_position_target_typemask.go b/pkg/dialects/asluav/enum_position_target_typemask.go index b3209ff82..8c4e984c6 100644 --- a/pkg/dialects/asluav/enum_position_target_typemask.go +++ b/pkg/dialects/asluav/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/asluav/enum_precision_land_mode.go b/pkg/dialects/asluav/enum_precision_land_mode.go index 208db38b3..f8e654a43 100644 --- a/pkg/dialects/asluav/enum_precision_land_mode.go +++ b/pkg/dialects/asluav/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/asluav/enum_rc_type.go b/pkg/dialects/asluav/enum_rc_type.go index 80b2314e6..e02a6cbb3 100644 --- a/pkg/dialects/asluav/enum_rc_type.go +++ b/pkg/dialects/asluav/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/asluav/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/asluav/enum_rtk_baseline_coordinate_system.go index 5853824cd..8c7773c0f 100644 --- a/pkg/dialects/asluav/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/asluav/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/asluav/enum_serial_control_dev.go b/pkg/dialects/asluav/enum_serial_control_dev.go index 9dc55f97e..db272a660 100644 --- a/pkg/dialects/asluav/enum_serial_control_dev.go +++ b/pkg/dialects/asluav/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/asluav/enum_serial_control_flag.go b/pkg/dialects/asluav/enum_serial_control_flag.go index e4df27956..7fb2e8f8e 100644 --- a/pkg/dialects/asluav/enum_serial_control_flag.go +++ b/pkg/dialects/asluav/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/asluav/enum_set_focus_type.go b/pkg/dialects/asluav/enum_set_focus_type.go index 6956de4cf..f32482e76 100644 --- a/pkg/dialects/asluav/enum_set_focus_type.go +++ b/pkg/dialects/asluav/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/asluav/enum_storage_status.go b/pkg/dialects/asluav/enum_storage_status.go index 643e8b6e8..651d210bf 100644 --- a/pkg/dialects/asluav/enum_storage_status.go +++ b/pkg/dialects/asluav/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/asluav/enum_storage_type.go b/pkg/dialects/asluav/enum_storage_type.go index 4762868a5..764a04aa9 100644 --- a/pkg/dialects/asluav/enum_storage_type.go +++ b/pkg/dialects/asluav/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/asluav/enum_storage_usage_flag.go b/pkg/dialects/asluav/enum_storage_usage_flag.go index a41198845..9a1556881 100644 --- a/pkg/dialects/asluav/enum_storage_usage_flag.go +++ b/pkg/dialects/asluav/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/asluav/enum_tune_format.go b/pkg/dialects/asluav/enum_tune_format.go index f54a41a3f..1e29fe8d0 100644 --- a/pkg/dialects/asluav/enum_tune_format.go +++ b/pkg/dialects/asluav/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/asluav/enum_uavcan_node_health.go b/pkg/dialects/asluav/enum_uavcan_node_health.go index 93e5310a0..f2f0c0f7d 100644 --- a/pkg/dialects/asluav/enum_uavcan_node_health.go +++ b/pkg/dialects/asluav/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/asluav/enum_uavcan_node_mode.go b/pkg/dialects/asluav/enum_uavcan_node_mode.go index 1b4d1fbca..b2c021759 100644 --- a/pkg/dialects/asluav/enum_uavcan_node_mode.go +++ b/pkg/dialects/asluav/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/asluav/enum_utm_data_avail_flags.go b/pkg/dialects/asluav/enum_utm_data_avail_flags.go index cd827d548..704a7e6b4 100644 --- a/pkg/dialects/asluav/enum_utm_data_avail_flags.go +++ b/pkg/dialects/asluav/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/asluav/enum_utm_flight_state.go b/pkg/dialects/asluav/enum_utm_flight_state.go index 5be549496..2ee4dafb4 100644 --- a/pkg/dialects/asluav/enum_utm_flight_state.go +++ b/pkg/dialects/asluav/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/asluav/enum_video_stream_status_flags.go b/pkg/dialects/asluav/enum_video_stream_status_flags.go index 103ba2642..c0967c2d0 100644 --- a/pkg/dialects/asluav/enum_video_stream_status_flags.go +++ b/pkg/dialects/asluav/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/asluav/enum_video_stream_type.go b/pkg/dialects/asluav/enum_video_stream_type.go index 58a9b71a5..125321238 100644 --- a/pkg/dialects/asluav/enum_video_stream_type.go +++ b/pkg/dialects/asluav/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/asluav/enum_vtol_transition_heading.go b/pkg/dialects/asluav/enum_vtol_transition_heading.go index 0d84617e8..a201fc485 100644 --- a/pkg/dialects/asluav/enum_vtol_transition_heading.go +++ b/pkg/dialects/asluav/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/asluav/enum_wifi_config_ap_mode.go b/pkg/dialects/asluav/enum_wifi_config_ap_mode.go index cda641b79..17b421370 100644 --- a/pkg/dialects/asluav/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/asluav/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/asluav/enum_wifi_config_ap_response.go b/pkg/dialects/asluav/enum_wifi_config_ap_response.go index e4d182028..4a8b80b23 100644 --- a/pkg/dialects/asluav/enum_wifi_config_ap_response.go +++ b/pkg/dialects/asluav/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/asluav/enum_winch_actions.go b/pkg/dialects/asluav/enum_winch_actions.go index 44257c528..e146469c1 100644 --- a/pkg/dialects/asluav/enum_winch_actions.go +++ b/pkg/dialects/asluav/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/avssuas/enum_actuator_configuration.go b/pkg/dialects/avssuas/enum_actuator_configuration.go index 55a0e3c2b..5f288641c 100644 --- a/pkg/dialects/avssuas/enum_actuator_configuration.go +++ b/pkg/dialects/avssuas/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/avssuas/enum_actuator_output_function.go b/pkg/dialects/avssuas/enum_actuator_output_function.go index f0e69d181..62aac9a60 100644 --- a/pkg/dialects/avssuas/enum_actuator_output_function.go +++ b/pkg/dialects/avssuas/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/avssuas/enum_adsb_altitude_type.go b/pkg/dialects/avssuas/enum_adsb_altitude_type.go index e9df6ebce..10b573590 100644 --- a/pkg/dialects/avssuas/enum_adsb_altitude_type.go +++ b/pkg/dialects/avssuas/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/avssuas/enum_adsb_emitter_type.go b/pkg/dialects/avssuas/enum_adsb_emitter_type.go index 8654a2ea9..4dbd1b1f5 100644 --- a/pkg/dialects/avssuas/enum_adsb_emitter_type.go +++ b/pkg/dialects/avssuas/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/avssuas/enum_adsb_flags.go b/pkg/dialects/avssuas/enum_adsb_flags.go index a6f24bae7..3fb8cabe3 100644 --- a/pkg/dialects/avssuas/enum_adsb_flags.go +++ b/pkg/dialects/avssuas/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/avssuas/enum_ais_flags.go b/pkg/dialects/avssuas/enum_ais_flags.go index 32c1ff7b7..0b8417ce5 100644 --- a/pkg/dialects/avssuas/enum_ais_flags.go +++ b/pkg/dialects/avssuas/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/avssuas/enum_ais_nav_status.go b/pkg/dialects/avssuas/enum_ais_nav_status.go index 61321f507..c1dbdc589 100644 --- a/pkg/dialects/avssuas/enum_ais_nav_status.go +++ b/pkg/dialects/avssuas/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/avssuas/enum_ais_type.go b/pkg/dialects/avssuas/enum_ais_type.go index 6671520a2..1f1839614 100644 --- a/pkg/dialects/avssuas/enum_ais_type.go +++ b/pkg/dialects/avssuas/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/avssuas/enum_attitude_target_typemask.go b/pkg/dialects/avssuas/enum_attitude_target_typemask.go index 311093b2f..fcdd92665 100644 --- a/pkg/dialects/avssuas/enum_attitude_target_typemask.go +++ b/pkg/dialects/avssuas/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/avssuas/enum_autotune_axis.go b/pkg/dialects/avssuas/enum_autotune_axis.go index 82d648ce8..7b30063f9 100644 --- a/pkg/dialects/avssuas/enum_autotune_axis.go +++ b/pkg/dialects/avssuas/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/avssuas/enum_camera_cap_flags.go b/pkg/dialects/avssuas/enum_camera_cap_flags.go index 0b5ad901d..5b6b16515 100644 --- a/pkg/dialects/avssuas/enum_camera_cap_flags.go +++ b/pkg/dialects/avssuas/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/avssuas/enum_camera_mode.go b/pkg/dialects/avssuas/enum_camera_mode.go index 18c10f722..9fe67677b 100644 --- a/pkg/dialects/avssuas/enum_camera_mode.go +++ b/pkg/dialects/avssuas/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/avssuas/enum_camera_tracking_mode.go b/pkg/dialects/avssuas/enum_camera_tracking_mode.go index aaf480e03..a37020d89 100644 --- a/pkg/dialects/avssuas/enum_camera_tracking_mode.go +++ b/pkg/dialects/avssuas/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/avssuas/enum_camera_tracking_status_flags.go b/pkg/dialects/avssuas/enum_camera_tracking_status_flags.go index 395ea804f..e00c1adb2 100644 --- a/pkg/dialects/avssuas/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/avssuas/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/avssuas/enum_camera_tracking_target_data.go b/pkg/dialects/avssuas/enum_camera_tracking_target_data.go index a926d47c7..4f60dc007 100644 --- a/pkg/dialects/avssuas/enum_camera_tracking_target_data.go +++ b/pkg/dialects/avssuas/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/avssuas/enum_camera_zoom_type.go b/pkg/dialects/avssuas/enum_camera_zoom_type.go index 954bcd210..bfc71ba26 100644 --- a/pkg/dialects/avssuas/enum_camera_zoom_type.go +++ b/pkg/dialects/avssuas/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/avssuas/enum_cellular_config_response.go b/pkg/dialects/avssuas/enum_cellular_config_response.go index e7bde16f5..d02f42bb6 100644 --- a/pkg/dialects/avssuas/enum_cellular_config_response.go +++ b/pkg/dialects/avssuas/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/avssuas/enum_cellular_network_failed_reason.go b/pkg/dialects/avssuas/enum_cellular_network_failed_reason.go index 0ad5acbf8..64dd47f6b 100644 --- a/pkg/dialects/avssuas/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/avssuas/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/avssuas/enum_cellular_network_radio_type.go b/pkg/dialects/avssuas/enum_cellular_network_radio_type.go index ee27cad6e..61cd88c29 100644 --- a/pkg/dialects/avssuas/enum_cellular_network_radio_type.go +++ b/pkg/dialects/avssuas/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/avssuas/enum_cellular_status_flag.go b/pkg/dialects/avssuas/enum_cellular_status_flag.go index 01bb2cb0d..9acb05ae1 100644 --- a/pkg/dialects/avssuas/enum_cellular_status_flag.go +++ b/pkg/dialects/avssuas/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/avssuas/enum_comp_metadata_type.go b/pkg/dialects/avssuas/enum_comp_metadata_type.go index e48aa1272..fa6375460 100644 --- a/pkg/dialects/avssuas/enum_comp_metadata_type.go +++ b/pkg/dialects/avssuas/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/avssuas/enum_esc_connection_type.go b/pkg/dialects/avssuas/enum_esc_connection_type.go index 2decd89de..968857755 100644 --- a/pkg/dialects/avssuas/enum_esc_connection_type.go +++ b/pkg/dialects/avssuas/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/avssuas/enum_esc_failure_flags.go b/pkg/dialects/avssuas/enum_esc_failure_flags.go index 10a4ae6f7..d0112037e 100644 --- a/pkg/dialects/avssuas/enum_esc_failure_flags.go +++ b/pkg/dialects/avssuas/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/avssuas/enum_estimator_status_flags.go b/pkg/dialects/avssuas/enum_estimator_status_flags.go index a391232d8..745284582 100644 --- a/pkg/dialects/avssuas/enum_estimator_status_flags.go +++ b/pkg/dialects/avssuas/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/avssuas/enum_failure_type.go b/pkg/dialects/avssuas/enum_failure_type.go index 6d40d3057..a6c5f0416 100644 --- a/pkg/dialects/avssuas/enum_failure_type.go +++ b/pkg/dialects/avssuas/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/avssuas/enum_failure_unit.go b/pkg/dialects/avssuas/enum_failure_unit.go index 9a9378ef3..9c4975a26 100644 --- a/pkg/dialects/avssuas/enum_failure_unit.go +++ b/pkg/dialects/avssuas/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/avssuas/enum_fence_action.go b/pkg/dialects/avssuas/enum_fence_action.go index 6f2dc57b2..1e0f4bd89 100644 --- a/pkg/dialects/avssuas/enum_fence_action.go +++ b/pkg/dialects/avssuas/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/avssuas/enum_fence_breach.go b/pkg/dialects/avssuas/enum_fence_breach.go index c8fad2521..ea4cc747a 100644 --- a/pkg/dialects/avssuas/enum_fence_breach.go +++ b/pkg/dialects/avssuas/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/avssuas/enum_fence_mitigate.go b/pkg/dialects/avssuas/enum_fence_mitigate.go index 330ff7437..bc9c0bb31 100644 --- a/pkg/dialects/avssuas/enum_fence_mitigate.go +++ b/pkg/dialects/avssuas/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/avssuas/enum_firmware_version_type.go b/pkg/dialects/avssuas/enum_firmware_version_type.go index 390cd8f70..b0c388383 100644 --- a/pkg/dialects/avssuas/enum_firmware_version_type.go +++ b/pkg/dialects/avssuas/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/avssuas/enum_gimbal_device_cap_flags.go b/pkg/dialects/avssuas/enum_gimbal_device_cap_flags.go index 1e85e8df2..1a1158ccd 100644 --- a/pkg/dialects/avssuas/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/avssuas/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/avssuas/enum_gimbal_device_error_flags.go b/pkg/dialects/avssuas/enum_gimbal_device_error_flags.go index bbe46fd29..fc8b514b8 100644 --- a/pkg/dialects/avssuas/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/avssuas/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/avssuas/enum_gimbal_device_flags.go b/pkg/dialects/avssuas/enum_gimbal_device_flags.go index 0f01e935a..4e5fdcae1 100644 --- a/pkg/dialects/avssuas/enum_gimbal_device_flags.go +++ b/pkg/dialects/avssuas/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/avssuas/enum_gimbal_manager_cap_flags.go b/pkg/dialects/avssuas/enum_gimbal_manager_cap_flags.go index fad2d109b..b8db69f5e 100644 --- a/pkg/dialects/avssuas/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/avssuas/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/avssuas/enum_gimbal_manager_flags.go b/pkg/dialects/avssuas/enum_gimbal_manager_flags.go index 001119b5f..4303fbcd7 100644 --- a/pkg/dialects/avssuas/enum_gimbal_manager_flags.go +++ b/pkg/dialects/avssuas/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/avssuas/enum_gps_fix_type.go b/pkg/dialects/avssuas/enum_gps_fix_type.go index 452797b3b..45ea5a5d8 100644 --- a/pkg/dialects/avssuas/enum_gps_fix_type.go +++ b/pkg/dialects/avssuas/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/avssuas/enum_gps_input_ignore_flags.go b/pkg/dialects/avssuas/enum_gps_input_ignore_flags.go index 8a2415748..df12bb24c 100644 --- a/pkg/dialects/avssuas/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/avssuas/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/avssuas/enum_gripper_actions.go b/pkg/dialects/avssuas/enum_gripper_actions.go index f4af6f3f2..daf71b7d7 100644 --- a/pkg/dialects/avssuas/enum_gripper_actions.go +++ b/pkg/dialects/avssuas/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/avssuas/enum_highres_imu_updated_flags.go b/pkg/dialects/avssuas/enum_highres_imu_updated_flags.go index e085a7308..2b7a57b9d 100644 --- a/pkg/dialects/avssuas/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/avssuas/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/avssuas/enum_hil_sensor_updated_flags.go b/pkg/dialects/avssuas/enum_hil_sensor_updated_flags.go index 54e3afa6e..c23ffb500 100644 --- a/pkg/dialects/avssuas/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/avssuas/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/avssuas/enum_hl_failure_flag.go b/pkg/dialects/avssuas/enum_hl_failure_flag.go index e5c9c7d23..3651ecceb 100644 --- a/pkg/dialects/avssuas/enum_hl_failure_flag.go +++ b/pkg/dialects/avssuas/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/avssuas/enum_landing_target_type.go b/pkg/dialects/avssuas/enum_landing_target_type.go index c52d3887a..a8b7f15bf 100644 --- a/pkg/dialects/avssuas/enum_landing_target_type.go +++ b/pkg/dialects/avssuas/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/avssuas/enum_mag_cal_status.go b/pkg/dialects/avssuas/enum_mag_cal_status.go index fe7be1d13..30d23b718 100644 --- a/pkg/dialects/avssuas/enum_mag_cal_status.go +++ b/pkg/dialects/avssuas/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/avssuas/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/avssuas/enum_mav_arm_auth_denied_reason.go index 7fb16baf4..62c505ac8 100644 --- a/pkg/dialects/avssuas/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/avssuas/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/avssuas/enum_mav_autopilot.go b/pkg/dialects/avssuas/enum_mav_autopilot.go index 6915386ed..9d430a5c2 100644 --- a/pkg/dialects/avssuas/enum_mav_autopilot.go +++ b/pkg/dialects/avssuas/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/avssuas/enum_mav_avss_command_failure_reason.go b/pkg/dialects/avssuas/enum_mav_avss_command_failure_reason.go index e5643ee1c..b6ee41e9c 100644 --- a/pkg/dialects/avssuas/enum_mav_avss_command_failure_reason.go +++ b/pkg/dialects/avssuas/enum_mav_avss_command_failure_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_AVSS_COMMAND_FAILURE_REASON int +type MAV_AVSS_COMMAND_FAILURE_REASON uint32 const ( // AVSS defined command failure reason. PRS not steady. diff --git a/pkg/dialects/avssuas/enum_mav_battery_charge_state.go b/pkg/dialects/avssuas/enum_mav_battery_charge_state.go index 4d4bbff5e..ea6913e0e 100644 --- a/pkg/dialects/avssuas/enum_mav_battery_charge_state.go +++ b/pkg/dialects/avssuas/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/avssuas/enum_mav_battery_fault.go b/pkg/dialects/avssuas/enum_mav_battery_fault.go index 5c5f26c28..740816765 100644 --- a/pkg/dialects/avssuas/enum_mav_battery_fault.go +++ b/pkg/dialects/avssuas/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/avssuas/enum_mav_battery_function.go b/pkg/dialects/avssuas/enum_mav_battery_function.go index b55926ceb..d0c1688a3 100644 --- a/pkg/dialects/avssuas/enum_mav_battery_function.go +++ b/pkg/dialects/avssuas/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/avssuas/enum_mav_battery_mode.go b/pkg/dialects/avssuas/enum_mav_battery_mode.go index 14677241e..a6adce7d6 100644 --- a/pkg/dialects/avssuas/enum_mav_battery_mode.go +++ b/pkg/dialects/avssuas/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/avssuas/enum_mav_battery_type.go b/pkg/dialects/avssuas/enum_mav_battery_type.go index 68075a2cc..39992d16d 100644 --- a/pkg/dialects/avssuas/enum_mav_battery_type.go +++ b/pkg/dialects/avssuas/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/avssuas/enum_mav_cmd.go b/pkg/dialects/avssuas/enum_mav_cmd.go index 3b52a335d..4a2adea12 100644 --- a/pkg/dialects/avssuas/enum_mav_cmd.go +++ b/pkg/dialects/avssuas/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/avssuas/enum_mav_cmd_ack.go b/pkg/dialects/avssuas/enum_mav_cmd_ack.go index 7a6762a79..5c61dac7f 100644 --- a/pkg/dialects/avssuas/enum_mav_cmd_ack.go +++ b/pkg/dialects/avssuas/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/avssuas/enum_mav_collision_action.go b/pkg/dialects/avssuas/enum_mav_collision_action.go index 7b169eeaf..85a036fe4 100644 --- a/pkg/dialects/avssuas/enum_mav_collision_action.go +++ b/pkg/dialects/avssuas/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/avssuas/enum_mav_collision_src.go b/pkg/dialects/avssuas/enum_mav_collision_src.go index 9b1976743..c467e1aba 100644 --- a/pkg/dialects/avssuas/enum_mav_collision_src.go +++ b/pkg/dialects/avssuas/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/avssuas/enum_mav_collision_threat_level.go b/pkg/dialects/avssuas/enum_mav_collision_threat_level.go index 8a34228bf..d35368b2f 100644 --- a/pkg/dialects/avssuas/enum_mav_collision_threat_level.go +++ b/pkg/dialects/avssuas/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/avssuas/enum_mav_component.go b/pkg/dialects/avssuas/enum_mav_component.go index 45a9f245d..cc999b4a1 100644 --- a/pkg/dialects/avssuas/enum_mav_component.go +++ b/pkg/dialects/avssuas/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/avssuas/enum_mav_data_stream.go b/pkg/dialects/avssuas/enum_mav_data_stream.go index 40b77d86a..90f7588ad 100644 --- a/pkg/dialects/avssuas/enum_mav_data_stream.go +++ b/pkg/dialects/avssuas/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/avssuas/enum_mav_distance_sensor.go b/pkg/dialects/avssuas/enum_mav_distance_sensor.go index 26d6622a8..263965d15 100644 --- a/pkg/dialects/avssuas/enum_mav_distance_sensor.go +++ b/pkg/dialects/avssuas/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/avssuas/enum_mav_do_reposition_flags.go b/pkg/dialects/avssuas/enum_mav_do_reposition_flags.go index 6b1403ab3..d7c6c82a2 100644 --- a/pkg/dialects/avssuas/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/avssuas/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/avssuas/enum_mav_estimator_type.go b/pkg/dialects/avssuas/enum_mav_estimator_type.go index ec301e754..c0eb43cf6 100644 --- a/pkg/dialects/avssuas/enum_mav_estimator_type.go +++ b/pkg/dialects/avssuas/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/avssuas/enum_mav_event_current_sequence_flags.go b/pkg/dialects/avssuas/enum_mav_event_current_sequence_flags.go index 0e925cdf1..5b565a709 100644 --- a/pkg/dialects/avssuas/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/avssuas/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/avssuas/enum_mav_event_error_reason.go b/pkg/dialects/avssuas/enum_mav_event_error_reason.go index 5b75b5dd9..eaf1e1de1 100644 --- a/pkg/dialects/avssuas/enum_mav_event_error_reason.go +++ b/pkg/dialects/avssuas/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/avssuas/enum_mav_frame.go b/pkg/dialects/avssuas/enum_mav_frame.go index 4e9b8384a..5a4c160ac 100644 --- a/pkg/dialects/avssuas/enum_mav_frame.go +++ b/pkg/dialects/avssuas/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/avssuas/enum_mav_generator_status_flag.go b/pkg/dialects/avssuas/enum_mav_generator_status_flag.go index 14565585e..d2bc7bdfe 100644 --- a/pkg/dialects/avssuas/enum_mav_generator_status_flag.go +++ b/pkg/dialects/avssuas/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/avssuas/enum_mav_goto.go b/pkg/dialects/avssuas/enum_mav_goto.go index 639406115..b455678f8 100644 --- a/pkg/dialects/avssuas/enum_mav_goto.go +++ b/pkg/dialects/avssuas/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/avssuas/enum_mav_landed_state.go b/pkg/dialects/avssuas/enum_mav_landed_state.go index 8e010acf7..65182a0c3 100644 --- a/pkg/dialects/avssuas/enum_mav_landed_state.go +++ b/pkg/dialects/avssuas/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/avssuas/enum_mav_mission_result.go b/pkg/dialects/avssuas/enum_mav_mission_result.go index dcb7b3ff3..fe0aafa2a 100644 --- a/pkg/dialects/avssuas/enum_mav_mission_result.go +++ b/pkg/dialects/avssuas/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/avssuas/enum_mav_mission_type.go b/pkg/dialects/avssuas/enum_mav_mission_type.go index 972b84648..9b204229f 100644 --- a/pkg/dialects/avssuas/enum_mav_mission_type.go +++ b/pkg/dialects/avssuas/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/avssuas/enum_mav_mode.go b/pkg/dialects/avssuas/enum_mav_mode.go index 706f8d527..cdbaf0b6c 100644 --- a/pkg/dialects/avssuas/enum_mav_mode.go +++ b/pkg/dialects/avssuas/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/avssuas/enum_mav_mode_flag.go b/pkg/dialects/avssuas/enum_mav_mode_flag.go index 404512528..ab0023f28 100644 --- a/pkg/dialects/avssuas/enum_mav_mode_flag.go +++ b/pkg/dialects/avssuas/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/avssuas/enum_mav_mode_flag_decode_position.go b/pkg/dialects/avssuas/enum_mav_mode_flag_decode_position.go index 673fe395c..f5e241ca1 100644 --- a/pkg/dialects/avssuas/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/avssuas/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/avssuas/enum_mav_mount_mode.go b/pkg/dialects/avssuas/enum_mav_mount_mode.go index 42f2f488c..9a3c6593e 100644 --- a/pkg/dialects/avssuas/enum_mav_mount_mode.go +++ b/pkg/dialects/avssuas/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/avssuas/enum_mav_odid_auth_type.go b/pkg/dialects/avssuas/enum_mav_odid_auth_type.go index 52b2c59b9..07ba7b094 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_auth_type.go +++ b/pkg/dialects/avssuas/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/avssuas/enum_mav_odid_category_eu.go b/pkg/dialects/avssuas/enum_mav_odid_category_eu.go index 1b66a373b..54b3f18a5 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_category_eu.go +++ b/pkg/dialects/avssuas/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/avssuas/enum_mav_odid_class_eu.go b/pkg/dialects/avssuas/enum_mav_odid_class_eu.go index ae5f053df..1c7dd64ff 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_class_eu.go +++ b/pkg/dialects/avssuas/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/avssuas/enum_mav_odid_classification_type.go b/pkg/dialects/avssuas/enum_mav_odid_classification_type.go index e9ea137f3..f4fc7b7cf 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_classification_type.go +++ b/pkg/dialects/avssuas/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/avssuas/enum_mav_odid_desc_type.go b/pkg/dialects/avssuas/enum_mav_odid_desc_type.go index 38653a351..1b87e35a6 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_desc_type.go +++ b/pkg/dialects/avssuas/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/avssuas/enum_mav_odid_height_ref.go b/pkg/dialects/avssuas/enum_mav_odid_height_ref.go index 584dea0df..1298d866f 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_height_ref.go +++ b/pkg/dialects/avssuas/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/avssuas/enum_mav_odid_hor_acc.go b/pkg/dialects/avssuas/enum_mav_odid_hor_acc.go index 1eb9699e8..8b173447a 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/avssuas/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/avssuas/enum_mav_odid_id_type.go b/pkg/dialects/avssuas/enum_mav_odid_id_type.go index d8c969054..fb45bc093 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_id_type.go +++ b/pkg/dialects/avssuas/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/avssuas/enum_mav_odid_operator_id_type.go b/pkg/dialects/avssuas/enum_mav_odid_operator_id_type.go index 2a215a7cf..16f8ca053 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/avssuas/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/avssuas/enum_mav_odid_operator_location_type.go b/pkg/dialects/avssuas/enum_mav_odid_operator_location_type.go index b144fece5..700d955c6 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/avssuas/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/avssuas/enum_mav_odid_speed_acc.go b/pkg/dialects/avssuas/enum_mav_odid_speed_acc.go index 5c5f08bf0..555a27ada 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/avssuas/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/avssuas/enum_mav_odid_status.go b/pkg/dialects/avssuas/enum_mav_odid_status.go index c6b267a64..19560e1ab 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_status.go +++ b/pkg/dialects/avssuas/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/avssuas/enum_mav_odid_time_acc.go b/pkg/dialects/avssuas/enum_mav_odid_time_acc.go index 21711217f..d367e0d85 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_time_acc.go +++ b/pkg/dialects/avssuas/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/avssuas/enum_mav_odid_ua_type.go b/pkg/dialects/avssuas/enum_mav_odid_ua_type.go index 267bf6cdf..60f8b2fde 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_ua_type.go +++ b/pkg/dialects/avssuas/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/avssuas/enum_mav_odid_ver_acc.go b/pkg/dialects/avssuas/enum_mav_odid_ver_acc.go index 0d57a8427..01bb3956b 100644 --- a/pkg/dialects/avssuas/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/avssuas/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/avssuas/enum_mav_param_ext_type.go b/pkg/dialects/avssuas/enum_mav_param_ext_type.go index c705edc4b..8abd337b8 100644 --- a/pkg/dialects/avssuas/enum_mav_param_ext_type.go +++ b/pkg/dialects/avssuas/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/avssuas/enum_mav_param_type.go b/pkg/dialects/avssuas/enum_mav_param_type.go index 35a76f325..38106820c 100644 --- a/pkg/dialects/avssuas/enum_mav_param_type.go +++ b/pkg/dialects/avssuas/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/avssuas/enum_mav_power_status.go b/pkg/dialects/avssuas/enum_mav_power_status.go index 2034da533..7905f8b0d 100644 --- a/pkg/dialects/avssuas/enum_mav_power_status.go +++ b/pkg/dialects/avssuas/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/avssuas/enum_mav_protocol_capability.go b/pkg/dialects/avssuas/enum_mav_protocol_capability.go index e0c481e88..542cdc352 100644 --- a/pkg/dialects/avssuas/enum_mav_protocol_capability.go +++ b/pkg/dialects/avssuas/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/avssuas/enum_mav_result.go b/pkg/dialects/avssuas/enum_mav_result.go index f3672afeb..e5cfe9eaf 100644 --- a/pkg/dialects/avssuas/enum_mav_result.go +++ b/pkg/dialects/avssuas/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/avssuas/enum_mav_roi.go b/pkg/dialects/avssuas/enum_mav_roi.go index 56f7bb07e..a0e6572b1 100644 --- a/pkg/dialects/avssuas/enum_mav_roi.go +++ b/pkg/dialects/avssuas/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/avssuas/enum_mav_sensor_orientation.go b/pkg/dialects/avssuas/enum_mav_sensor_orientation.go index b345c9a43..342cd6b85 100644 --- a/pkg/dialects/avssuas/enum_mav_sensor_orientation.go +++ b/pkg/dialects/avssuas/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/avssuas/enum_mav_severity.go b/pkg/dialects/avssuas/enum_mav_severity.go index e42da1676..824cd0149 100644 --- a/pkg/dialects/avssuas/enum_mav_severity.go +++ b/pkg/dialects/avssuas/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/avssuas/enum_mav_state.go b/pkg/dialects/avssuas/enum_mav_state.go index ca009887b..1670b1250 100644 --- a/pkg/dialects/avssuas/enum_mav_state.go +++ b/pkg/dialects/avssuas/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/avssuas/enum_mav_sys_status_sensor.go b/pkg/dialects/avssuas/enum_mav_sys_status_sensor.go index 88c5f39e0..379ac933f 100644 --- a/pkg/dialects/avssuas/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/avssuas/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/avssuas/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/avssuas/enum_mav_sys_status_sensor_extended.go index 092827225..4c98df3e6 100644 --- a/pkg/dialects/avssuas/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/avssuas/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/avssuas/enum_mav_tunnel_payload_type.go b/pkg/dialects/avssuas/enum_mav_tunnel_payload_type.go index 9e60f8ef3..79a1407e8 100644 --- a/pkg/dialects/avssuas/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/avssuas/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/avssuas/enum_mav_type.go b/pkg/dialects/avssuas/enum_mav_type.go index 2f7101e93..5e3bb172b 100644 --- a/pkg/dialects/avssuas/enum_mav_type.go +++ b/pkg/dialects/avssuas/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/avssuas/enum_mav_vtol_state.go b/pkg/dialects/avssuas/enum_mav_vtol_state.go index 74089da65..95fb8707b 100644 --- a/pkg/dialects/avssuas/enum_mav_vtol_state.go +++ b/pkg/dialects/avssuas/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/avssuas/enum_mav_winch_status_flag.go b/pkg/dialects/avssuas/enum_mav_winch_status_flag.go index 2e14dc0a6..0fc5bded0 100644 --- a/pkg/dialects/avssuas/enum_mav_winch_status_flag.go +++ b/pkg/dialects/avssuas/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/avssuas/enum_mavlink_data_stream_type.go b/pkg/dialects/avssuas/enum_mavlink_data_stream_type.go index e69e2e035..9d575833d 100644 --- a/pkg/dialects/avssuas/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/avssuas/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/avssuas/enum_motor_test_order.go b/pkg/dialects/avssuas/enum_motor_test_order.go index 17fdbf46f..b6b3974d3 100644 --- a/pkg/dialects/avssuas/enum_motor_test_order.go +++ b/pkg/dialects/avssuas/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/avssuas/enum_motor_test_throttle_type.go b/pkg/dialects/avssuas/enum_motor_test_throttle_type.go index f3381a4ea..e0a5ec63d 100644 --- a/pkg/dialects/avssuas/enum_motor_test_throttle_type.go +++ b/pkg/dialects/avssuas/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/avssuas/enum_nav_vtol_land_options.go b/pkg/dialects/avssuas/enum_nav_vtol_land_options.go index c24432f73..0976bf9ca 100644 --- a/pkg/dialects/avssuas/enum_nav_vtol_land_options.go +++ b/pkg/dialects/avssuas/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/avssuas/enum_orbit_yaw_behaviour.go b/pkg/dialects/avssuas/enum_orbit_yaw_behaviour.go index 430f6b8a7..3227c2bec 100644 --- a/pkg/dialects/avssuas/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/avssuas/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/avssuas/enum_parachute_action.go b/pkg/dialects/avssuas/enum_parachute_action.go index c44f7abe7..7a4e012bd 100644 --- a/pkg/dialects/avssuas/enum_parachute_action.go +++ b/pkg/dialects/avssuas/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/avssuas/enum_param_ack.go b/pkg/dialects/avssuas/enum_param_ack.go index 60ca12a71..dda369a2f 100644 --- a/pkg/dialects/avssuas/enum_param_ack.go +++ b/pkg/dialects/avssuas/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/avssuas/enum_position_target_typemask.go b/pkg/dialects/avssuas/enum_position_target_typemask.go index 40e016012..ed1a57016 100644 --- a/pkg/dialects/avssuas/enum_position_target_typemask.go +++ b/pkg/dialects/avssuas/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/avssuas/enum_precision_land_mode.go b/pkg/dialects/avssuas/enum_precision_land_mode.go index 09bdd6c74..548e5d88a 100644 --- a/pkg/dialects/avssuas/enum_precision_land_mode.go +++ b/pkg/dialects/avssuas/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/avssuas/enum_rc_type.go b/pkg/dialects/avssuas/enum_rc_type.go index d4cf69ce6..3a80d5629 100644 --- a/pkg/dialects/avssuas/enum_rc_type.go +++ b/pkg/dialects/avssuas/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/avssuas/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/avssuas/enum_rtk_baseline_coordinate_system.go index 8c3fa6db5..0dce38a8a 100644 --- a/pkg/dialects/avssuas/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/avssuas/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/avssuas/enum_serial_control_dev.go b/pkg/dialects/avssuas/enum_serial_control_dev.go index 395aad9a7..ce4c5f464 100644 --- a/pkg/dialects/avssuas/enum_serial_control_dev.go +++ b/pkg/dialects/avssuas/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/avssuas/enum_serial_control_flag.go b/pkg/dialects/avssuas/enum_serial_control_flag.go index 3ba02c2de..f7136c8c0 100644 --- a/pkg/dialects/avssuas/enum_serial_control_flag.go +++ b/pkg/dialects/avssuas/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/avssuas/enum_set_focus_type.go b/pkg/dialects/avssuas/enum_set_focus_type.go index f6fd245dc..f4b783a57 100644 --- a/pkg/dialects/avssuas/enum_set_focus_type.go +++ b/pkg/dialects/avssuas/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/avssuas/enum_storage_status.go b/pkg/dialects/avssuas/enum_storage_status.go index 306a06c5e..efa352273 100644 --- a/pkg/dialects/avssuas/enum_storage_status.go +++ b/pkg/dialects/avssuas/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/avssuas/enum_storage_type.go b/pkg/dialects/avssuas/enum_storage_type.go index 4dbac2d05..40a318afd 100644 --- a/pkg/dialects/avssuas/enum_storage_type.go +++ b/pkg/dialects/avssuas/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/avssuas/enum_storage_usage_flag.go b/pkg/dialects/avssuas/enum_storage_usage_flag.go index 29ae18c70..0f896b5e0 100644 --- a/pkg/dialects/avssuas/enum_storage_usage_flag.go +++ b/pkg/dialects/avssuas/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/avssuas/enum_tune_format.go b/pkg/dialects/avssuas/enum_tune_format.go index 0fdd14e46..06fd5eb9b 100644 --- a/pkg/dialects/avssuas/enum_tune_format.go +++ b/pkg/dialects/avssuas/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/avssuas/enum_uavcan_node_health.go b/pkg/dialects/avssuas/enum_uavcan_node_health.go index 23f32f07d..f8dd55cc2 100644 --- a/pkg/dialects/avssuas/enum_uavcan_node_health.go +++ b/pkg/dialects/avssuas/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/avssuas/enum_uavcan_node_mode.go b/pkg/dialects/avssuas/enum_uavcan_node_mode.go index 1b979bb71..7519bc62b 100644 --- a/pkg/dialects/avssuas/enum_uavcan_node_mode.go +++ b/pkg/dialects/avssuas/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/avssuas/enum_utm_data_avail_flags.go b/pkg/dialects/avssuas/enum_utm_data_avail_flags.go index 73626e5d3..2c8dc9529 100644 --- a/pkg/dialects/avssuas/enum_utm_data_avail_flags.go +++ b/pkg/dialects/avssuas/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/avssuas/enum_utm_flight_state.go b/pkg/dialects/avssuas/enum_utm_flight_state.go index 956b94027..5d39a1320 100644 --- a/pkg/dialects/avssuas/enum_utm_flight_state.go +++ b/pkg/dialects/avssuas/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/avssuas/enum_video_stream_status_flags.go b/pkg/dialects/avssuas/enum_video_stream_status_flags.go index c08194649..1993a944b 100644 --- a/pkg/dialects/avssuas/enum_video_stream_status_flags.go +++ b/pkg/dialects/avssuas/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/avssuas/enum_video_stream_type.go b/pkg/dialects/avssuas/enum_video_stream_type.go index 6547ba17e..a4cf1f50f 100644 --- a/pkg/dialects/avssuas/enum_video_stream_type.go +++ b/pkg/dialects/avssuas/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/avssuas/enum_vtol_transition_heading.go b/pkg/dialects/avssuas/enum_vtol_transition_heading.go index ec3400620..bf2890798 100644 --- a/pkg/dialects/avssuas/enum_vtol_transition_heading.go +++ b/pkg/dialects/avssuas/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/avssuas/enum_wifi_config_ap_mode.go b/pkg/dialects/avssuas/enum_wifi_config_ap_mode.go index 6d058efef..196d5e1aa 100644 --- a/pkg/dialects/avssuas/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/avssuas/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/avssuas/enum_wifi_config_ap_response.go b/pkg/dialects/avssuas/enum_wifi_config_ap_response.go index f995e5e0d..f7edc9cfc 100644 --- a/pkg/dialects/avssuas/enum_wifi_config_ap_response.go +++ b/pkg/dialects/avssuas/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/avssuas/enum_winch_actions.go b/pkg/dialects/avssuas/enum_winch_actions.go index 9085e6d76..81876b10e 100644 --- a/pkg/dialects/avssuas/enum_winch_actions.go +++ b/pkg/dialects/avssuas/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/common/enum_actuator_configuration.go b/pkg/dialects/common/enum_actuator_configuration.go index 904fdddb8..d4923a2ca 100644 --- a/pkg/dialects/common/enum_actuator_configuration.go +++ b/pkg/dialects/common/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/common/enum_actuator_output_function.go b/pkg/dialects/common/enum_actuator_output_function.go index 7797a7684..a26cad1f3 100644 --- a/pkg/dialects/common/enum_actuator_output_function.go +++ b/pkg/dialects/common/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/common/enum_adsb_altitude_type.go b/pkg/dialects/common/enum_adsb_altitude_type.go index ffa2fe2e4..2801de74c 100644 --- a/pkg/dialects/common/enum_adsb_altitude_type.go +++ b/pkg/dialects/common/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/common/enum_adsb_emitter_type.go b/pkg/dialects/common/enum_adsb_emitter_type.go index 2d7023a47..e62aca30e 100644 --- a/pkg/dialects/common/enum_adsb_emitter_type.go +++ b/pkg/dialects/common/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/common/enum_adsb_flags.go b/pkg/dialects/common/enum_adsb_flags.go index bb5ba9686..e81d3b416 100644 --- a/pkg/dialects/common/enum_adsb_flags.go +++ b/pkg/dialects/common/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/common/enum_ais_flags.go b/pkg/dialects/common/enum_ais_flags.go index 635198a80..f57eb86dd 100644 --- a/pkg/dialects/common/enum_ais_flags.go +++ b/pkg/dialects/common/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/common/enum_ais_nav_status.go b/pkg/dialects/common/enum_ais_nav_status.go index 3a8aad68d..7c641ce3d 100644 --- a/pkg/dialects/common/enum_ais_nav_status.go +++ b/pkg/dialects/common/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/common/enum_ais_type.go b/pkg/dialects/common/enum_ais_type.go index 3e4096820..5ed4cd0c1 100644 --- a/pkg/dialects/common/enum_ais_type.go +++ b/pkg/dialects/common/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/common/enum_attitude_target_typemask.go b/pkg/dialects/common/enum_attitude_target_typemask.go index 54c3b5686..bc6e94698 100644 --- a/pkg/dialects/common/enum_attitude_target_typemask.go +++ b/pkg/dialects/common/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/common/enum_autotune_axis.go b/pkg/dialects/common/enum_autotune_axis.go index 9e8efe5a4..6fd9e8cbd 100644 --- a/pkg/dialects/common/enum_autotune_axis.go +++ b/pkg/dialects/common/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/common/enum_camera_cap_flags.go b/pkg/dialects/common/enum_camera_cap_flags.go index afdece10b..f4b56fa1a 100644 --- a/pkg/dialects/common/enum_camera_cap_flags.go +++ b/pkg/dialects/common/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/common/enum_camera_mode.go b/pkg/dialects/common/enum_camera_mode.go index 97cc848ff..c0ab8c210 100644 --- a/pkg/dialects/common/enum_camera_mode.go +++ b/pkg/dialects/common/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/common/enum_camera_tracking_mode.go b/pkg/dialects/common/enum_camera_tracking_mode.go index 5eb7bac15..e4eced980 100644 --- a/pkg/dialects/common/enum_camera_tracking_mode.go +++ b/pkg/dialects/common/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/common/enum_camera_tracking_status_flags.go b/pkg/dialects/common/enum_camera_tracking_status_flags.go index 9cc999686..ea06b4beb 100644 --- a/pkg/dialects/common/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/common/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/common/enum_camera_tracking_target_data.go b/pkg/dialects/common/enum_camera_tracking_target_data.go index 02c0df929..f990ef7b4 100644 --- a/pkg/dialects/common/enum_camera_tracking_target_data.go +++ b/pkg/dialects/common/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/common/enum_camera_zoom_type.go b/pkg/dialects/common/enum_camera_zoom_type.go index 97e68a00a..e354751ff 100644 --- a/pkg/dialects/common/enum_camera_zoom_type.go +++ b/pkg/dialects/common/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/common/enum_cellular_config_response.go b/pkg/dialects/common/enum_cellular_config_response.go index b0d179b7c..8a46874a9 100644 --- a/pkg/dialects/common/enum_cellular_config_response.go +++ b/pkg/dialects/common/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/common/enum_cellular_network_failed_reason.go b/pkg/dialects/common/enum_cellular_network_failed_reason.go index ea76a28a9..973ca5329 100644 --- a/pkg/dialects/common/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/common/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/common/enum_cellular_network_radio_type.go b/pkg/dialects/common/enum_cellular_network_radio_type.go index 28d92892d..6b22f1111 100644 --- a/pkg/dialects/common/enum_cellular_network_radio_type.go +++ b/pkg/dialects/common/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/common/enum_cellular_status_flag.go b/pkg/dialects/common/enum_cellular_status_flag.go index f1e8bf4e9..c485c1ba6 100644 --- a/pkg/dialects/common/enum_cellular_status_flag.go +++ b/pkg/dialects/common/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/common/enum_comp_metadata_type.go b/pkg/dialects/common/enum_comp_metadata_type.go index 705ddc70a..06b875ac5 100644 --- a/pkg/dialects/common/enum_comp_metadata_type.go +++ b/pkg/dialects/common/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/common/enum_esc_connection_type.go b/pkg/dialects/common/enum_esc_connection_type.go index 64a078f0a..6becc90b1 100644 --- a/pkg/dialects/common/enum_esc_connection_type.go +++ b/pkg/dialects/common/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/common/enum_esc_failure_flags.go b/pkg/dialects/common/enum_esc_failure_flags.go index 3710bd66d..3dca1c10c 100644 --- a/pkg/dialects/common/enum_esc_failure_flags.go +++ b/pkg/dialects/common/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/common/enum_estimator_status_flags.go b/pkg/dialects/common/enum_estimator_status_flags.go index 4b6a999bb..2ffe06b7c 100644 --- a/pkg/dialects/common/enum_estimator_status_flags.go +++ b/pkg/dialects/common/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/common/enum_failure_type.go b/pkg/dialects/common/enum_failure_type.go index 0376b57a4..a912e2d9c 100644 --- a/pkg/dialects/common/enum_failure_type.go +++ b/pkg/dialects/common/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/common/enum_failure_unit.go b/pkg/dialects/common/enum_failure_unit.go index a15e36e95..caf532d54 100644 --- a/pkg/dialects/common/enum_failure_unit.go +++ b/pkg/dialects/common/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/common/enum_fence_action.go b/pkg/dialects/common/enum_fence_action.go index 9cf452210..e2a0075ea 100644 --- a/pkg/dialects/common/enum_fence_action.go +++ b/pkg/dialects/common/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/common/enum_fence_breach.go b/pkg/dialects/common/enum_fence_breach.go index f5cc38c2c..d4fcda758 100644 --- a/pkg/dialects/common/enum_fence_breach.go +++ b/pkg/dialects/common/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/common/enum_fence_mitigate.go b/pkg/dialects/common/enum_fence_mitigate.go index 04552d50f..c5ae7e88c 100644 --- a/pkg/dialects/common/enum_fence_mitigate.go +++ b/pkg/dialects/common/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/common/enum_firmware_version_type.go b/pkg/dialects/common/enum_firmware_version_type.go index d4f64bdef..f57a42b9b 100644 --- a/pkg/dialects/common/enum_firmware_version_type.go +++ b/pkg/dialects/common/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/common/enum_gimbal_device_cap_flags.go b/pkg/dialects/common/enum_gimbal_device_cap_flags.go index 7104c697d..50b22d6e1 100644 --- a/pkg/dialects/common/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/common/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/common/enum_gimbal_device_error_flags.go b/pkg/dialects/common/enum_gimbal_device_error_flags.go index 090f62204..cd10fd234 100644 --- a/pkg/dialects/common/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/common/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/common/enum_gimbal_device_flags.go b/pkg/dialects/common/enum_gimbal_device_flags.go index 274fdea64..960fff4e3 100644 --- a/pkg/dialects/common/enum_gimbal_device_flags.go +++ b/pkg/dialects/common/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/common/enum_gimbal_manager_cap_flags.go b/pkg/dialects/common/enum_gimbal_manager_cap_flags.go index 8dc023c62..2e7f19e1e 100644 --- a/pkg/dialects/common/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/common/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/common/enum_gimbal_manager_flags.go b/pkg/dialects/common/enum_gimbal_manager_flags.go index d339640e6..2aa2704fd 100644 --- a/pkg/dialects/common/enum_gimbal_manager_flags.go +++ b/pkg/dialects/common/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/common/enum_gps_fix_type.go b/pkg/dialects/common/enum_gps_fix_type.go index e1c0169db..363ab093f 100644 --- a/pkg/dialects/common/enum_gps_fix_type.go +++ b/pkg/dialects/common/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/common/enum_gps_input_ignore_flags.go b/pkg/dialects/common/enum_gps_input_ignore_flags.go index 02989247a..c75cc13d9 100644 --- a/pkg/dialects/common/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/common/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/common/enum_gripper_actions.go b/pkg/dialects/common/enum_gripper_actions.go index 4ec9dcbe8..275fdfb15 100644 --- a/pkg/dialects/common/enum_gripper_actions.go +++ b/pkg/dialects/common/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/common/enum_highres_imu_updated_flags.go b/pkg/dialects/common/enum_highres_imu_updated_flags.go index 2ab9cc855..43eee2801 100644 --- a/pkg/dialects/common/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/common/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/common/enum_hil_sensor_updated_flags.go b/pkg/dialects/common/enum_hil_sensor_updated_flags.go index 54a81c5e8..398d73e2a 100644 --- a/pkg/dialects/common/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/common/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/common/enum_hl_failure_flag.go b/pkg/dialects/common/enum_hl_failure_flag.go index de6d0724b..9a10a3996 100644 --- a/pkg/dialects/common/enum_hl_failure_flag.go +++ b/pkg/dialects/common/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/common/enum_landing_target_type.go b/pkg/dialects/common/enum_landing_target_type.go index 4a4af57b8..380227f1e 100644 --- a/pkg/dialects/common/enum_landing_target_type.go +++ b/pkg/dialects/common/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/common/enum_mag_cal_status.go b/pkg/dialects/common/enum_mag_cal_status.go index 579a582f5..0dbe38efc 100644 --- a/pkg/dialects/common/enum_mag_cal_status.go +++ b/pkg/dialects/common/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/common/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/common/enum_mav_arm_auth_denied_reason.go index 00457c848..78964134f 100644 --- a/pkg/dialects/common/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/common/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/common/enum_mav_autopilot.go b/pkg/dialects/common/enum_mav_autopilot.go index 2595e5731..0df98c267 100644 --- a/pkg/dialects/common/enum_mav_autopilot.go +++ b/pkg/dialects/common/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/common/enum_mav_battery_charge_state.go b/pkg/dialects/common/enum_mav_battery_charge_state.go index affa59856..238c5d309 100644 --- a/pkg/dialects/common/enum_mav_battery_charge_state.go +++ b/pkg/dialects/common/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/common/enum_mav_battery_fault.go b/pkg/dialects/common/enum_mav_battery_fault.go index 94a5220b7..dd2277f1a 100644 --- a/pkg/dialects/common/enum_mav_battery_fault.go +++ b/pkg/dialects/common/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/common/enum_mav_battery_function.go b/pkg/dialects/common/enum_mav_battery_function.go index 1fbd1af73..59d55f3c6 100644 --- a/pkg/dialects/common/enum_mav_battery_function.go +++ b/pkg/dialects/common/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/common/enum_mav_battery_mode.go b/pkg/dialects/common/enum_mav_battery_mode.go index 5bae083cf..fb811e459 100644 --- a/pkg/dialects/common/enum_mav_battery_mode.go +++ b/pkg/dialects/common/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/common/enum_mav_battery_type.go b/pkg/dialects/common/enum_mav_battery_type.go index 06935a47e..39f8875a2 100644 --- a/pkg/dialects/common/enum_mav_battery_type.go +++ b/pkg/dialects/common/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/common/enum_mav_cmd.go b/pkg/dialects/common/enum_mav_cmd.go index 73c681ea4..05e19ad20 100644 --- a/pkg/dialects/common/enum_mav_cmd.go +++ b/pkg/dialects/common/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/common/enum_mav_cmd_ack.go b/pkg/dialects/common/enum_mav_cmd_ack.go index a54aa0b7d..13997cdec 100644 --- a/pkg/dialects/common/enum_mav_cmd_ack.go +++ b/pkg/dialects/common/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/common/enum_mav_collision_action.go b/pkg/dialects/common/enum_mav_collision_action.go index 8e1d323ab..503daee5a 100644 --- a/pkg/dialects/common/enum_mav_collision_action.go +++ b/pkg/dialects/common/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/common/enum_mav_collision_src.go b/pkg/dialects/common/enum_mav_collision_src.go index cd545ecae..72b03354e 100644 --- a/pkg/dialects/common/enum_mav_collision_src.go +++ b/pkg/dialects/common/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/common/enum_mav_collision_threat_level.go b/pkg/dialects/common/enum_mav_collision_threat_level.go index f38bccfac..559d5ac85 100644 --- a/pkg/dialects/common/enum_mav_collision_threat_level.go +++ b/pkg/dialects/common/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/common/enum_mav_component.go b/pkg/dialects/common/enum_mav_component.go index 1f1952a55..cbc50eb7d 100644 --- a/pkg/dialects/common/enum_mav_component.go +++ b/pkg/dialects/common/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/common/enum_mav_data_stream.go b/pkg/dialects/common/enum_mav_data_stream.go index aff53c90f..942cc92e7 100644 --- a/pkg/dialects/common/enum_mav_data_stream.go +++ b/pkg/dialects/common/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/common/enum_mav_distance_sensor.go b/pkg/dialects/common/enum_mav_distance_sensor.go index f46d55b62..d1cbf0bea 100644 --- a/pkg/dialects/common/enum_mav_distance_sensor.go +++ b/pkg/dialects/common/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/common/enum_mav_do_reposition_flags.go b/pkg/dialects/common/enum_mav_do_reposition_flags.go index 25e25e1d9..efbce00db 100644 --- a/pkg/dialects/common/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/common/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/common/enum_mav_estimator_type.go b/pkg/dialects/common/enum_mav_estimator_type.go index ca7a9b726..e76496d99 100644 --- a/pkg/dialects/common/enum_mav_estimator_type.go +++ b/pkg/dialects/common/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/common/enum_mav_event_current_sequence_flags.go b/pkg/dialects/common/enum_mav_event_current_sequence_flags.go index 4082b46b3..1bf0034a5 100644 --- a/pkg/dialects/common/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/common/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/common/enum_mav_event_error_reason.go b/pkg/dialects/common/enum_mav_event_error_reason.go index 8a7ce509e..0c8c47537 100644 --- a/pkg/dialects/common/enum_mav_event_error_reason.go +++ b/pkg/dialects/common/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/common/enum_mav_frame.go b/pkg/dialects/common/enum_mav_frame.go index 46a06be94..dde3e16c3 100644 --- a/pkg/dialects/common/enum_mav_frame.go +++ b/pkg/dialects/common/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/common/enum_mav_generator_status_flag.go b/pkg/dialects/common/enum_mav_generator_status_flag.go index 97e6b647e..e66731979 100644 --- a/pkg/dialects/common/enum_mav_generator_status_flag.go +++ b/pkg/dialects/common/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/common/enum_mav_goto.go b/pkg/dialects/common/enum_mav_goto.go index 187bd1ea2..13c04ce8b 100644 --- a/pkg/dialects/common/enum_mav_goto.go +++ b/pkg/dialects/common/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/common/enum_mav_landed_state.go b/pkg/dialects/common/enum_mav_landed_state.go index 1fcc2debe..fa66adec1 100644 --- a/pkg/dialects/common/enum_mav_landed_state.go +++ b/pkg/dialects/common/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/common/enum_mav_mission_result.go b/pkg/dialects/common/enum_mav_mission_result.go index 1b46fdaa2..a08181823 100644 --- a/pkg/dialects/common/enum_mav_mission_result.go +++ b/pkg/dialects/common/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/common/enum_mav_mission_type.go b/pkg/dialects/common/enum_mav_mission_type.go index d461d24c5..f0484e24d 100644 --- a/pkg/dialects/common/enum_mav_mission_type.go +++ b/pkg/dialects/common/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/common/enum_mav_mode.go b/pkg/dialects/common/enum_mav_mode.go index ed96592ad..0ceeaae46 100644 --- a/pkg/dialects/common/enum_mav_mode.go +++ b/pkg/dialects/common/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/common/enum_mav_mode_flag.go b/pkg/dialects/common/enum_mav_mode_flag.go index 6e53296b0..0e48b49ef 100644 --- a/pkg/dialects/common/enum_mav_mode_flag.go +++ b/pkg/dialects/common/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/common/enum_mav_mode_flag_decode_position.go b/pkg/dialects/common/enum_mav_mode_flag_decode_position.go index 9a279da27..12ee51978 100644 --- a/pkg/dialects/common/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/common/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/common/enum_mav_mount_mode.go b/pkg/dialects/common/enum_mav_mount_mode.go index feddf6458..d3861e160 100644 --- a/pkg/dialects/common/enum_mav_mount_mode.go +++ b/pkg/dialects/common/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/common/enum_mav_odid_auth_type.go b/pkg/dialects/common/enum_mav_odid_auth_type.go index fe0c864f9..fb36e9f21 100644 --- a/pkg/dialects/common/enum_mav_odid_auth_type.go +++ b/pkg/dialects/common/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/common/enum_mav_odid_category_eu.go b/pkg/dialects/common/enum_mav_odid_category_eu.go index b04d43d20..83f020fa5 100644 --- a/pkg/dialects/common/enum_mav_odid_category_eu.go +++ b/pkg/dialects/common/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/common/enum_mav_odid_class_eu.go b/pkg/dialects/common/enum_mav_odid_class_eu.go index 19df98858..90b56109d 100644 --- a/pkg/dialects/common/enum_mav_odid_class_eu.go +++ b/pkg/dialects/common/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/common/enum_mav_odid_classification_type.go b/pkg/dialects/common/enum_mav_odid_classification_type.go index fa6c8efad..bd1fdc70e 100644 --- a/pkg/dialects/common/enum_mav_odid_classification_type.go +++ b/pkg/dialects/common/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/common/enum_mav_odid_desc_type.go b/pkg/dialects/common/enum_mav_odid_desc_type.go index 7cc71f574..f82df2d00 100644 --- a/pkg/dialects/common/enum_mav_odid_desc_type.go +++ b/pkg/dialects/common/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/common/enum_mav_odid_height_ref.go b/pkg/dialects/common/enum_mav_odid_height_ref.go index 84ef7f516..bf906bb29 100644 --- a/pkg/dialects/common/enum_mav_odid_height_ref.go +++ b/pkg/dialects/common/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/common/enum_mav_odid_hor_acc.go b/pkg/dialects/common/enum_mav_odid_hor_acc.go index 2979d29ed..2d4c767c9 100644 --- a/pkg/dialects/common/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/common/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/common/enum_mav_odid_id_type.go b/pkg/dialects/common/enum_mav_odid_id_type.go index 1d2f1bff0..c089f7291 100644 --- a/pkg/dialects/common/enum_mav_odid_id_type.go +++ b/pkg/dialects/common/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/common/enum_mav_odid_operator_id_type.go b/pkg/dialects/common/enum_mav_odid_operator_id_type.go index eee0a3817..b5bf8fd1a 100644 --- a/pkg/dialects/common/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/common/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/common/enum_mav_odid_operator_location_type.go b/pkg/dialects/common/enum_mav_odid_operator_location_type.go index 5ab3278e3..524d735ee 100644 --- a/pkg/dialects/common/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/common/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/common/enum_mav_odid_speed_acc.go b/pkg/dialects/common/enum_mav_odid_speed_acc.go index 97fccae42..1d36142ce 100644 --- a/pkg/dialects/common/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/common/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/common/enum_mav_odid_status.go b/pkg/dialects/common/enum_mav_odid_status.go index 564ab6bbc..54bdcdd28 100644 --- a/pkg/dialects/common/enum_mav_odid_status.go +++ b/pkg/dialects/common/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/common/enum_mav_odid_time_acc.go b/pkg/dialects/common/enum_mav_odid_time_acc.go index 699a2e02b..c6752c40b 100644 --- a/pkg/dialects/common/enum_mav_odid_time_acc.go +++ b/pkg/dialects/common/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/common/enum_mav_odid_ua_type.go b/pkg/dialects/common/enum_mav_odid_ua_type.go index e23075e1f..abee12d75 100644 --- a/pkg/dialects/common/enum_mav_odid_ua_type.go +++ b/pkg/dialects/common/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/common/enum_mav_odid_ver_acc.go b/pkg/dialects/common/enum_mav_odid_ver_acc.go index b23827ab1..8a0cdda77 100644 --- a/pkg/dialects/common/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/common/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/common/enum_mav_param_ext_type.go b/pkg/dialects/common/enum_mav_param_ext_type.go index 445ffcd69..417966d82 100644 --- a/pkg/dialects/common/enum_mav_param_ext_type.go +++ b/pkg/dialects/common/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/common/enum_mav_param_type.go b/pkg/dialects/common/enum_mav_param_type.go index 0ff1a036d..a9bba03e4 100644 --- a/pkg/dialects/common/enum_mav_param_type.go +++ b/pkg/dialects/common/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/common/enum_mav_power_status.go b/pkg/dialects/common/enum_mav_power_status.go index 6618df7e0..0c0b8adf3 100644 --- a/pkg/dialects/common/enum_mav_power_status.go +++ b/pkg/dialects/common/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/common/enum_mav_protocol_capability.go b/pkg/dialects/common/enum_mav_protocol_capability.go index 21f9ec0a0..7b8d828fe 100644 --- a/pkg/dialects/common/enum_mav_protocol_capability.go +++ b/pkg/dialects/common/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/common/enum_mav_result.go b/pkg/dialects/common/enum_mav_result.go index afacdc962..b05c3b38c 100644 --- a/pkg/dialects/common/enum_mav_result.go +++ b/pkg/dialects/common/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/common/enum_mav_roi.go b/pkg/dialects/common/enum_mav_roi.go index 39e9b4e13..381ed04d7 100644 --- a/pkg/dialects/common/enum_mav_roi.go +++ b/pkg/dialects/common/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/common/enum_mav_sensor_orientation.go b/pkg/dialects/common/enum_mav_sensor_orientation.go index 8024d75a5..91d81c160 100644 --- a/pkg/dialects/common/enum_mav_sensor_orientation.go +++ b/pkg/dialects/common/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/common/enum_mav_severity.go b/pkg/dialects/common/enum_mav_severity.go index c24dfd375..535b423a1 100644 --- a/pkg/dialects/common/enum_mav_severity.go +++ b/pkg/dialects/common/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/common/enum_mav_state.go b/pkg/dialects/common/enum_mav_state.go index e3c93e37a..c0b93b973 100644 --- a/pkg/dialects/common/enum_mav_state.go +++ b/pkg/dialects/common/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/common/enum_mav_sys_status_sensor.go b/pkg/dialects/common/enum_mav_sys_status_sensor.go index a4b2dbda0..d90c5313a 100644 --- a/pkg/dialects/common/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/common/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/common/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/common/enum_mav_sys_status_sensor_extended.go index 04af17e5d..adc8c380d 100644 --- a/pkg/dialects/common/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/common/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/common/enum_mav_tunnel_payload_type.go b/pkg/dialects/common/enum_mav_tunnel_payload_type.go index 0a5759182..a5f0928f1 100644 --- a/pkg/dialects/common/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/common/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/common/enum_mav_type.go b/pkg/dialects/common/enum_mav_type.go index b6208dd20..d86274d3d 100644 --- a/pkg/dialects/common/enum_mav_type.go +++ b/pkg/dialects/common/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/common/enum_mav_vtol_state.go b/pkg/dialects/common/enum_mav_vtol_state.go index 83c312e8f..358da45b3 100644 --- a/pkg/dialects/common/enum_mav_vtol_state.go +++ b/pkg/dialects/common/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/common/enum_mav_winch_status_flag.go b/pkg/dialects/common/enum_mav_winch_status_flag.go index 412e07d75..e01c4dda5 100644 --- a/pkg/dialects/common/enum_mav_winch_status_flag.go +++ b/pkg/dialects/common/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/common/enum_mavlink_data_stream_type.go b/pkg/dialects/common/enum_mavlink_data_stream_type.go index c5f810006..db8785792 100644 --- a/pkg/dialects/common/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/common/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/common/enum_motor_test_order.go b/pkg/dialects/common/enum_motor_test_order.go index d98ebb60e..03160baf9 100644 --- a/pkg/dialects/common/enum_motor_test_order.go +++ b/pkg/dialects/common/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/common/enum_motor_test_throttle_type.go b/pkg/dialects/common/enum_motor_test_throttle_type.go index 1335eab8c..82aa73b37 100644 --- a/pkg/dialects/common/enum_motor_test_throttle_type.go +++ b/pkg/dialects/common/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/common/enum_nav_vtol_land_options.go b/pkg/dialects/common/enum_nav_vtol_land_options.go index bf79fc70a..07871f685 100644 --- a/pkg/dialects/common/enum_nav_vtol_land_options.go +++ b/pkg/dialects/common/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/common/enum_orbit_yaw_behaviour.go b/pkg/dialects/common/enum_orbit_yaw_behaviour.go index 47a8673a5..1e9c15748 100644 --- a/pkg/dialects/common/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/common/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/common/enum_parachute_action.go b/pkg/dialects/common/enum_parachute_action.go index 1ff5baa88..5629aa4f9 100644 --- a/pkg/dialects/common/enum_parachute_action.go +++ b/pkg/dialects/common/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/common/enum_param_ack.go b/pkg/dialects/common/enum_param_ack.go index c2954de26..d44256380 100644 --- a/pkg/dialects/common/enum_param_ack.go +++ b/pkg/dialects/common/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/common/enum_position_target_typemask.go b/pkg/dialects/common/enum_position_target_typemask.go index cd86a40a1..544382be7 100644 --- a/pkg/dialects/common/enum_position_target_typemask.go +++ b/pkg/dialects/common/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/common/enum_precision_land_mode.go b/pkg/dialects/common/enum_precision_land_mode.go index 5a51d9a5b..98139eeed 100644 --- a/pkg/dialects/common/enum_precision_land_mode.go +++ b/pkg/dialects/common/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/common/enum_rc_type.go b/pkg/dialects/common/enum_rc_type.go index e04b8ba97..9287de1ba 100644 --- a/pkg/dialects/common/enum_rc_type.go +++ b/pkg/dialects/common/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/common/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/common/enum_rtk_baseline_coordinate_system.go index 38fddaf93..83e9946b1 100644 --- a/pkg/dialects/common/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/common/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/common/enum_serial_control_dev.go b/pkg/dialects/common/enum_serial_control_dev.go index 030d0723e..a7c6b6bcc 100644 --- a/pkg/dialects/common/enum_serial_control_dev.go +++ b/pkg/dialects/common/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/common/enum_serial_control_flag.go b/pkg/dialects/common/enum_serial_control_flag.go index 8ba19df25..506d34c83 100644 --- a/pkg/dialects/common/enum_serial_control_flag.go +++ b/pkg/dialects/common/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/common/enum_set_focus_type.go b/pkg/dialects/common/enum_set_focus_type.go index 72085f22d..ccb57b81d 100644 --- a/pkg/dialects/common/enum_set_focus_type.go +++ b/pkg/dialects/common/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/common/enum_storage_status.go b/pkg/dialects/common/enum_storage_status.go index 99887eeb9..60aea370e 100644 --- a/pkg/dialects/common/enum_storage_status.go +++ b/pkg/dialects/common/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/common/enum_storage_type.go b/pkg/dialects/common/enum_storage_type.go index 061b411c2..c36015382 100644 --- a/pkg/dialects/common/enum_storage_type.go +++ b/pkg/dialects/common/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/common/enum_storage_usage_flag.go b/pkg/dialects/common/enum_storage_usage_flag.go index 06044aa83..e7925e892 100644 --- a/pkg/dialects/common/enum_storage_usage_flag.go +++ b/pkg/dialects/common/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/common/enum_tune_format.go b/pkg/dialects/common/enum_tune_format.go index a5aa79e48..113565f4c 100644 --- a/pkg/dialects/common/enum_tune_format.go +++ b/pkg/dialects/common/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/common/enum_uavcan_node_health.go b/pkg/dialects/common/enum_uavcan_node_health.go index 153966f93..6ab387897 100644 --- a/pkg/dialects/common/enum_uavcan_node_health.go +++ b/pkg/dialects/common/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/common/enum_uavcan_node_mode.go b/pkg/dialects/common/enum_uavcan_node_mode.go index 97de82575..e1c3a14aa 100644 --- a/pkg/dialects/common/enum_uavcan_node_mode.go +++ b/pkg/dialects/common/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/common/enum_utm_data_avail_flags.go b/pkg/dialects/common/enum_utm_data_avail_flags.go index 2ac6b147e..de2781520 100644 --- a/pkg/dialects/common/enum_utm_data_avail_flags.go +++ b/pkg/dialects/common/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/common/enum_utm_flight_state.go b/pkg/dialects/common/enum_utm_flight_state.go index 3ec8862db..4694d41a6 100644 --- a/pkg/dialects/common/enum_utm_flight_state.go +++ b/pkg/dialects/common/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/common/enum_video_stream_status_flags.go b/pkg/dialects/common/enum_video_stream_status_flags.go index 94057f788..83cd85133 100644 --- a/pkg/dialects/common/enum_video_stream_status_flags.go +++ b/pkg/dialects/common/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/common/enum_video_stream_type.go b/pkg/dialects/common/enum_video_stream_type.go index c4279e342..655a61826 100644 --- a/pkg/dialects/common/enum_video_stream_type.go +++ b/pkg/dialects/common/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/common/enum_vtol_transition_heading.go b/pkg/dialects/common/enum_vtol_transition_heading.go index 77f1f8f12..fe0b3c65b 100644 --- a/pkg/dialects/common/enum_vtol_transition_heading.go +++ b/pkg/dialects/common/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/common/enum_wifi_config_ap_mode.go b/pkg/dialects/common/enum_wifi_config_ap_mode.go index 61ec21603..7f29de041 100644 --- a/pkg/dialects/common/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/common/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/common/enum_wifi_config_ap_response.go b/pkg/dialects/common/enum_wifi_config_ap_response.go index 1bb5a46f8..38e34e710 100644 --- a/pkg/dialects/common/enum_wifi_config_ap_response.go +++ b/pkg/dialects/common/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/common/enum_winch_actions.go b/pkg/dialects/common/enum_winch_actions.go index 09a2f6ed3..e9c985567 100644 --- a/pkg/dialects/common/enum_winch_actions.go +++ b/pkg/dialects/common/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/development/enum_actuator_configuration.go b/pkg/dialects/development/enum_actuator_configuration.go index b60c7c2e6..5479ce3ca 100644 --- a/pkg/dialects/development/enum_actuator_configuration.go +++ b/pkg/dialects/development/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/development/enum_actuator_output_function.go b/pkg/dialects/development/enum_actuator_output_function.go index 157f6e344..ca891c5fb 100644 --- a/pkg/dialects/development/enum_actuator_output_function.go +++ b/pkg/dialects/development/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/development/enum_adsb_altitude_type.go b/pkg/dialects/development/enum_adsb_altitude_type.go index b67bef103..798ba3df4 100644 --- a/pkg/dialects/development/enum_adsb_altitude_type.go +++ b/pkg/dialects/development/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/development/enum_adsb_emitter_type.go b/pkg/dialects/development/enum_adsb_emitter_type.go index 106292705..68d14bd7a 100644 --- a/pkg/dialects/development/enum_adsb_emitter_type.go +++ b/pkg/dialects/development/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/development/enum_adsb_flags.go b/pkg/dialects/development/enum_adsb_flags.go index 62b57ffd4..70809fe91 100644 --- a/pkg/dialects/development/enum_adsb_flags.go +++ b/pkg/dialects/development/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/development/enum_airspeed_sensor_type.go b/pkg/dialects/development/enum_airspeed_sensor_type.go index 37ba3334f..8b4e0fbc3 100644 --- a/pkg/dialects/development/enum_airspeed_sensor_type.go +++ b/pkg/dialects/development/enum_airspeed_sensor_type.go @@ -7,7 +7,7 @@ import ( ) // Types of airspeed sensor/data. May be be used in AIRSPEED message to estimate accuracy of indicated speed. -type AIRSPEED_SENSOR_TYPE int +type AIRSPEED_SENSOR_TYPE uint32 const ( // Airspeed sensor type unknown/not supplied. diff --git a/pkg/dialects/development/enum_ais_flags.go b/pkg/dialects/development/enum_ais_flags.go index 594bfd51c..71a3dc50d 100644 --- a/pkg/dialects/development/enum_ais_flags.go +++ b/pkg/dialects/development/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/development/enum_ais_nav_status.go b/pkg/dialects/development/enum_ais_nav_status.go index 3c81c36c1..871e84af0 100644 --- a/pkg/dialects/development/enum_ais_nav_status.go +++ b/pkg/dialects/development/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/development/enum_ais_type.go b/pkg/dialects/development/enum_ais_type.go index 054e0442f..a6bd3c557 100644 --- a/pkg/dialects/development/enum_ais_type.go +++ b/pkg/dialects/development/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/development/enum_attitude_target_typemask.go b/pkg/dialects/development/enum_attitude_target_typemask.go index bf1e91624..a6474d6a8 100644 --- a/pkg/dialects/development/enum_attitude_target_typemask.go +++ b/pkg/dialects/development/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/development/enum_autotune_axis.go b/pkg/dialects/development/enum_autotune_axis.go index 055487426..0531b3acf 100644 --- a/pkg/dialects/development/enum_autotune_axis.go +++ b/pkg/dialects/development/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/development/enum_camera_cap_flags.go b/pkg/dialects/development/enum_camera_cap_flags.go index 3b7e213e6..8d2e431b1 100644 --- a/pkg/dialects/development/enum_camera_cap_flags.go +++ b/pkg/dialects/development/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/development/enum_camera_mode.go b/pkg/dialects/development/enum_camera_mode.go index 7c18616d7..f9656859e 100644 --- a/pkg/dialects/development/enum_camera_mode.go +++ b/pkg/dialects/development/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/development/enum_camera_tracking_mode.go b/pkg/dialects/development/enum_camera_tracking_mode.go index 4d475bf5d..444a171be 100644 --- a/pkg/dialects/development/enum_camera_tracking_mode.go +++ b/pkg/dialects/development/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/development/enum_camera_tracking_status_flags.go b/pkg/dialects/development/enum_camera_tracking_status_flags.go index ac0046cad..b5afcb6f5 100644 --- a/pkg/dialects/development/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/development/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/development/enum_camera_tracking_target_data.go b/pkg/dialects/development/enum_camera_tracking_target_data.go index bf2cc4b7a..84840c491 100644 --- a/pkg/dialects/development/enum_camera_tracking_target_data.go +++ b/pkg/dialects/development/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/development/enum_camera_zoom_type.go b/pkg/dialects/development/enum_camera_zoom_type.go index e781cf774..c3d849bd8 100644 --- a/pkg/dialects/development/enum_camera_zoom_type.go +++ b/pkg/dialects/development/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/development/enum_cellular_config_response.go b/pkg/dialects/development/enum_cellular_config_response.go index 2e071a652..e6cf1b410 100644 --- a/pkg/dialects/development/enum_cellular_config_response.go +++ b/pkg/dialects/development/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/development/enum_cellular_network_failed_reason.go b/pkg/dialects/development/enum_cellular_network_failed_reason.go index e6081160a..78dddbb01 100644 --- a/pkg/dialects/development/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/development/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/development/enum_cellular_network_radio_type.go b/pkg/dialects/development/enum_cellular_network_radio_type.go index 119dd690a..e97613bdc 100644 --- a/pkg/dialects/development/enum_cellular_network_radio_type.go +++ b/pkg/dialects/development/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/development/enum_cellular_status_flag.go b/pkg/dialects/development/enum_cellular_status_flag.go index 60a7ba55b..79ea07057 100644 --- a/pkg/dialects/development/enum_cellular_status_flag.go +++ b/pkg/dialects/development/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/development/enum_comp_metadata_type.go b/pkg/dialects/development/enum_comp_metadata_type.go index 13b444d0b..e8713ece9 100644 --- a/pkg/dialects/development/enum_comp_metadata_type.go +++ b/pkg/dialects/development/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/development/enum_esc_connection_type.go b/pkg/dialects/development/enum_esc_connection_type.go index 4dcfdfed2..5247ddaec 100644 --- a/pkg/dialects/development/enum_esc_connection_type.go +++ b/pkg/dialects/development/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/development/enum_esc_failure_flags.go b/pkg/dialects/development/enum_esc_failure_flags.go index 0c43cab9d..3439c7af5 100644 --- a/pkg/dialects/development/enum_esc_failure_flags.go +++ b/pkg/dialects/development/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/development/enum_estimator_status_flags.go b/pkg/dialects/development/enum_estimator_status_flags.go index bb12dd759..cc2fbd580 100644 --- a/pkg/dialects/development/enum_estimator_status_flags.go +++ b/pkg/dialects/development/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/development/enum_failure_type.go b/pkg/dialects/development/enum_failure_type.go index 109e1042c..de4c30018 100644 --- a/pkg/dialects/development/enum_failure_type.go +++ b/pkg/dialects/development/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/development/enum_failure_unit.go b/pkg/dialects/development/enum_failure_unit.go index b5a5c74cd..d41e3df2b 100644 --- a/pkg/dialects/development/enum_failure_unit.go +++ b/pkg/dialects/development/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/development/enum_fence_action.go b/pkg/dialects/development/enum_fence_action.go index a2495b3f9..283ae3e73 100644 --- a/pkg/dialects/development/enum_fence_action.go +++ b/pkg/dialects/development/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/development/enum_fence_breach.go b/pkg/dialects/development/enum_fence_breach.go index 6b5995bfd..12edc5514 100644 --- a/pkg/dialects/development/enum_fence_breach.go +++ b/pkg/dialects/development/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/development/enum_fence_mitigate.go b/pkg/dialects/development/enum_fence_mitigate.go index 93543ba68..7dfa8bf79 100644 --- a/pkg/dialects/development/enum_fence_mitigate.go +++ b/pkg/dialects/development/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/development/enum_firmware_version_type.go b/pkg/dialects/development/enum_firmware_version_type.go index 04f43872f..68d426ae3 100644 --- a/pkg/dialects/development/enum_firmware_version_type.go +++ b/pkg/dialects/development/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/development/enum_gimbal_device_cap_flags.go b/pkg/dialects/development/enum_gimbal_device_cap_flags.go index 5d8e39129..7a652c614 100644 --- a/pkg/dialects/development/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/development/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/development/enum_gimbal_device_error_flags.go b/pkg/dialects/development/enum_gimbal_device_error_flags.go index 9a602ad56..db6dab3fa 100644 --- a/pkg/dialects/development/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/development/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/development/enum_gimbal_device_flags.go b/pkg/dialects/development/enum_gimbal_device_flags.go index 568eb2eff..73c73d6c9 100644 --- a/pkg/dialects/development/enum_gimbal_device_flags.go +++ b/pkg/dialects/development/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/development/enum_gimbal_manager_cap_flags.go b/pkg/dialects/development/enum_gimbal_manager_cap_flags.go index 873049643..658e74ca9 100644 --- a/pkg/dialects/development/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/development/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/development/enum_gimbal_manager_flags.go b/pkg/dialects/development/enum_gimbal_manager_flags.go index 1552476dd..f2b3c3584 100644 --- a/pkg/dialects/development/enum_gimbal_manager_flags.go +++ b/pkg/dialects/development/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/development/enum_gps_fix_type.go b/pkg/dialects/development/enum_gps_fix_type.go index 90b766b65..1b60599e6 100644 --- a/pkg/dialects/development/enum_gps_fix_type.go +++ b/pkg/dialects/development/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/development/enum_gps_input_ignore_flags.go b/pkg/dialects/development/enum_gps_input_ignore_flags.go index 04b9d65d8..e0e886c26 100644 --- a/pkg/dialects/development/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/development/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/development/enum_gripper_actions.go b/pkg/dialects/development/enum_gripper_actions.go index b657ae6bf..a4853a2c9 100644 --- a/pkg/dialects/development/enum_gripper_actions.go +++ b/pkg/dialects/development/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/development/enum_highres_imu_updated_flags.go b/pkg/dialects/development/enum_highres_imu_updated_flags.go index 0b32b80cf..bf1590361 100644 --- a/pkg/dialects/development/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/development/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/development/enum_hil_sensor_updated_flags.go b/pkg/dialects/development/enum_hil_sensor_updated_flags.go index 79f0df964..4f8a3a595 100644 --- a/pkg/dialects/development/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/development/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/development/enum_hl_failure_flag.go b/pkg/dialects/development/enum_hl_failure_flag.go index 4493d3832..9a4ce956c 100644 --- a/pkg/dialects/development/enum_hl_failure_flag.go +++ b/pkg/dialects/development/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/development/enum_landing_target_type.go b/pkg/dialects/development/enum_landing_target_type.go index 7a238b9d0..454bc8c38 100644 --- a/pkg/dialects/development/enum_landing_target_type.go +++ b/pkg/dialects/development/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/development/enum_mag_cal_status.go b/pkg/dialects/development/enum_mag_cal_status.go index 847e17976..8e4d0ee3f 100644 --- a/pkg/dialects/development/enum_mag_cal_status.go +++ b/pkg/dialects/development/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/development/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/development/enum_mav_arm_auth_denied_reason.go index 454e11f13..9e89197bf 100644 --- a/pkg/dialects/development/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/development/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/development/enum_mav_autopilot.go b/pkg/dialects/development/enum_mav_autopilot.go index 5a61f5b12..66d8d2d08 100644 --- a/pkg/dialects/development/enum_mav_autopilot.go +++ b/pkg/dialects/development/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/development/enum_mav_battery_charge_state.go b/pkg/dialects/development/enum_mav_battery_charge_state.go index 5b2831cb4..55423bd0c 100644 --- a/pkg/dialects/development/enum_mav_battery_charge_state.go +++ b/pkg/dialects/development/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/development/enum_mav_battery_fault.go b/pkg/dialects/development/enum_mav_battery_fault.go index 4954f72ac..a507e2225 100644 --- a/pkg/dialects/development/enum_mav_battery_fault.go +++ b/pkg/dialects/development/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/development/enum_mav_battery_function.go b/pkg/dialects/development/enum_mav_battery_function.go index d8fa2240f..e1e3e2734 100644 --- a/pkg/dialects/development/enum_mav_battery_function.go +++ b/pkg/dialects/development/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/development/enum_mav_battery_mode.go b/pkg/dialects/development/enum_mav_battery_mode.go index 83a31f8d9..a5305964f 100644 --- a/pkg/dialects/development/enum_mav_battery_mode.go +++ b/pkg/dialects/development/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/development/enum_mav_battery_type.go b/pkg/dialects/development/enum_mav_battery_type.go index 62cd18b7c..8cb8149d7 100644 --- a/pkg/dialects/development/enum_mav_battery_type.go +++ b/pkg/dialects/development/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/development/enum_mav_cmd.go b/pkg/dialects/development/enum_mav_cmd.go index 6096db6a1..0a07f9bc1 100644 --- a/pkg/dialects/development/enum_mav_cmd.go +++ b/pkg/dialects/development/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/development/enum_mav_cmd_ack.go b/pkg/dialects/development/enum_mav_cmd_ack.go index 70b0e09bf..df7d2e7a7 100644 --- a/pkg/dialects/development/enum_mav_cmd_ack.go +++ b/pkg/dialects/development/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/development/enum_mav_collision_action.go b/pkg/dialects/development/enum_mav_collision_action.go index 69f66f24e..c4cba85af 100644 --- a/pkg/dialects/development/enum_mav_collision_action.go +++ b/pkg/dialects/development/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/development/enum_mav_collision_src.go b/pkg/dialects/development/enum_mav_collision_src.go index a8beebf98..2034babdf 100644 --- a/pkg/dialects/development/enum_mav_collision_src.go +++ b/pkg/dialects/development/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/development/enum_mav_collision_threat_level.go b/pkg/dialects/development/enum_mav_collision_threat_level.go index 02c2959fa..318fbe636 100644 --- a/pkg/dialects/development/enum_mav_collision_threat_level.go +++ b/pkg/dialects/development/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/development/enum_mav_component.go b/pkg/dialects/development/enum_mav_component.go index ede44a8a9..5a3933d05 100644 --- a/pkg/dialects/development/enum_mav_component.go +++ b/pkg/dialects/development/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/development/enum_mav_data_stream.go b/pkg/dialects/development/enum_mav_data_stream.go index 82287cff9..1c2989baa 100644 --- a/pkg/dialects/development/enum_mav_data_stream.go +++ b/pkg/dialects/development/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/development/enum_mav_distance_sensor.go b/pkg/dialects/development/enum_mav_distance_sensor.go index d99083fc6..04af8ac2f 100644 --- a/pkg/dialects/development/enum_mav_distance_sensor.go +++ b/pkg/dialects/development/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/development/enum_mav_do_reposition_flags.go b/pkg/dialects/development/enum_mav_do_reposition_flags.go index 13eb936b4..dfae9ce5b 100644 --- a/pkg/dialects/development/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/development/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/development/enum_mav_estimator_type.go b/pkg/dialects/development/enum_mav_estimator_type.go index b2d846037..7fbf1bc12 100644 --- a/pkg/dialects/development/enum_mav_estimator_type.go +++ b/pkg/dialects/development/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/development/enum_mav_event_current_sequence_flags.go b/pkg/dialects/development/enum_mav_event_current_sequence_flags.go index fff224805..b8ef72706 100644 --- a/pkg/dialects/development/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/development/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/development/enum_mav_event_error_reason.go b/pkg/dialects/development/enum_mav_event_error_reason.go index 0dcd35625..57fd8da6c 100644 --- a/pkg/dialects/development/enum_mav_event_error_reason.go +++ b/pkg/dialects/development/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/development/enum_mav_frame.go b/pkg/dialects/development/enum_mav_frame.go index f8cde6bb5..c4a6f33e7 100644 --- a/pkg/dialects/development/enum_mav_frame.go +++ b/pkg/dialects/development/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/development/enum_mav_generator_status_flag.go b/pkg/dialects/development/enum_mav_generator_status_flag.go index e76497582..fd068c58e 100644 --- a/pkg/dialects/development/enum_mav_generator_status_flag.go +++ b/pkg/dialects/development/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/development/enum_mav_goto.go b/pkg/dialects/development/enum_mav_goto.go index 157a1561e..050a128ea 100644 --- a/pkg/dialects/development/enum_mav_goto.go +++ b/pkg/dialects/development/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/development/enum_mav_landed_state.go b/pkg/dialects/development/enum_mav_landed_state.go index e3c49a8d2..ba71481a7 100644 --- a/pkg/dialects/development/enum_mav_landed_state.go +++ b/pkg/dialects/development/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/development/enum_mav_mission_result.go b/pkg/dialects/development/enum_mav_mission_result.go index dd53f5abd..afc5ea838 100644 --- a/pkg/dialects/development/enum_mav_mission_result.go +++ b/pkg/dialects/development/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/development/enum_mav_mission_type.go b/pkg/dialects/development/enum_mav_mission_type.go index 01637117b..993f3358a 100644 --- a/pkg/dialects/development/enum_mav_mission_type.go +++ b/pkg/dialects/development/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/development/enum_mav_mode.go b/pkg/dialects/development/enum_mav_mode.go index 7bf05bbf2..35f229989 100644 --- a/pkg/dialects/development/enum_mav_mode.go +++ b/pkg/dialects/development/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/development/enum_mav_mode_flag.go b/pkg/dialects/development/enum_mav_mode_flag.go index 851a4826e..1bd4169de 100644 --- a/pkg/dialects/development/enum_mav_mode_flag.go +++ b/pkg/dialects/development/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/development/enum_mav_mode_flag_decode_position.go b/pkg/dialects/development/enum_mav_mode_flag_decode_position.go index 81c09fbf8..d1d4c1c3a 100644 --- a/pkg/dialects/development/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/development/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/development/enum_mav_mount_mode.go b/pkg/dialects/development/enum_mav_mount_mode.go index d408b4cd0..9e646038a 100644 --- a/pkg/dialects/development/enum_mav_mount_mode.go +++ b/pkg/dialects/development/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/development/enum_mav_odid_auth_type.go b/pkg/dialects/development/enum_mav_odid_auth_type.go index 4a0771fd7..3335fa955 100644 --- a/pkg/dialects/development/enum_mav_odid_auth_type.go +++ b/pkg/dialects/development/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/development/enum_mav_odid_category_eu.go b/pkg/dialects/development/enum_mav_odid_category_eu.go index d72529a9f..c299913ef 100644 --- a/pkg/dialects/development/enum_mav_odid_category_eu.go +++ b/pkg/dialects/development/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/development/enum_mav_odid_class_eu.go b/pkg/dialects/development/enum_mav_odid_class_eu.go index a30435fcd..190580f7e 100644 --- a/pkg/dialects/development/enum_mav_odid_class_eu.go +++ b/pkg/dialects/development/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/development/enum_mav_odid_classification_type.go b/pkg/dialects/development/enum_mav_odid_classification_type.go index 1b49ee8ba..a7bc2f998 100644 --- a/pkg/dialects/development/enum_mav_odid_classification_type.go +++ b/pkg/dialects/development/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/development/enum_mav_odid_desc_type.go b/pkg/dialects/development/enum_mav_odid_desc_type.go index 0429196f5..c47c85d99 100644 --- a/pkg/dialects/development/enum_mav_odid_desc_type.go +++ b/pkg/dialects/development/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/development/enum_mav_odid_height_ref.go b/pkg/dialects/development/enum_mav_odid_height_ref.go index 043eb1d9f..a1c2dba55 100644 --- a/pkg/dialects/development/enum_mav_odid_height_ref.go +++ b/pkg/dialects/development/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/development/enum_mav_odid_hor_acc.go b/pkg/dialects/development/enum_mav_odid_hor_acc.go index e6ec732b3..4dd88b5fa 100644 --- a/pkg/dialects/development/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/development/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/development/enum_mav_odid_id_type.go b/pkg/dialects/development/enum_mav_odid_id_type.go index b48fea6e4..c58206944 100644 --- a/pkg/dialects/development/enum_mav_odid_id_type.go +++ b/pkg/dialects/development/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/development/enum_mav_odid_operator_id_type.go b/pkg/dialects/development/enum_mav_odid_operator_id_type.go index babfc94bd..c7b9f92e6 100644 --- a/pkg/dialects/development/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/development/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/development/enum_mav_odid_operator_location_type.go b/pkg/dialects/development/enum_mav_odid_operator_location_type.go index eb651f432..3a3b68a57 100644 --- a/pkg/dialects/development/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/development/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/development/enum_mav_odid_speed_acc.go b/pkg/dialects/development/enum_mav_odid_speed_acc.go index 2e020a092..569646f3b 100644 --- a/pkg/dialects/development/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/development/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/development/enum_mav_odid_status.go b/pkg/dialects/development/enum_mav_odid_status.go index 408b74b94..3d3552600 100644 --- a/pkg/dialects/development/enum_mav_odid_status.go +++ b/pkg/dialects/development/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/development/enum_mav_odid_time_acc.go b/pkg/dialects/development/enum_mav_odid_time_acc.go index 420a072ca..6cc51e38e 100644 --- a/pkg/dialects/development/enum_mav_odid_time_acc.go +++ b/pkg/dialects/development/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/development/enum_mav_odid_ua_type.go b/pkg/dialects/development/enum_mav_odid_ua_type.go index cbdf8c19d..b8e8acabd 100644 --- a/pkg/dialects/development/enum_mav_odid_ua_type.go +++ b/pkg/dialects/development/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/development/enum_mav_odid_ver_acc.go b/pkg/dialects/development/enum_mav_odid_ver_acc.go index f7fb637ce..b9f661782 100644 --- a/pkg/dialects/development/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/development/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/development/enum_mav_param_ext_type.go b/pkg/dialects/development/enum_mav_param_ext_type.go index d3634ccee..efce0b6cd 100644 --- a/pkg/dialects/development/enum_mav_param_ext_type.go +++ b/pkg/dialects/development/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/development/enum_mav_param_type.go b/pkg/dialects/development/enum_mav_param_type.go index 299a46ce6..8b4eaf307 100644 --- a/pkg/dialects/development/enum_mav_param_type.go +++ b/pkg/dialects/development/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/development/enum_mav_power_status.go b/pkg/dialects/development/enum_mav_power_status.go index 4cd448042..c0ec3e300 100644 --- a/pkg/dialects/development/enum_mav_power_status.go +++ b/pkg/dialects/development/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/development/enum_mav_protocol_capability.go b/pkg/dialects/development/enum_mav_protocol_capability.go index 585c67c34..4e6fce01b 100644 --- a/pkg/dialects/development/enum_mav_protocol_capability.go +++ b/pkg/dialects/development/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/development/enum_mav_result.go b/pkg/dialects/development/enum_mav_result.go index c699d7700..ee10a17c6 100644 --- a/pkg/dialects/development/enum_mav_result.go +++ b/pkg/dialects/development/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/development/enum_mav_roi.go b/pkg/dialects/development/enum_mav_roi.go index af84195e1..b2a896c6f 100644 --- a/pkg/dialects/development/enum_mav_roi.go +++ b/pkg/dialects/development/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/development/enum_mav_sensor_orientation.go b/pkg/dialects/development/enum_mav_sensor_orientation.go index 63df62bd3..1e52cc7bc 100644 --- a/pkg/dialects/development/enum_mav_sensor_orientation.go +++ b/pkg/dialects/development/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/development/enum_mav_severity.go b/pkg/dialects/development/enum_mav_severity.go index 9f396d841..c3f4c6971 100644 --- a/pkg/dialects/development/enum_mav_severity.go +++ b/pkg/dialects/development/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/development/enum_mav_state.go b/pkg/dialects/development/enum_mav_state.go index f2ae7b38b..bd5af471c 100644 --- a/pkg/dialects/development/enum_mav_state.go +++ b/pkg/dialects/development/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/development/enum_mav_sys_status_sensor.go b/pkg/dialects/development/enum_mav_sys_status_sensor.go index 331f16ae3..d3dae82f4 100644 --- a/pkg/dialects/development/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/development/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/development/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/development/enum_mav_sys_status_sensor_extended.go index 5af5efa63..9b557d71a 100644 --- a/pkg/dialects/development/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/development/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/development/enum_mav_tunnel_payload_type.go b/pkg/dialects/development/enum_mav_tunnel_payload_type.go index ac4c49bbd..085e67eff 100644 --- a/pkg/dialects/development/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/development/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/development/enum_mav_type.go b/pkg/dialects/development/enum_mav_type.go index 789bcdaa5..9a501bc04 100644 --- a/pkg/dialects/development/enum_mav_type.go +++ b/pkg/dialects/development/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/development/enum_mav_vtol_state.go b/pkg/dialects/development/enum_mav_vtol_state.go index fa40b8d56..b1e890a21 100644 --- a/pkg/dialects/development/enum_mav_vtol_state.go +++ b/pkg/dialects/development/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/development/enum_mav_winch_status_flag.go b/pkg/dialects/development/enum_mav_winch_status_flag.go index b897dc8fa..44e6f0697 100644 --- a/pkg/dialects/development/enum_mav_winch_status_flag.go +++ b/pkg/dialects/development/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/development/enum_mavlink_data_stream_type.go b/pkg/dialects/development/enum_mavlink_data_stream_type.go index 820d11c71..4c1c3d597 100644 --- a/pkg/dialects/development/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/development/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/development/enum_motor_test_order.go b/pkg/dialects/development/enum_motor_test_order.go index 867ca7df6..cd4be4587 100644 --- a/pkg/dialects/development/enum_motor_test_order.go +++ b/pkg/dialects/development/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/development/enum_motor_test_throttle_type.go b/pkg/dialects/development/enum_motor_test_throttle_type.go index 6e70467b7..dd846f09a 100644 --- a/pkg/dialects/development/enum_motor_test_throttle_type.go +++ b/pkg/dialects/development/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/development/enum_nav_vtol_land_options.go b/pkg/dialects/development/enum_nav_vtol_land_options.go index 9e5308191..2540b918e 100644 --- a/pkg/dialects/development/enum_nav_vtol_land_options.go +++ b/pkg/dialects/development/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/development/enum_orbit_yaw_behaviour.go b/pkg/dialects/development/enum_orbit_yaw_behaviour.go index 5c9450d4b..1ce7ca5b3 100644 --- a/pkg/dialects/development/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/development/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/development/enum_parachute_action.go b/pkg/dialects/development/enum_parachute_action.go index 58b54972d..69f73ea7e 100644 --- a/pkg/dialects/development/enum_parachute_action.go +++ b/pkg/dialects/development/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/development/enum_param_ack.go b/pkg/dialects/development/enum_param_ack.go index 0fc38e180..b4715c4ec 100644 --- a/pkg/dialects/development/enum_param_ack.go +++ b/pkg/dialects/development/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/development/enum_param_transaction_action.go b/pkg/dialects/development/enum_param_transaction_action.go index 77a926500..ccc91e661 100644 --- a/pkg/dialects/development/enum_param_transaction_action.go +++ b/pkg/dialects/development/enum_param_transaction_action.go @@ -7,7 +7,7 @@ import ( ) // Possible parameter transaction actions. -type PARAM_TRANSACTION_ACTION int +type PARAM_TRANSACTION_ACTION uint32 const ( // Commit the current parameter transaction. diff --git a/pkg/dialects/development/enum_param_transaction_transport.go b/pkg/dialects/development/enum_param_transaction_transport.go index 7afcc4c19..e0c0a813f 100644 --- a/pkg/dialects/development/enum_param_transaction_transport.go +++ b/pkg/dialects/development/enum_param_transaction_transport.go @@ -7,7 +7,7 @@ import ( ) // Possible transport layers to set and get parameters via mavlink during a parameter transaction. -type PARAM_TRANSACTION_TRANSPORT int +type PARAM_TRANSACTION_TRANSPORT uint32 const ( // Transaction over param transport. diff --git a/pkg/dialects/development/enum_position_target_typemask.go b/pkg/dialects/development/enum_position_target_typemask.go index 1a2419e75..26d6d8331 100644 --- a/pkg/dialects/development/enum_position_target_typemask.go +++ b/pkg/dialects/development/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/development/enum_precision_land_mode.go b/pkg/dialects/development/enum_precision_land_mode.go index 9cadd0e97..0ea95c510 100644 --- a/pkg/dialects/development/enum_precision_land_mode.go +++ b/pkg/dialects/development/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/development/enum_rc_type.go b/pkg/dialects/development/enum_rc_type.go index e17e197c2..13f79bc78 100644 --- a/pkg/dialects/development/enum_rc_type.go +++ b/pkg/dialects/development/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/development/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/development/enum_rtk_baseline_coordinate_system.go index db84b6f29..3eaa75964 100644 --- a/pkg/dialects/development/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/development/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/development/enum_serial_control_dev.go b/pkg/dialects/development/enum_serial_control_dev.go index 70140f465..33fc041d9 100644 --- a/pkg/dialects/development/enum_serial_control_dev.go +++ b/pkg/dialects/development/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/development/enum_serial_control_flag.go b/pkg/dialects/development/enum_serial_control_flag.go index 30be6971f..28cb0194e 100644 --- a/pkg/dialects/development/enum_serial_control_flag.go +++ b/pkg/dialects/development/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/development/enum_set_focus_type.go b/pkg/dialects/development/enum_set_focus_type.go index 2bf3f8f1c..cff594ab3 100644 --- a/pkg/dialects/development/enum_set_focus_type.go +++ b/pkg/dialects/development/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/development/enum_storage_status.go b/pkg/dialects/development/enum_storage_status.go index 577b12d2a..a1855e260 100644 --- a/pkg/dialects/development/enum_storage_status.go +++ b/pkg/dialects/development/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/development/enum_storage_type.go b/pkg/dialects/development/enum_storage_type.go index 2ce706929..b95618b7f 100644 --- a/pkg/dialects/development/enum_storage_type.go +++ b/pkg/dialects/development/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/development/enum_storage_usage_flag.go b/pkg/dialects/development/enum_storage_usage_flag.go index d09600926..ab53fadaf 100644 --- a/pkg/dialects/development/enum_storage_usage_flag.go +++ b/pkg/dialects/development/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/development/enum_tune_format.go b/pkg/dialects/development/enum_tune_format.go index 40cf0b0ba..77b233a68 100644 --- a/pkg/dialects/development/enum_tune_format.go +++ b/pkg/dialects/development/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/development/enum_uavcan_node_health.go b/pkg/dialects/development/enum_uavcan_node_health.go index 8b4c27aa1..229e16d9c 100644 --- a/pkg/dialects/development/enum_uavcan_node_health.go +++ b/pkg/dialects/development/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/development/enum_uavcan_node_mode.go b/pkg/dialects/development/enum_uavcan_node_mode.go index 444befc5f..5f0f3a04f 100644 --- a/pkg/dialects/development/enum_uavcan_node_mode.go +++ b/pkg/dialects/development/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/development/enum_utm_data_avail_flags.go b/pkg/dialects/development/enum_utm_data_avail_flags.go index 26286ab29..576858fa4 100644 --- a/pkg/dialects/development/enum_utm_data_avail_flags.go +++ b/pkg/dialects/development/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/development/enum_utm_flight_state.go b/pkg/dialects/development/enum_utm_flight_state.go index 36716a316..e9dad06c8 100644 --- a/pkg/dialects/development/enum_utm_flight_state.go +++ b/pkg/dialects/development/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/development/enum_video_stream_status_flags.go b/pkg/dialects/development/enum_video_stream_status_flags.go index 6bc56b7c0..b5f291bef 100644 --- a/pkg/dialects/development/enum_video_stream_status_flags.go +++ b/pkg/dialects/development/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/development/enum_video_stream_type.go b/pkg/dialects/development/enum_video_stream_type.go index fe96a8650..2d530b4bc 100644 --- a/pkg/dialects/development/enum_video_stream_type.go +++ b/pkg/dialects/development/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/development/enum_vtol_transition_heading.go b/pkg/dialects/development/enum_vtol_transition_heading.go index ace0503b6..4964c69e4 100644 --- a/pkg/dialects/development/enum_vtol_transition_heading.go +++ b/pkg/dialects/development/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/development/enum_wifi_config_ap_mode.go b/pkg/dialects/development/enum_wifi_config_ap_mode.go index 0954bc328..2c70cfc25 100644 --- a/pkg/dialects/development/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/development/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/development/enum_wifi_config_ap_response.go b/pkg/dialects/development/enum_wifi_config_ap_response.go index 4c1a40dad..ed32fb8c2 100644 --- a/pkg/dialects/development/enum_wifi_config_ap_response.go +++ b/pkg/dialects/development/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/development/enum_wifi_network_security.go b/pkg/dialects/development/enum_wifi_network_security.go index 92842a05e..dafa63e29 100644 --- a/pkg/dialects/development/enum_wifi_network_security.go +++ b/pkg/dialects/development/enum_wifi_network_security.go @@ -7,7 +7,7 @@ import ( ) // WiFi wireless security protocols. -type WIFI_NETWORK_SECURITY int +type WIFI_NETWORK_SECURITY uint32 const ( // Undefined or unknown security protocol. diff --git a/pkg/dialects/development/enum_winch_actions.go b/pkg/dialects/development/enum_winch_actions.go index 8f5f31c4b..f518e4ba0 100644 --- a/pkg/dialects/development/enum_winch_actions.go +++ b/pkg/dialects/development/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/icarous/enum_icarous_fms_state.go b/pkg/dialects/icarous/enum_icarous_fms_state.go index 3034b9ba9..9605c4424 100644 --- a/pkg/dialects/icarous/enum_icarous_fms_state.go +++ b/pkg/dialects/icarous/enum_icarous_fms_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type ICAROUS_FMS_STATE int +type ICAROUS_FMS_STATE uint32 const ( ICAROUS_FMS_STATE_IDLE ICAROUS_FMS_STATE = 0 diff --git a/pkg/dialects/icarous/enum_icarous_track_band_types.go b/pkg/dialects/icarous/enum_icarous_track_band_types.go index 81d1cf803..6ffc0964c 100644 --- a/pkg/dialects/icarous/enum_icarous_track_band_types.go +++ b/pkg/dialects/icarous/enum_icarous_track_band_types.go @@ -6,7 +6,7 @@ import ( "errors" ) -type ICAROUS_TRACK_BAND_TYPES int +type ICAROUS_TRACK_BAND_TYPES uint32 const ( ICAROUS_TRACK_BAND_TYPE_NONE ICAROUS_TRACK_BAND_TYPES = 0 diff --git a/pkg/dialects/matrixpilot/enum_actuator_configuration.go b/pkg/dialects/matrixpilot/enum_actuator_configuration.go index 4f072d9ad..d31e73f0d 100644 --- a/pkg/dialects/matrixpilot/enum_actuator_configuration.go +++ b/pkg/dialects/matrixpilot/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/matrixpilot/enum_actuator_output_function.go b/pkg/dialects/matrixpilot/enum_actuator_output_function.go index 9e47e0ab7..98a1c82bb 100644 --- a/pkg/dialects/matrixpilot/enum_actuator_output_function.go +++ b/pkg/dialects/matrixpilot/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/matrixpilot/enum_adsb_altitude_type.go b/pkg/dialects/matrixpilot/enum_adsb_altitude_type.go index 25daf25dc..4c71dc86c 100644 --- a/pkg/dialects/matrixpilot/enum_adsb_altitude_type.go +++ b/pkg/dialects/matrixpilot/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/matrixpilot/enum_adsb_emitter_type.go b/pkg/dialects/matrixpilot/enum_adsb_emitter_type.go index 6b780a019..56b71ce53 100644 --- a/pkg/dialects/matrixpilot/enum_adsb_emitter_type.go +++ b/pkg/dialects/matrixpilot/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/matrixpilot/enum_adsb_flags.go b/pkg/dialects/matrixpilot/enum_adsb_flags.go index b26c77594..d75bc5dde 100644 --- a/pkg/dialects/matrixpilot/enum_adsb_flags.go +++ b/pkg/dialects/matrixpilot/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/matrixpilot/enum_ais_flags.go b/pkg/dialects/matrixpilot/enum_ais_flags.go index 3b551f285..c7231b0e5 100644 --- a/pkg/dialects/matrixpilot/enum_ais_flags.go +++ b/pkg/dialects/matrixpilot/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/matrixpilot/enum_ais_nav_status.go b/pkg/dialects/matrixpilot/enum_ais_nav_status.go index dda6c734f..f34b792de 100644 --- a/pkg/dialects/matrixpilot/enum_ais_nav_status.go +++ b/pkg/dialects/matrixpilot/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/matrixpilot/enum_ais_type.go b/pkg/dialects/matrixpilot/enum_ais_type.go index 6a8dc1759..355876301 100644 --- a/pkg/dialects/matrixpilot/enum_ais_type.go +++ b/pkg/dialects/matrixpilot/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/matrixpilot/enum_attitude_target_typemask.go b/pkg/dialects/matrixpilot/enum_attitude_target_typemask.go index 26afa916d..7bf664790 100644 --- a/pkg/dialects/matrixpilot/enum_attitude_target_typemask.go +++ b/pkg/dialects/matrixpilot/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/matrixpilot/enum_autotune_axis.go b/pkg/dialects/matrixpilot/enum_autotune_axis.go index 980f8cf91..19bb17f89 100644 --- a/pkg/dialects/matrixpilot/enum_autotune_axis.go +++ b/pkg/dialects/matrixpilot/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/matrixpilot/enum_camera_cap_flags.go b/pkg/dialects/matrixpilot/enum_camera_cap_flags.go index d0dd26a3d..170f33e71 100644 --- a/pkg/dialects/matrixpilot/enum_camera_cap_flags.go +++ b/pkg/dialects/matrixpilot/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/matrixpilot/enum_camera_mode.go b/pkg/dialects/matrixpilot/enum_camera_mode.go index 80c87889b..47dd56a18 100644 --- a/pkg/dialects/matrixpilot/enum_camera_mode.go +++ b/pkg/dialects/matrixpilot/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/matrixpilot/enum_camera_tracking_mode.go b/pkg/dialects/matrixpilot/enum_camera_tracking_mode.go index 80c97ac4f..b7064a4d4 100644 --- a/pkg/dialects/matrixpilot/enum_camera_tracking_mode.go +++ b/pkg/dialects/matrixpilot/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/matrixpilot/enum_camera_tracking_status_flags.go b/pkg/dialects/matrixpilot/enum_camera_tracking_status_flags.go index d6b7d76e3..75f750dce 100644 --- a/pkg/dialects/matrixpilot/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/matrixpilot/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/matrixpilot/enum_camera_tracking_target_data.go b/pkg/dialects/matrixpilot/enum_camera_tracking_target_data.go index f515aa1ee..0e3975ba3 100644 --- a/pkg/dialects/matrixpilot/enum_camera_tracking_target_data.go +++ b/pkg/dialects/matrixpilot/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/matrixpilot/enum_camera_zoom_type.go b/pkg/dialects/matrixpilot/enum_camera_zoom_type.go index cf5bdf92b..9a132b95a 100644 --- a/pkg/dialects/matrixpilot/enum_camera_zoom_type.go +++ b/pkg/dialects/matrixpilot/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/matrixpilot/enum_cellular_config_response.go b/pkg/dialects/matrixpilot/enum_cellular_config_response.go index e266e34cc..2f464bae7 100644 --- a/pkg/dialects/matrixpilot/enum_cellular_config_response.go +++ b/pkg/dialects/matrixpilot/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/matrixpilot/enum_cellular_network_failed_reason.go b/pkg/dialects/matrixpilot/enum_cellular_network_failed_reason.go index 80a6d0595..c6df65170 100644 --- a/pkg/dialects/matrixpilot/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/matrixpilot/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/matrixpilot/enum_cellular_network_radio_type.go b/pkg/dialects/matrixpilot/enum_cellular_network_radio_type.go index df15cf143..96c5cb75c 100644 --- a/pkg/dialects/matrixpilot/enum_cellular_network_radio_type.go +++ b/pkg/dialects/matrixpilot/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/matrixpilot/enum_cellular_status_flag.go b/pkg/dialects/matrixpilot/enum_cellular_status_flag.go index e3b12a281..70ea5e69c 100644 --- a/pkg/dialects/matrixpilot/enum_cellular_status_flag.go +++ b/pkg/dialects/matrixpilot/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/matrixpilot/enum_comp_metadata_type.go b/pkg/dialects/matrixpilot/enum_comp_metadata_type.go index 517f27746..ee2e464eb 100644 --- a/pkg/dialects/matrixpilot/enum_comp_metadata_type.go +++ b/pkg/dialects/matrixpilot/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/matrixpilot/enum_esc_connection_type.go b/pkg/dialects/matrixpilot/enum_esc_connection_type.go index 5c8d14ec9..f84c76aec 100644 --- a/pkg/dialects/matrixpilot/enum_esc_connection_type.go +++ b/pkg/dialects/matrixpilot/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/matrixpilot/enum_esc_failure_flags.go b/pkg/dialects/matrixpilot/enum_esc_failure_flags.go index e8b4763fc..5c15969cf 100644 --- a/pkg/dialects/matrixpilot/enum_esc_failure_flags.go +++ b/pkg/dialects/matrixpilot/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/matrixpilot/enum_estimator_status_flags.go b/pkg/dialects/matrixpilot/enum_estimator_status_flags.go index 4cbe4c3eb..931ca3b99 100644 --- a/pkg/dialects/matrixpilot/enum_estimator_status_flags.go +++ b/pkg/dialects/matrixpilot/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/matrixpilot/enum_failure_type.go b/pkg/dialects/matrixpilot/enum_failure_type.go index b82ee97cf..344198834 100644 --- a/pkg/dialects/matrixpilot/enum_failure_type.go +++ b/pkg/dialects/matrixpilot/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/matrixpilot/enum_failure_unit.go b/pkg/dialects/matrixpilot/enum_failure_unit.go index 7f29d8355..9f0f29382 100644 --- a/pkg/dialects/matrixpilot/enum_failure_unit.go +++ b/pkg/dialects/matrixpilot/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/matrixpilot/enum_fence_action.go b/pkg/dialects/matrixpilot/enum_fence_action.go index 6a01ac400..ce3580320 100644 --- a/pkg/dialects/matrixpilot/enum_fence_action.go +++ b/pkg/dialects/matrixpilot/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/matrixpilot/enum_fence_breach.go b/pkg/dialects/matrixpilot/enum_fence_breach.go index 87db18d5f..184af465b 100644 --- a/pkg/dialects/matrixpilot/enum_fence_breach.go +++ b/pkg/dialects/matrixpilot/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/matrixpilot/enum_fence_mitigate.go b/pkg/dialects/matrixpilot/enum_fence_mitigate.go index 145970b05..64ca8f647 100644 --- a/pkg/dialects/matrixpilot/enum_fence_mitigate.go +++ b/pkg/dialects/matrixpilot/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/matrixpilot/enum_firmware_version_type.go b/pkg/dialects/matrixpilot/enum_firmware_version_type.go index 4abdab3c3..348cc50ff 100644 --- a/pkg/dialects/matrixpilot/enum_firmware_version_type.go +++ b/pkg/dialects/matrixpilot/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/matrixpilot/enum_gimbal_device_cap_flags.go b/pkg/dialects/matrixpilot/enum_gimbal_device_cap_flags.go index 805ca04a3..e7795378c 100644 --- a/pkg/dialects/matrixpilot/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/matrixpilot/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/matrixpilot/enum_gimbal_device_error_flags.go b/pkg/dialects/matrixpilot/enum_gimbal_device_error_flags.go index 8f7ea6086..9ccac258e 100644 --- a/pkg/dialects/matrixpilot/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/matrixpilot/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/matrixpilot/enum_gimbal_device_flags.go b/pkg/dialects/matrixpilot/enum_gimbal_device_flags.go index 88d70445a..6435e1eb7 100644 --- a/pkg/dialects/matrixpilot/enum_gimbal_device_flags.go +++ b/pkg/dialects/matrixpilot/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/matrixpilot/enum_gimbal_manager_cap_flags.go b/pkg/dialects/matrixpilot/enum_gimbal_manager_cap_flags.go index 6166990a3..1330c4c2a 100644 --- a/pkg/dialects/matrixpilot/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/matrixpilot/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/matrixpilot/enum_gimbal_manager_flags.go b/pkg/dialects/matrixpilot/enum_gimbal_manager_flags.go index 629f8559e..88f5096fc 100644 --- a/pkg/dialects/matrixpilot/enum_gimbal_manager_flags.go +++ b/pkg/dialects/matrixpilot/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/matrixpilot/enum_gps_fix_type.go b/pkg/dialects/matrixpilot/enum_gps_fix_type.go index fbde04893..c9ded2cd0 100644 --- a/pkg/dialects/matrixpilot/enum_gps_fix_type.go +++ b/pkg/dialects/matrixpilot/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/matrixpilot/enum_gps_input_ignore_flags.go b/pkg/dialects/matrixpilot/enum_gps_input_ignore_flags.go index 267dcb5f8..12416283a 100644 --- a/pkg/dialects/matrixpilot/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/matrixpilot/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/matrixpilot/enum_gripper_actions.go b/pkg/dialects/matrixpilot/enum_gripper_actions.go index 8b4ae2ae6..247189221 100644 --- a/pkg/dialects/matrixpilot/enum_gripper_actions.go +++ b/pkg/dialects/matrixpilot/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/matrixpilot/enum_highres_imu_updated_flags.go b/pkg/dialects/matrixpilot/enum_highres_imu_updated_flags.go index 86be7fa3b..73e8677e6 100644 --- a/pkg/dialects/matrixpilot/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/matrixpilot/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/matrixpilot/enum_hil_sensor_updated_flags.go b/pkg/dialects/matrixpilot/enum_hil_sensor_updated_flags.go index 0fadfd14d..90c96c74c 100644 --- a/pkg/dialects/matrixpilot/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/matrixpilot/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/matrixpilot/enum_hl_failure_flag.go b/pkg/dialects/matrixpilot/enum_hl_failure_flag.go index 6e181826a..1fb67c37c 100644 --- a/pkg/dialects/matrixpilot/enum_hl_failure_flag.go +++ b/pkg/dialects/matrixpilot/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/matrixpilot/enum_landing_target_type.go b/pkg/dialects/matrixpilot/enum_landing_target_type.go index 18e9aadf9..68b707b72 100644 --- a/pkg/dialects/matrixpilot/enum_landing_target_type.go +++ b/pkg/dialects/matrixpilot/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/matrixpilot/enum_mag_cal_status.go b/pkg/dialects/matrixpilot/enum_mag_cal_status.go index acf3e1568..204707e7b 100644 --- a/pkg/dialects/matrixpilot/enum_mag_cal_status.go +++ b/pkg/dialects/matrixpilot/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/matrixpilot/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/matrixpilot/enum_mav_arm_auth_denied_reason.go index 0d2a2dbe1..3e2189db8 100644 --- a/pkg/dialects/matrixpilot/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/matrixpilot/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/matrixpilot/enum_mav_autopilot.go b/pkg/dialects/matrixpilot/enum_mav_autopilot.go index 51aa9490f..2fe72d87b 100644 --- a/pkg/dialects/matrixpilot/enum_mav_autopilot.go +++ b/pkg/dialects/matrixpilot/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/matrixpilot/enum_mav_battery_charge_state.go b/pkg/dialects/matrixpilot/enum_mav_battery_charge_state.go index 50e196824..dee5a27b1 100644 --- a/pkg/dialects/matrixpilot/enum_mav_battery_charge_state.go +++ b/pkg/dialects/matrixpilot/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/matrixpilot/enum_mav_battery_fault.go b/pkg/dialects/matrixpilot/enum_mav_battery_fault.go index c1dce6edf..7ee7e4400 100644 --- a/pkg/dialects/matrixpilot/enum_mav_battery_fault.go +++ b/pkg/dialects/matrixpilot/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/matrixpilot/enum_mav_battery_function.go b/pkg/dialects/matrixpilot/enum_mav_battery_function.go index c419bccb8..b3980317f 100644 --- a/pkg/dialects/matrixpilot/enum_mav_battery_function.go +++ b/pkg/dialects/matrixpilot/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/matrixpilot/enum_mav_battery_mode.go b/pkg/dialects/matrixpilot/enum_mav_battery_mode.go index 2cea1ac7c..ff300e9ad 100644 --- a/pkg/dialects/matrixpilot/enum_mav_battery_mode.go +++ b/pkg/dialects/matrixpilot/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/matrixpilot/enum_mav_battery_type.go b/pkg/dialects/matrixpilot/enum_mav_battery_type.go index 3ea490418..775411a80 100644 --- a/pkg/dialects/matrixpilot/enum_mav_battery_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/matrixpilot/enum_mav_cmd.go b/pkg/dialects/matrixpilot/enum_mav_cmd.go index 838ac27a6..7456a0fdb 100644 --- a/pkg/dialects/matrixpilot/enum_mav_cmd.go +++ b/pkg/dialects/matrixpilot/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/matrixpilot/enum_mav_cmd_ack.go b/pkg/dialects/matrixpilot/enum_mav_cmd_ack.go index af11b6c00..0ca707d2c 100644 --- a/pkg/dialects/matrixpilot/enum_mav_cmd_ack.go +++ b/pkg/dialects/matrixpilot/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/matrixpilot/enum_mav_collision_action.go b/pkg/dialects/matrixpilot/enum_mav_collision_action.go index b182db170..adac16bce 100644 --- a/pkg/dialects/matrixpilot/enum_mav_collision_action.go +++ b/pkg/dialects/matrixpilot/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/matrixpilot/enum_mav_collision_src.go b/pkg/dialects/matrixpilot/enum_mav_collision_src.go index 29413d0fb..ffa5f7f9d 100644 --- a/pkg/dialects/matrixpilot/enum_mav_collision_src.go +++ b/pkg/dialects/matrixpilot/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/matrixpilot/enum_mav_collision_threat_level.go b/pkg/dialects/matrixpilot/enum_mav_collision_threat_level.go index 0594ee567..69ec7f4ae 100644 --- a/pkg/dialects/matrixpilot/enum_mav_collision_threat_level.go +++ b/pkg/dialects/matrixpilot/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/matrixpilot/enum_mav_component.go b/pkg/dialects/matrixpilot/enum_mav_component.go index 2bf066c85..a26602cd4 100644 --- a/pkg/dialects/matrixpilot/enum_mav_component.go +++ b/pkg/dialects/matrixpilot/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/matrixpilot/enum_mav_data_stream.go b/pkg/dialects/matrixpilot/enum_mav_data_stream.go index 74521b1bd..6bc093994 100644 --- a/pkg/dialects/matrixpilot/enum_mav_data_stream.go +++ b/pkg/dialects/matrixpilot/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/matrixpilot/enum_mav_distance_sensor.go b/pkg/dialects/matrixpilot/enum_mav_distance_sensor.go index d7bc3b41c..08ff77e08 100644 --- a/pkg/dialects/matrixpilot/enum_mav_distance_sensor.go +++ b/pkg/dialects/matrixpilot/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/matrixpilot/enum_mav_do_reposition_flags.go b/pkg/dialects/matrixpilot/enum_mav_do_reposition_flags.go index 7ac43a8b6..058ef5b5e 100644 --- a/pkg/dialects/matrixpilot/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/matrixpilot/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/matrixpilot/enum_mav_estimator_type.go b/pkg/dialects/matrixpilot/enum_mav_estimator_type.go index 95e52520b..892b989e7 100644 --- a/pkg/dialects/matrixpilot/enum_mav_estimator_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/matrixpilot/enum_mav_event_current_sequence_flags.go b/pkg/dialects/matrixpilot/enum_mav_event_current_sequence_flags.go index 0ced6469e..fcd49a6ca 100644 --- a/pkg/dialects/matrixpilot/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/matrixpilot/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/matrixpilot/enum_mav_event_error_reason.go b/pkg/dialects/matrixpilot/enum_mav_event_error_reason.go index b913fb37b..3391a424b 100644 --- a/pkg/dialects/matrixpilot/enum_mav_event_error_reason.go +++ b/pkg/dialects/matrixpilot/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/matrixpilot/enum_mav_frame.go b/pkg/dialects/matrixpilot/enum_mav_frame.go index 72d60c7c5..aac6218d1 100644 --- a/pkg/dialects/matrixpilot/enum_mav_frame.go +++ b/pkg/dialects/matrixpilot/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/matrixpilot/enum_mav_generator_status_flag.go b/pkg/dialects/matrixpilot/enum_mav_generator_status_flag.go index ea8ca1cd7..78a160858 100644 --- a/pkg/dialects/matrixpilot/enum_mav_generator_status_flag.go +++ b/pkg/dialects/matrixpilot/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/matrixpilot/enum_mav_goto.go b/pkg/dialects/matrixpilot/enum_mav_goto.go index 6d019ea5c..2d2c1f66c 100644 --- a/pkg/dialects/matrixpilot/enum_mav_goto.go +++ b/pkg/dialects/matrixpilot/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/matrixpilot/enum_mav_landed_state.go b/pkg/dialects/matrixpilot/enum_mav_landed_state.go index 7732786c6..64ba71f03 100644 --- a/pkg/dialects/matrixpilot/enum_mav_landed_state.go +++ b/pkg/dialects/matrixpilot/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/matrixpilot/enum_mav_mission_result.go b/pkg/dialects/matrixpilot/enum_mav_mission_result.go index 82439b02e..235f56fbe 100644 --- a/pkg/dialects/matrixpilot/enum_mav_mission_result.go +++ b/pkg/dialects/matrixpilot/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/matrixpilot/enum_mav_mission_type.go b/pkg/dialects/matrixpilot/enum_mav_mission_type.go index c80bf86f6..33f7ea1f8 100644 --- a/pkg/dialects/matrixpilot/enum_mav_mission_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/matrixpilot/enum_mav_mode.go b/pkg/dialects/matrixpilot/enum_mav_mode.go index 16745fd9b..ca0898607 100644 --- a/pkg/dialects/matrixpilot/enum_mav_mode.go +++ b/pkg/dialects/matrixpilot/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/matrixpilot/enum_mav_mode_flag.go b/pkg/dialects/matrixpilot/enum_mav_mode_flag.go index 165a5932e..1f51b81c7 100644 --- a/pkg/dialects/matrixpilot/enum_mav_mode_flag.go +++ b/pkg/dialects/matrixpilot/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/matrixpilot/enum_mav_mode_flag_decode_position.go b/pkg/dialects/matrixpilot/enum_mav_mode_flag_decode_position.go index 35733bd2a..767462d05 100644 --- a/pkg/dialects/matrixpilot/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/matrixpilot/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/matrixpilot/enum_mav_mount_mode.go b/pkg/dialects/matrixpilot/enum_mav_mount_mode.go index 143bf0a8a..3c7dca3cf 100644 --- a/pkg/dialects/matrixpilot/enum_mav_mount_mode.go +++ b/pkg/dialects/matrixpilot/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_auth_type.go b/pkg/dialects/matrixpilot/enum_mav_odid_auth_type.go index 10945137b..4108e95cc 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_auth_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_category_eu.go b/pkg/dialects/matrixpilot/enum_mav_odid_category_eu.go index 84bf7d6a1..609d568c8 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_category_eu.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_class_eu.go b/pkg/dialects/matrixpilot/enum_mav_odid_class_eu.go index 69c353595..99060d085 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_class_eu.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_classification_type.go b/pkg/dialects/matrixpilot/enum_mav_odid_classification_type.go index 69beb25d5..ad03b7336 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_classification_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_desc_type.go b/pkg/dialects/matrixpilot/enum_mav_odid_desc_type.go index 35820b9c6..cda2022e8 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_desc_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_height_ref.go b/pkg/dialects/matrixpilot/enum_mav_odid_height_ref.go index deed5116c..8b3042f90 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_height_ref.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_hor_acc.go b/pkg/dialects/matrixpilot/enum_mav_odid_hor_acc.go index 65e2d75a7..f17448609 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_id_type.go b/pkg/dialects/matrixpilot/enum_mav_odid_id_type.go index b1ebf14ed..50e909fe1 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_id_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_operator_id_type.go b/pkg/dialects/matrixpilot/enum_mav_odid_operator_id_type.go index d4560cbf3..bd8a11987 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_operator_location_type.go b/pkg/dialects/matrixpilot/enum_mav_odid_operator_location_type.go index c0adcee03..403bf39cf 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_speed_acc.go b/pkg/dialects/matrixpilot/enum_mav_odid_speed_acc.go index 297094b2f..a731523fb 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_status.go b/pkg/dialects/matrixpilot/enum_mav_odid_status.go index 003567ef6..cc645e568 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_status.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_time_acc.go b/pkg/dialects/matrixpilot/enum_mav_odid_time_acc.go index 444cacfae..8e0765ddd 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_time_acc.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_ua_type.go b/pkg/dialects/matrixpilot/enum_mav_odid_ua_type.go index 576e901d0..40f7377c3 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_ua_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/matrixpilot/enum_mav_odid_ver_acc.go b/pkg/dialects/matrixpilot/enum_mav_odid_ver_acc.go index 785934ffc..e0522d73b 100644 --- a/pkg/dialects/matrixpilot/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/matrixpilot/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/matrixpilot/enum_mav_param_ext_type.go b/pkg/dialects/matrixpilot/enum_mav_param_ext_type.go index cfc20b9a4..7237a84fe 100644 --- a/pkg/dialects/matrixpilot/enum_mav_param_ext_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/matrixpilot/enum_mav_param_type.go b/pkg/dialects/matrixpilot/enum_mav_param_type.go index 9b5c1b3bb..6853528a4 100644 --- a/pkg/dialects/matrixpilot/enum_mav_param_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/matrixpilot/enum_mav_power_status.go b/pkg/dialects/matrixpilot/enum_mav_power_status.go index b8ead76ae..ed7fbf180 100644 --- a/pkg/dialects/matrixpilot/enum_mav_power_status.go +++ b/pkg/dialects/matrixpilot/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/matrixpilot/enum_mav_preflight_storage_action.go b/pkg/dialects/matrixpilot/enum_mav_preflight_storage_action.go index 4ee932ee2..627721d1f 100644 --- a/pkg/dialects/matrixpilot/enum_mav_preflight_storage_action.go +++ b/pkg/dialects/matrixpilot/enum_mav_preflight_storage_action.go @@ -7,7 +7,7 @@ import ( ) // Action required when performing CMD_PREFLIGHT_STORAGE -type MAV_PREFLIGHT_STORAGE_ACTION int +type MAV_PREFLIGHT_STORAGE_ACTION uint32 const ( // Read all parameters from storage diff --git a/pkg/dialects/matrixpilot/enum_mav_protocol_capability.go b/pkg/dialects/matrixpilot/enum_mav_protocol_capability.go index aca8b49f4..43f1a88bf 100644 --- a/pkg/dialects/matrixpilot/enum_mav_protocol_capability.go +++ b/pkg/dialects/matrixpilot/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/matrixpilot/enum_mav_result.go b/pkg/dialects/matrixpilot/enum_mav_result.go index f2f6c4413..3bb3d0808 100644 --- a/pkg/dialects/matrixpilot/enum_mav_result.go +++ b/pkg/dialects/matrixpilot/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/matrixpilot/enum_mav_roi.go b/pkg/dialects/matrixpilot/enum_mav_roi.go index fd4fcd018..3497487fa 100644 --- a/pkg/dialects/matrixpilot/enum_mav_roi.go +++ b/pkg/dialects/matrixpilot/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/matrixpilot/enum_mav_sensor_orientation.go b/pkg/dialects/matrixpilot/enum_mav_sensor_orientation.go index ff612ef2a..65e43caa5 100644 --- a/pkg/dialects/matrixpilot/enum_mav_sensor_orientation.go +++ b/pkg/dialects/matrixpilot/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/matrixpilot/enum_mav_severity.go b/pkg/dialects/matrixpilot/enum_mav_severity.go index b795ebf02..55906e832 100644 --- a/pkg/dialects/matrixpilot/enum_mav_severity.go +++ b/pkg/dialects/matrixpilot/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/matrixpilot/enum_mav_state.go b/pkg/dialects/matrixpilot/enum_mav_state.go index 00198c553..bcec8d7d4 100644 --- a/pkg/dialects/matrixpilot/enum_mav_state.go +++ b/pkg/dialects/matrixpilot/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/matrixpilot/enum_mav_sys_status_sensor.go b/pkg/dialects/matrixpilot/enum_mav_sys_status_sensor.go index 81821165e..b5c74aeac 100644 --- a/pkg/dialects/matrixpilot/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/matrixpilot/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/matrixpilot/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/matrixpilot/enum_mav_sys_status_sensor_extended.go index 7eb15b939..793dc33b2 100644 --- a/pkg/dialects/matrixpilot/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/matrixpilot/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/matrixpilot/enum_mav_tunnel_payload_type.go b/pkg/dialects/matrixpilot/enum_mav_tunnel_payload_type.go index 2e6affbee..5fb18164b 100644 --- a/pkg/dialects/matrixpilot/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/matrixpilot/enum_mav_type.go b/pkg/dialects/matrixpilot/enum_mav_type.go index 0031b3530..768ef1c85 100644 --- a/pkg/dialects/matrixpilot/enum_mav_type.go +++ b/pkg/dialects/matrixpilot/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/matrixpilot/enum_mav_vtol_state.go b/pkg/dialects/matrixpilot/enum_mav_vtol_state.go index 91647704e..94924d35f 100644 --- a/pkg/dialects/matrixpilot/enum_mav_vtol_state.go +++ b/pkg/dialects/matrixpilot/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/matrixpilot/enum_mav_winch_status_flag.go b/pkg/dialects/matrixpilot/enum_mav_winch_status_flag.go index 0c9fcc23b..c2026512e 100644 --- a/pkg/dialects/matrixpilot/enum_mav_winch_status_flag.go +++ b/pkg/dialects/matrixpilot/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/matrixpilot/enum_mavlink_data_stream_type.go b/pkg/dialects/matrixpilot/enum_mavlink_data_stream_type.go index 09928e945..33071cc78 100644 --- a/pkg/dialects/matrixpilot/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/matrixpilot/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/matrixpilot/enum_motor_test_order.go b/pkg/dialects/matrixpilot/enum_motor_test_order.go index d1d41c434..90de1d9c7 100644 --- a/pkg/dialects/matrixpilot/enum_motor_test_order.go +++ b/pkg/dialects/matrixpilot/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/matrixpilot/enum_motor_test_throttle_type.go b/pkg/dialects/matrixpilot/enum_motor_test_throttle_type.go index 2ea1973a6..d29564552 100644 --- a/pkg/dialects/matrixpilot/enum_motor_test_throttle_type.go +++ b/pkg/dialects/matrixpilot/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/matrixpilot/enum_nav_vtol_land_options.go b/pkg/dialects/matrixpilot/enum_nav_vtol_land_options.go index 4f2f22660..0af0d8d1d 100644 --- a/pkg/dialects/matrixpilot/enum_nav_vtol_land_options.go +++ b/pkg/dialects/matrixpilot/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/matrixpilot/enum_orbit_yaw_behaviour.go b/pkg/dialects/matrixpilot/enum_orbit_yaw_behaviour.go index 5afd2aa35..19974dd77 100644 --- a/pkg/dialects/matrixpilot/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/matrixpilot/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/matrixpilot/enum_parachute_action.go b/pkg/dialects/matrixpilot/enum_parachute_action.go index a893a5575..83dd8cdf7 100644 --- a/pkg/dialects/matrixpilot/enum_parachute_action.go +++ b/pkg/dialects/matrixpilot/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/matrixpilot/enum_param_ack.go b/pkg/dialects/matrixpilot/enum_param_ack.go index 684d1e32d..c4c2c6e92 100644 --- a/pkg/dialects/matrixpilot/enum_param_ack.go +++ b/pkg/dialects/matrixpilot/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/matrixpilot/enum_position_target_typemask.go b/pkg/dialects/matrixpilot/enum_position_target_typemask.go index 406d70128..1058813f6 100644 --- a/pkg/dialects/matrixpilot/enum_position_target_typemask.go +++ b/pkg/dialects/matrixpilot/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/matrixpilot/enum_precision_land_mode.go b/pkg/dialects/matrixpilot/enum_precision_land_mode.go index fdfdedfae..e4f182f75 100644 --- a/pkg/dialects/matrixpilot/enum_precision_land_mode.go +++ b/pkg/dialects/matrixpilot/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/matrixpilot/enum_rc_type.go b/pkg/dialects/matrixpilot/enum_rc_type.go index adde42f0b..f790faf97 100644 --- a/pkg/dialects/matrixpilot/enum_rc_type.go +++ b/pkg/dialects/matrixpilot/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/matrixpilot/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/matrixpilot/enum_rtk_baseline_coordinate_system.go index fc78916e5..c451e6ebd 100644 --- a/pkg/dialects/matrixpilot/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/matrixpilot/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/matrixpilot/enum_serial_control_dev.go b/pkg/dialects/matrixpilot/enum_serial_control_dev.go index 554dc13ff..7802656b5 100644 --- a/pkg/dialects/matrixpilot/enum_serial_control_dev.go +++ b/pkg/dialects/matrixpilot/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/matrixpilot/enum_serial_control_flag.go b/pkg/dialects/matrixpilot/enum_serial_control_flag.go index 370aa760d..667a011bf 100644 --- a/pkg/dialects/matrixpilot/enum_serial_control_flag.go +++ b/pkg/dialects/matrixpilot/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/matrixpilot/enum_set_focus_type.go b/pkg/dialects/matrixpilot/enum_set_focus_type.go index 6600ec4ae..c4c4e462b 100644 --- a/pkg/dialects/matrixpilot/enum_set_focus_type.go +++ b/pkg/dialects/matrixpilot/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/matrixpilot/enum_storage_status.go b/pkg/dialects/matrixpilot/enum_storage_status.go index 2111445bb..8f054f239 100644 --- a/pkg/dialects/matrixpilot/enum_storage_status.go +++ b/pkg/dialects/matrixpilot/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/matrixpilot/enum_storage_type.go b/pkg/dialects/matrixpilot/enum_storage_type.go index a5e6e36f9..75d7df1c5 100644 --- a/pkg/dialects/matrixpilot/enum_storage_type.go +++ b/pkg/dialects/matrixpilot/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/matrixpilot/enum_storage_usage_flag.go b/pkg/dialects/matrixpilot/enum_storage_usage_flag.go index dafb5c781..d60ba8d5f 100644 --- a/pkg/dialects/matrixpilot/enum_storage_usage_flag.go +++ b/pkg/dialects/matrixpilot/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/matrixpilot/enum_tune_format.go b/pkg/dialects/matrixpilot/enum_tune_format.go index c76831e52..41f392f75 100644 --- a/pkg/dialects/matrixpilot/enum_tune_format.go +++ b/pkg/dialects/matrixpilot/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/matrixpilot/enum_uavcan_node_health.go b/pkg/dialects/matrixpilot/enum_uavcan_node_health.go index 9ad55155e..ba0267770 100644 --- a/pkg/dialects/matrixpilot/enum_uavcan_node_health.go +++ b/pkg/dialects/matrixpilot/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/matrixpilot/enum_uavcan_node_mode.go b/pkg/dialects/matrixpilot/enum_uavcan_node_mode.go index 62d39d66a..32ad058cc 100644 --- a/pkg/dialects/matrixpilot/enum_uavcan_node_mode.go +++ b/pkg/dialects/matrixpilot/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/matrixpilot/enum_utm_data_avail_flags.go b/pkg/dialects/matrixpilot/enum_utm_data_avail_flags.go index 4cacfcf07..9420d6083 100644 --- a/pkg/dialects/matrixpilot/enum_utm_data_avail_flags.go +++ b/pkg/dialects/matrixpilot/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/matrixpilot/enum_utm_flight_state.go b/pkg/dialects/matrixpilot/enum_utm_flight_state.go index 62bff661a..83eec72f8 100644 --- a/pkg/dialects/matrixpilot/enum_utm_flight_state.go +++ b/pkg/dialects/matrixpilot/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/matrixpilot/enum_video_stream_status_flags.go b/pkg/dialects/matrixpilot/enum_video_stream_status_flags.go index c7081d800..c07b3f83b 100644 --- a/pkg/dialects/matrixpilot/enum_video_stream_status_flags.go +++ b/pkg/dialects/matrixpilot/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/matrixpilot/enum_video_stream_type.go b/pkg/dialects/matrixpilot/enum_video_stream_type.go index ee2442e7e..1acafb976 100644 --- a/pkg/dialects/matrixpilot/enum_video_stream_type.go +++ b/pkg/dialects/matrixpilot/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/matrixpilot/enum_vtol_transition_heading.go b/pkg/dialects/matrixpilot/enum_vtol_transition_heading.go index 2efa549ea..0df387523 100644 --- a/pkg/dialects/matrixpilot/enum_vtol_transition_heading.go +++ b/pkg/dialects/matrixpilot/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/matrixpilot/enum_wifi_config_ap_mode.go b/pkg/dialects/matrixpilot/enum_wifi_config_ap_mode.go index 1145df724..701af9df5 100644 --- a/pkg/dialects/matrixpilot/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/matrixpilot/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/matrixpilot/enum_wifi_config_ap_response.go b/pkg/dialects/matrixpilot/enum_wifi_config_ap_response.go index a6a0f3672..1b633bd11 100644 --- a/pkg/dialects/matrixpilot/enum_wifi_config_ap_response.go +++ b/pkg/dialects/matrixpilot/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/matrixpilot/enum_winch_actions.go b/pkg/dialects/matrixpilot/enum_winch_actions.go index af71b574c..9a9b94b88 100644 --- a/pkg/dialects/matrixpilot/enum_winch_actions.go +++ b/pkg/dialects/matrixpilot/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/minimal/enum_mav_autopilot.go b/pkg/dialects/minimal/enum_mav_autopilot.go index 65107b4a0..d5c7df414 100644 --- a/pkg/dialects/minimal/enum_mav_autopilot.go +++ b/pkg/dialects/minimal/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/minimal/enum_mav_component.go b/pkg/dialects/minimal/enum_mav_component.go index 1557d15d1..144cd7414 100644 --- a/pkg/dialects/minimal/enum_mav_component.go +++ b/pkg/dialects/minimal/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/minimal/enum_mav_mode_flag.go b/pkg/dialects/minimal/enum_mav_mode_flag.go index fc44a8c0b..4fad6a71b 100644 --- a/pkg/dialects/minimal/enum_mav_mode_flag.go +++ b/pkg/dialects/minimal/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/minimal/enum_mav_mode_flag_decode_position.go b/pkg/dialects/minimal/enum_mav_mode_flag_decode_position.go index eb95ff8db..1b0cea22c 100644 --- a/pkg/dialects/minimal/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/minimal/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/minimal/enum_mav_state.go b/pkg/dialects/minimal/enum_mav_state.go index 5b7f52d68..664b96c62 100644 --- a/pkg/dialects/minimal/enum_mav_state.go +++ b/pkg/dialects/minimal/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/minimal/enum_mav_type.go b/pkg/dialects/minimal/enum_mav_type.go index 132d7a3bb..1b385134f 100644 --- a/pkg/dialects/minimal/enum_mav_type.go +++ b/pkg/dialects/minimal/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/paparazzi/enum_actuator_configuration.go b/pkg/dialects/paparazzi/enum_actuator_configuration.go index a722e3e66..86fc25d65 100644 --- a/pkg/dialects/paparazzi/enum_actuator_configuration.go +++ b/pkg/dialects/paparazzi/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/paparazzi/enum_actuator_output_function.go b/pkg/dialects/paparazzi/enum_actuator_output_function.go index 9cfa7c779..816c9f5e7 100644 --- a/pkg/dialects/paparazzi/enum_actuator_output_function.go +++ b/pkg/dialects/paparazzi/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/paparazzi/enum_adsb_altitude_type.go b/pkg/dialects/paparazzi/enum_adsb_altitude_type.go index d48bae48d..17b645559 100644 --- a/pkg/dialects/paparazzi/enum_adsb_altitude_type.go +++ b/pkg/dialects/paparazzi/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/paparazzi/enum_adsb_emitter_type.go b/pkg/dialects/paparazzi/enum_adsb_emitter_type.go index 20ecb5f93..03c771066 100644 --- a/pkg/dialects/paparazzi/enum_adsb_emitter_type.go +++ b/pkg/dialects/paparazzi/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/paparazzi/enum_adsb_flags.go b/pkg/dialects/paparazzi/enum_adsb_flags.go index 81cf0e377..07108768b 100644 --- a/pkg/dialects/paparazzi/enum_adsb_flags.go +++ b/pkg/dialects/paparazzi/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/paparazzi/enum_ais_flags.go b/pkg/dialects/paparazzi/enum_ais_flags.go index fbe90b558..623eb0290 100644 --- a/pkg/dialects/paparazzi/enum_ais_flags.go +++ b/pkg/dialects/paparazzi/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/paparazzi/enum_ais_nav_status.go b/pkg/dialects/paparazzi/enum_ais_nav_status.go index aa2ce8af6..44c5634ca 100644 --- a/pkg/dialects/paparazzi/enum_ais_nav_status.go +++ b/pkg/dialects/paparazzi/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/paparazzi/enum_ais_type.go b/pkg/dialects/paparazzi/enum_ais_type.go index 568858c13..23c36a0a6 100644 --- a/pkg/dialects/paparazzi/enum_ais_type.go +++ b/pkg/dialects/paparazzi/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/paparazzi/enum_attitude_target_typemask.go b/pkg/dialects/paparazzi/enum_attitude_target_typemask.go index 63fbde7be..97c6ced17 100644 --- a/pkg/dialects/paparazzi/enum_attitude_target_typemask.go +++ b/pkg/dialects/paparazzi/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/paparazzi/enum_autotune_axis.go b/pkg/dialects/paparazzi/enum_autotune_axis.go index 63922c3a3..e753b636b 100644 --- a/pkg/dialects/paparazzi/enum_autotune_axis.go +++ b/pkg/dialects/paparazzi/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/paparazzi/enum_camera_cap_flags.go b/pkg/dialects/paparazzi/enum_camera_cap_flags.go index f844c3174..d26443e7d 100644 --- a/pkg/dialects/paparazzi/enum_camera_cap_flags.go +++ b/pkg/dialects/paparazzi/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/paparazzi/enum_camera_mode.go b/pkg/dialects/paparazzi/enum_camera_mode.go index 95d707017..b1d82867f 100644 --- a/pkg/dialects/paparazzi/enum_camera_mode.go +++ b/pkg/dialects/paparazzi/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/paparazzi/enum_camera_tracking_mode.go b/pkg/dialects/paparazzi/enum_camera_tracking_mode.go index dbfa46139..ccd374848 100644 --- a/pkg/dialects/paparazzi/enum_camera_tracking_mode.go +++ b/pkg/dialects/paparazzi/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/paparazzi/enum_camera_tracking_status_flags.go b/pkg/dialects/paparazzi/enum_camera_tracking_status_flags.go index 1ff68b8cf..e42194254 100644 --- a/pkg/dialects/paparazzi/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/paparazzi/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/paparazzi/enum_camera_tracking_target_data.go b/pkg/dialects/paparazzi/enum_camera_tracking_target_data.go index a0823089e..ef28ee6b8 100644 --- a/pkg/dialects/paparazzi/enum_camera_tracking_target_data.go +++ b/pkg/dialects/paparazzi/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/paparazzi/enum_camera_zoom_type.go b/pkg/dialects/paparazzi/enum_camera_zoom_type.go index d5c286afb..e3f014ef0 100644 --- a/pkg/dialects/paparazzi/enum_camera_zoom_type.go +++ b/pkg/dialects/paparazzi/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/paparazzi/enum_cellular_config_response.go b/pkg/dialects/paparazzi/enum_cellular_config_response.go index 6eb780b0a..d95892e13 100644 --- a/pkg/dialects/paparazzi/enum_cellular_config_response.go +++ b/pkg/dialects/paparazzi/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/paparazzi/enum_cellular_network_failed_reason.go b/pkg/dialects/paparazzi/enum_cellular_network_failed_reason.go index 77fe20257..d3d8fc87c 100644 --- a/pkg/dialects/paparazzi/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/paparazzi/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/paparazzi/enum_cellular_network_radio_type.go b/pkg/dialects/paparazzi/enum_cellular_network_radio_type.go index 60621b71a..249765c2b 100644 --- a/pkg/dialects/paparazzi/enum_cellular_network_radio_type.go +++ b/pkg/dialects/paparazzi/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/paparazzi/enum_cellular_status_flag.go b/pkg/dialects/paparazzi/enum_cellular_status_flag.go index 81b5d71c5..b9b0a7e93 100644 --- a/pkg/dialects/paparazzi/enum_cellular_status_flag.go +++ b/pkg/dialects/paparazzi/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/paparazzi/enum_comp_metadata_type.go b/pkg/dialects/paparazzi/enum_comp_metadata_type.go index 985c6dfdf..c93ed2fbc 100644 --- a/pkg/dialects/paparazzi/enum_comp_metadata_type.go +++ b/pkg/dialects/paparazzi/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/paparazzi/enum_esc_connection_type.go b/pkg/dialects/paparazzi/enum_esc_connection_type.go index 5fa5f0f55..bb0181926 100644 --- a/pkg/dialects/paparazzi/enum_esc_connection_type.go +++ b/pkg/dialects/paparazzi/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/paparazzi/enum_esc_failure_flags.go b/pkg/dialects/paparazzi/enum_esc_failure_flags.go index c55feb793..7d88a57e4 100644 --- a/pkg/dialects/paparazzi/enum_esc_failure_flags.go +++ b/pkg/dialects/paparazzi/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/paparazzi/enum_estimator_status_flags.go b/pkg/dialects/paparazzi/enum_estimator_status_flags.go index 090c6c745..4454b7fe9 100644 --- a/pkg/dialects/paparazzi/enum_estimator_status_flags.go +++ b/pkg/dialects/paparazzi/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/paparazzi/enum_failure_type.go b/pkg/dialects/paparazzi/enum_failure_type.go index 29baa7b7a..97b478d25 100644 --- a/pkg/dialects/paparazzi/enum_failure_type.go +++ b/pkg/dialects/paparazzi/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/paparazzi/enum_failure_unit.go b/pkg/dialects/paparazzi/enum_failure_unit.go index b3cd6942b..20ac7dde5 100644 --- a/pkg/dialects/paparazzi/enum_failure_unit.go +++ b/pkg/dialects/paparazzi/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/paparazzi/enum_fence_action.go b/pkg/dialects/paparazzi/enum_fence_action.go index ae3b5507a..567d4749b 100644 --- a/pkg/dialects/paparazzi/enum_fence_action.go +++ b/pkg/dialects/paparazzi/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/paparazzi/enum_fence_breach.go b/pkg/dialects/paparazzi/enum_fence_breach.go index eccfbab3a..bd183285f 100644 --- a/pkg/dialects/paparazzi/enum_fence_breach.go +++ b/pkg/dialects/paparazzi/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/paparazzi/enum_fence_mitigate.go b/pkg/dialects/paparazzi/enum_fence_mitigate.go index 5da5ee4d1..2454fcf46 100644 --- a/pkg/dialects/paparazzi/enum_fence_mitigate.go +++ b/pkg/dialects/paparazzi/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/paparazzi/enum_firmware_version_type.go b/pkg/dialects/paparazzi/enum_firmware_version_type.go index 190eab38a..0b41f65ce 100644 --- a/pkg/dialects/paparazzi/enum_firmware_version_type.go +++ b/pkg/dialects/paparazzi/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/paparazzi/enum_gimbal_device_cap_flags.go b/pkg/dialects/paparazzi/enum_gimbal_device_cap_flags.go index 00959f043..f7817933c 100644 --- a/pkg/dialects/paparazzi/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/paparazzi/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/paparazzi/enum_gimbal_device_error_flags.go b/pkg/dialects/paparazzi/enum_gimbal_device_error_flags.go index a9ec99fef..c86f3d9e9 100644 --- a/pkg/dialects/paparazzi/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/paparazzi/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/paparazzi/enum_gimbal_device_flags.go b/pkg/dialects/paparazzi/enum_gimbal_device_flags.go index 08d5edd7b..c61005bf2 100644 --- a/pkg/dialects/paparazzi/enum_gimbal_device_flags.go +++ b/pkg/dialects/paparazzi/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/paparazzi/enum_gimbal_manager_cap_flags.go b/pkg/dialects/paparazzi/enum_gimbal_manager_cap_flags.go index 8af4ce07a..68b216ef4 100644 --- a/pkg/dialects/paparazzi/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/paparazzi/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/paparazzi/enum_gimbal_manager_flags.go b/pkg/dialects/paparazzi/enum_gimbal_manager_flags.go index e83fc8f73..34130ee19 100644 --- a/pkg/dialects/paparazzi/enum_gimbal_manager_flags.go +++ b/pkg/dialects/paparazzi/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/paparazzi/enum_gps_fix_type.go b/pkg/dialects/paparazzi/enum_gps_fix_type.go index 227895198..3ba7c64fb 100644 --- a/pkg/dialects/paparazzi/enum_gps_fix_type.go +++ b/pkg/dialects/paparazzi/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/paparazzi/enum_gps_input_ignore_flags.go b/pkg/dialects/paparazzi/enum_gps_input_ignore_flags.go index c4b5f2ae1..8852870ca 100644 --- a/pkg/dialects/paparazzi/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/paparazzi/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/paparazzi/enum_gripper_actions.go b/pkg/dialects/paparazzi/enum_gripper_actions.go index 454e76a43..e5e568ef4 100644 --- a/pkg/dialects/paparazzi/enum_gripper_actions.go +++ b/pkg/dialects/paparazzi/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/paparazzi/enum_highres_imu_updated_flags.go b/pkg/dialects/paparazzi/enum_highres_imu_updated_flags.go index 95f581a95..905315c9b 100644 --- a/pkg/dialects/paparazzi/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/paparazzi/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/paparazzi/enum_hil_sensor_updated_flags.go b/pkg/dialects/paparazzi/enum_hil_sensor_updated_flags.go index fcc5be09d..aef42aa64 100644 --- a/pkg/dialects/paparazzi/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/paparazzi/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/paparazzi/enum_hl_failure_flag.go b/pkg/dialects/paparazzi/enum_hl_failure_flag.go index 01325780b..330ec4213 100644 --- a/pkg/dialects/paparazzi/enum_hl_failure_flag.go +++ b/pkg/dialects/paparazzi/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/paparazzi/enum_landing_target_type.go b/pkg/dialects/paparazzi/enum_landing_target_type.go index 3d0c9db69..a44203a28 100644 --- a/pkg/dialects/paparazzi/enum_landing_target_type.go +++ b/pkg/dialects/paparazzi/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/paparazzi/enum_mag_cal_status.go b/pkg/dialects/paparazzi/enum_mag_cal_status.go index ca4a7250c..f41248c72 100644 --- a/pkg/dialects/paparazzi/enum_mag_cal_status.go +++ b/pkg/dialects/paparazzi/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/paparazzi/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/paparazzi/enum_mav_arm_auth_denied_reason.go index c67162b93..c0d7dc3ac 100644 --- a/pkg/dialects/paparazzi/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/paparazzi/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/paparazzi/enum_mav_autopilot.go b/pkg/dialects/paparazzi/enum_mav_autopilot.go index 4be58ecb0..9150403a3 100644 --- a/pkg/dialects/paparazzi/enum_mav_autopilot.go +++ b/pkg/dialects/paparazzi/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/paparazzi/enum_mav_battery_charge_state.go b/pkg/dialects/paparazzi/enum_mav_battery_charge_state.go index 593d55b4e..c6572689d 100644 --- a/pkg/dialects/paparazzi/enum_mav_battery_charge_state.go +++ b/pkg/dialects/paparazzi/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/paparazzi/enum_mav_battery_fault.go b/pkg/dialects/paparazzi/enum_mav_battery_fault.go index bc68514fb..4b3fa203b 100644 --- a/pkg/dialects/paparazzi/enum_mav_battery_fault.go +++ b/pkg/dialects/paparazzi/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/paparazzi/enum_mav_battery_function.go b/pkg/dialects/paparazzi/enum_mav_battery_function.go index b246e907d..c2ce8b599 100644 --- a/pkg/dialects/paparazzi/enum_mav_battery_function.go +++ b/pkg/dialects/paparazzi/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/paparazzi/enum_mav_battery_mode.go b/pkg/dialects/paparazzi/enum_mav_battery_mode.go index e3d718945..ef8f61391 100644 --- a/pkg/dialects/paparazzi/enum_mav_battery_mode.go +++ b/pkg/dialects/paparazzi/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/paparazzi/enum_mav_battery_type.go b/pkg/dialects/paparazzi/enum_mav_battery_type.go index 743b3506f..100a2331e 100644 --- a/pkg/dialects/paparazzi/enum_mav_battery_type.go +++ b/pkg/dialects/paparazzi/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/paparazzi/enum_mav_cmd.go b/pkg/dialects/paparazzi/enum_mav_cmd.go index 3bc08e787..c8fd12720 100644 --- a/pkg/dialects/paparazzi/enum_mav_cmd.go +++ b/pkg/dialects/paparazzi/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/paparazzi/enum_mav_cmd_ack.go b/pkg/dialects/paparazzi/enum_mav_cmd_ack.go index 279d40c49..5ed60d281 100644 --- a/pkg/dialects/paparazzi/enum_mav_cmd_ack.go +++ b/pkg/dialects/paparazzi/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/paparazzi/enum_mav_collision_action.go b/pkg/dialects/paparazzi/enum_mav_collision_action.go index 0b595c131..d5eaaa736 100644 --- a/pkg/dialects/paparazzi/enum_mav_collision_action.go +++ b/pkg/dialects/paparazzi/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/paparazzi/enum_mav_collision_src.go b/pkg/dialects/paparazzi/enum_mav_collision_src.go index 5f8497fce..d411c8c94 100644 --- a/pkg/dialects/paparazzi/enum_mav_collision_src.go +++ b/pkg/dialects/paparazzi/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/paparazzi/enum_mav_collision_threat_level.go b/pkg/dialects/paparazzi/enum_mav_collision_threat_level.go index 72080cddc..2ef3911dd 100644 --- a/pkg/dialects/paparazzi/enum_mav_collision_threat_level.go +++ b/pkg/dialects/paparazzi/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/paparazzi/enum_mav_component.go b/pkg/dialects/paparazzi/enum_mav_component.go index bb70dcdd6..8fad3e983 100644 --- a/pkg/dialects/paparazzi/enum_mav_component.go +++ b/pkg/dialects/paparazzi/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/paparazzi/enum_mav_data_stream.go b/pkg/dialects/paparazzi/enum_mav_data_stream.go index f9ca3d157..61b710ce5 100644 --- a/pkg/dialects/paparazzi/enum_mav_data_stream.go +++ b/pkg/dialects/paparazzi/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/paparazzi/enum_mav_distance_sensor.go b/pkg/dialects/paparazzi/enum_mav_distance_sensor.go index 4864b1baf..cc93ed783 100644 --- a/pkg/dialects/paparazzi/enum_mav_distance_sensor.go +++ b/pkg/dialects/paparazzi/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/paparazzi/enum_mav_do_reposition_flags.go b/pkg/dialects/paparazzi/enum_mav_do_reposition_flags.go index ffd00bd85..b6f619d34 100644 --- a/pkg/dialects/paparazzi/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/paparazzi/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/paparazzi/enum_mav_estimator_type.go b/pkg/dialects/paparazzi/enum_mav_estimator_type.go index 46bfa9ec3..16fbec105 100644 --- a/pkg/dialects/paparazzi/enum_mav_estimator_type.go +++ b/pkg/dialects/paparazzi/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/paparazzi/enum_mav_event_current_sequence_flags.go b/pkg/dialects/paparazzi/enum_mav_event_current_sequence_flags.go index 2c8741cc9..b1e9c007c 100644 --- a/pkg/dialects/paparazzi/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/paparazzi/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/paparazzi/enum_mav_event_error_reason.go b/pkg/dialects/paparazzi/enum_mav_event_error_reason.go index 1f243e499..804022991 100644 --- a/pkg/dialects/paparazzi/enum_mav_event_error_reason.go +++ b/pkg/dialects/paparazzi/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/paparazzi/enum_mav_frame.go b/pkg/dialects/paparazzi/enum_mav_frame.go index 1d8133e97..6d372f762 100644 --- a/pkg/dialects/paparazzi/enum_mav_frame.go +++ b/pkg/dialects/paparazzi/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/paparazzi/enum_mav_generator_status_flag.go b/pkg/dialects/paparazzi/enum_mav_generator_status_flag.go index 5dd3a11fe..fad807aaa 100644 --- a/pkg/dialects/paparazzi/enum_mav_generator_status_flag.go +++ b/pkg/dialects/paparazzi/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/paparazzi/enum_mav_goto.go b/pkg/dialects/paparazzi/enum_mav_goto.go index c75f569f6..12e7fa5f3 100644 --- a/pkg/dialects/paparazzi/enum_mav_goto.go +++ b/pkg/dialects/paparazzi/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/paparazzi/enum_mav_landed_state.go b/pkg/dialects/paparazzi/enum_mav_landed_state.go index 2f042276d..eb3551298 100644 --- a/pkg/dialects/paparazzi/enum_mav_landed_state.go +++ b/pkg/dialects/paparazzi/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/paparazzi/enum_mav_mission_result.go b/pkg/dialects/paparazzi/enum_mav_mission_result.go index 63980221f..8c6fa764c 100644 --- a/pkg/dialects/paparazzi/enum_mav_mission_result.go +++ b/pkg/dialects/paparazzi/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/paparazzi/enum_mav_mission_type.go b/pkg/dialects/paparazzi/enum_mav_mission_type.go index 6a8a6e73b..33868084a 100644 --- a/pkg/dialects/paparazzi/enum_mav_mission_type.go +++ b/pkg/dialects/paparazzi/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/paparazzi/enum_mav_mode.go b/pkg/dialects/paparazzi/enum_mav_mode.go index 4b38c05bc..c6cbc026c 100644 --- a/pkg/dialects/paparazzi/enum_mav_mode.go +++ b/pkg/dialects/paparazzi/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/paparazzi/enum_mav_mode_flag.go b/pkg/dialects/paparazzi/enum_mav_mode_flag.go index f23f32fa8..22564bcee 100644 --- a/pkg/dialects/paparazzi/enum_mav_mode_flag.go +++ b/pkg/dialects/paparazzi/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/paparazzi/enum_mav_mode_flag_decode_position.go b/pkg/dialects/paparazzi/enum_mav_mode_flag_decode_position.go index 7e16791b0..2d5bd6e69 100644 --- a/pkg/dialects/paparazzi/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/paparazzi/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/paparazzi/enum_mav_mount_mode.go b/pkg/dialects/paparazzi/enum_mav_mount_mode.go index b96ee8161..f898ab787 100644 --- a/pkg/dialects/paparazzi/enum_mav_mount_mode.go +++ b/pkg/dialects/paparazzi/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/paparazzi/enum_mav_odid_auth_type.go b/pkg/dialects/paparazzi/enum_mav_odid_auth_type.go index 6bb5d4be5..644df73b0 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_auth_type.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_category_eu.go b/pkg/dialects/paparazzi/enum_mav_odid_category_eu.go index 45aeee740..e32e6e043 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_category_eu.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_class_eu.go b/pkg/dialects/paparazzi/enum_mav_odid_class_eu.go index 854261b18..5d8e2d303 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_class_eu.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_classification_type.go b/pkg/dialects/paparazzi/enum_mav_odid_classification_type.go index 2a5fd2964..84de392a2 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_classification_type.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_desc_type.go b/pkg/dialects/paparazzi/enum_mav_odid_desc_type.go index 6352f30df..49930d098 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_desc_type.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_height_ref.go b/pkg/dialects/paparazzi/enum_mav_odid_height_ref.go index 852639e3a..175bd8415 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_height_ref.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_hor_acc.go b/pkg/dialects/paparazzi/enum_mav_odid_hor_acc.go index 105d8f8db..777344917 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_id_type.go b/pkg/dialects/paparazzi/enum_mav_odid_id_type.go index f64845c65..dc0099574 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_id_type.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_operator_id_type.go b/pkg/dialects/paparazzi/enum_mav_odid_operator_id_type.go index 62232c9af..f83800467 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_operator_location_type.go b/pkg/dialects/paparazzi/enum_mav_odid_operator_location_type.go index 56546c091..286b0baa4 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_speed_acc.go b/pkg/dialects/paparazzi/enum_mav_odid_speed_acc.go index ba0263e69..461b0b994 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_status.go b/pkg/dialects/paparazzi/enum_mav_odid_status.go index 38870e4bb..dc12c6f9f 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_status.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_time_acc.go b/pkg/dialects/paparazzi/enum_mav_odid_time_acc.go index f147d436c..e051aa802 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_time_acc.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_ua_type.go b/pkg/dialects/paparazzi/enum_mav_odid_ua_type.go index 16c3e0af1..0eb0f2fdd 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_ua_type.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/paparazzi/enum_mav_odid_ver_acc.go b/pkg/dialects/paparazzi/enum_mav_odid_ver_acc.go index ee9b53335..a63aed7e0 100644 --- a/pkg/dialects/paparazzi/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/paparazzi/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/paparazzi/enum_mav_param_ext_type.go b/pkg/dialects/paparazzi/enum_mav_param_ext_type.go index 05f63e4a4..0888e1926 100644 --- a/pkg/dialects/paparazzi/enum_mav_param_ext_type.go +++ b/pkg/dialects/paparazzi/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/paparazzi/enum_mav_param_type.go b/pkg/dialects/paparazzi/enum_mav_param_type.go index 9a64ab82d..749f3664b 100644 --- a/pkg/dialects/paparazzi/enum_mav_param_type.go +++ b/pkg/dialects/paparazzi/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/paparazzi/enum_mav_power_status.go b/pkg/dialects/paparazzi/enum_mav_power_status.go index 402ab57a8..bfb5eaa5c 100644 --- a/pkg/dialects/paparazzi/enum_mav_power_status.go +++ b/pkg/dialects/paparazzi/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/paparazzi/enum_mav_protocol_capability.go b/pkg/dialects/paparazzi/enum_mav_protocol_capability.go index daa114982..785b92ae7 100644 --- a/pkg/dialects/paparazzi/enum_mav_protocol_capability.go +++ b/pkg/dialects/paparazzi/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/paparazzi/enum_mav_result.go b/pkg/dialects/paparazzi/enum_mav_result.go index 8afb833a7..7cf5fe70d 100644 --- a/pkg/dialects/paparazzi/enum_mav_result.go +++ b/pkg/dialects/paparazzi/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/paparazzi/enum_mav_roi.go b/pkg/dialects/paparazzi/enum_mav_roi.go index c80857d53..982f74247 100644 --- a/pkg/dialects/paparazzi/enum_mav_roi.go +++ b/pkg/dialects/paparazzi/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/paparazzi/enum_mav_sensor_orientation.go b/pkg/dialects/paparazzi/enum_mav_sensor_orientation.go index 260b59cb1..7b9c1f536 100644 --- a/pkg/dialects/paparazzi/enum_mav_sensor_orientation.go +++ b/pkg/dialects/paparazzi/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/paparazzi/enum_mav_severity.go b/pkg/dialects/paparazzi/enum_mav_severity.go index 8612a2beb..c197bb4b2 100644 --- a/pkg/dialects/paparazzi/enum_mav_severity.go +++ b/pkg/dialects/paparazzi/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/paparazzi/enum_mav_state.go b/pkg/dialects/paparazzi/enum_mav_state.go index 788a8146d..856359f48 100644 --- a/pkg/dialects/paparazzi/enum_mav_state.go +++ b/pkg/dialects/paparazzi/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/paparazzi/enum_mav_sys_status_sensor.go b/pkg/dialects/paparazzi/enum_mav_sys_status_sensor.go index ac25152dd..24d74751e 100644 --- a/pkg/dialects/paparazzi/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/paparazzi/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/paparazzi/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/paparazzi/enum_mav_sys_status_sensor_extended.go index 27d92425d..67db326a1 100644 --- a/pkg/dialects/paparazzi/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/paparazzi/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/paparazzi/enum_mav_tunnel_payload_type.go b/pkg/dialects/paparazzi/enum_mav_tunnel_payload_type.go index 1804b0040..817c349a0 100644 --- a/pkg/dialects/paparazzi/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/paparazzi/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/paparazzi/enum_mav_type.go b/pkg/dialects/paparazzi/enum_mav_type.go index 1dc073594..92ebb0e35 100644 --- a/pkg/dialects/paparazzi/enum_mav_type.go +++ b/pkg/dialects/paparazzi/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/paparazzi/enum_mav_vtol_state.go b/pkg/dialects/paparazzi/enum_mav_vtol_state.go index c345138b5..501b9eee4 100644 --- a/pkg/dialects/paparazzi/enum_mav_vtol_state.go +++ b/pkg/dialects/paparazzi/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/paparazzi/enum_mav_winch_status_flag.go b/pkg/dialects/paparazzi/enum_mav_winch_status_flag.go index b1d723dc3..57fd36612 100644 --- a/pkg/dialects/paparazzi/enum_mav_winch_status_flag.go +++ b/pkg/dialects/paparazzi/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/paparazzi/enum_mavlink_data_stream_type.go b/pkg/dialects/paparazzi/enum_mavlink_data_stream_type.go index 1aef13a14..5a4fa230b 100644 --- a/pkg/dialects/paparazzi/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/paparazzi/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/paparazzi/enum_motor_test_order.go b/pkg/dialects/paparazzi/enum_motor_test_order.go index 5e3015494..1db38b35d 100644 --- a/pkg/dialects/paparazzi/enum_motor_test_order.go +++ b/pkg/dialects/paparazzi/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/paparazzi/enum_motor_test_throttle_type.go b/pkg/dialects/paparazzi/enum_motor_test_throttle_type.go index 622fd1d5d..0738eb8e5 100644 --- a/pkg/dialects/paparazzi/enum_motor_test_throttle_type.go +++ b/pkg/dialects/paparazzi/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/paparazzi/enum_nav_vtol_land_options.go b/pkg/dialects/paparazzi/enum_nav_vtol_land_options.go index 76c12b542..691d9ecc4 100644 --- a/pkg/dialects/paparazzi/enum_nav_vtol_land_options.go +++ b/pkg/dialects/paparazzi/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/paparazzi/enum_orbit_yaw_behaviour.go b/pkg/dialects/paparazzi/enum_orbit_yaw_behaviour.go index 3bbb37958..ac5d1dc3d 100644 --- a/pkg/dialects/paparazzi/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/paparazzi/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/paparazzi/enum_parachute_action.go b/pkg/dialects/paparazzi/enum_parachute_action.go index c1ea209be..c3669c3d8 100644 --- a/pkg/dialects/paparazzi/enum_parachute_action.go +++ b/pkg/dialects/paparazzi/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/paparazzi/enum_param_ack.go b/pkg/dialects/paparazzi/enum_param_ack.go index f771bdb9f..a3a32670a 100644 --- a/pkg/dialects/paparazzi/enum_param_ack.go +++ b/pkg/dialects/paparazzi/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/paparazzi/enum_position_target_typemask.go b/pkg/dialects/paparazzi/enum_position_target_typemask.go index 2265fbb0f..7712aeb1a 100644 --- a/pkg/dialects/paparazzi/enum_position_target_typemask.go +++ b/pkg/dialects/paparazzi/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/paparazzi/enum_precision_land_mode.go b/pkg/dialects/paparazzi/enum_precision_land_mode.go index 899b6dd99..dd992497a 100644 --- a/pkg/dialects/paparazzi/enum_precision_land_mode.go +++ b/pkg/dialects/paparazzi/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/paparazzi/enum_rc_type.go b/pkg/dialects/paparazzi/enum_rc_type.go index bfed10aa4..0c68db0b0 100644 --- a/pkg/dialects/paparazzi/enum_rc_type.go +++ b/pkg/dialects/paparazzi/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/paparazzi/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/paparazzi/enum_rtk_baseline_coordinate_system.go index f14e31bc6..42cdc45ed 100644 --- a/pkg/dialects/paparazzi/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/paparazzi/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/paparazzi/enum_serial_control_dev.go b/pkg/dialects/paparazzi/enum_serial_control_dev.go index c2d06b0ed..12aac1e4e 100644 --- a/pkg/dialects/paparazzi/enum_serial_control_dev.go +++ b/pkg/dialects/paparazzi/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/paparazzi/enum_serial_control_flag.go b/pkg/dialects/paparazzi/enum_serial_control_flag.go index 60c1c8017..48a6edb23 100644 --- a/pkg/dialects/paparazzi/enum_serial_control_flag.go +++ b/pkg/dialects/paparazzi/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/paparazzi/enum_set_focus_type.go b/pkg/dialects/paparazzi/enum_set_focus_type.go index 7f868c504..1c8b98a3f 100644 --- a/pkg/dialects/paparazzi/enum_set_focus_type.go +++ b/pkg/dialects/paparazzi/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/paparazzi/enum_storage_status.go b/pkg/dialects/paparazzi/enum_storage_status.go index 9de07aff3..85674038a 100644 --- a/pkg/dialects/paparazzi/enum_storage_status.go +++ b/pkg/dialects/paparazzi/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/paparazzi/enum_storage_type.go b/pkg/dialects/paparazzi/enum_storage_type.go index 9e7339877..e5fd668f0 100644 --- a/pkg/dialects/paparazzi/enum_storage_type.go +++ b/pkg/dialects/paparazzi/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/paparazzi/enum_storage_usage_flag.go b/pkg/dialects/paparazzi/enum_storage_usage_flag.go index dbb755b69..67b8f6cca 100644 --- a/pkg/dialects/paparazzi/enum_storage_usage_flag.go +++ b/pkg/dialects/paparazzi/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/paparazzi/enum_tune_format.go b/pkg/dialects/paparazzi/enum_tune_format.go index a9b2a6062..c679dda8c 100644 --- a/pkg/dialects/paparazzi/enum_tune_format.go +++ b/pkg/dialects/paparazzi/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/paparazzi/enum_uavcan_node_health.go b/pkg/dialects/paparazzi/enum_uavcan_node_health.go index 740191f09..c05b185d6 100644 --- a/pkg/dialects/paparazzi/enum_uavcan_node_health.go +++ b/pkg/dialects/paparazzi/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/paparazzi/enum_uavcan_node_mode.go b/pkg/dialects/paparazzi/enum_uavcan_node_mode.go index 64b241bf9..57098dff7 100644 --- a/pkg/dialects/paparazzi/enum_uavcan_node_mode.go +++ b/pkg/dialects/paparazzi/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/paparazzi/enum_utm_data_avail_flags.go b/pkg/dialects/paparazzi/enum_utm_data_avail_flags.go index 21f0c2b10..1bdc8dcaa 100644 --- a/pkg/dialects/paparazzi/enum_utm_data_avail_flags.go +++ b/pkg/dialects/paparazzi/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/paparazzi/enum_utm_flight_state.go b/pkg/dialects/paparazzi/enum_utm_flight_state.go index 1b1c8acba..9179ee276 100644 --- a/pkg/dialects/paparazzi/enum_utm_flight_state.go +++ b/pkg/dialects/paparazzi/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/paparazzi/enum_video_stream_status_flags.go b/pkg/dialects/paparazzi/enum_video_stream_status_flags.go index d863dcf75..0ec393ed9 100644 --- a/pkg/dialects/paparazzi/enum_video_stream_status_flags.go +++ b/pkg/dialects/paparazzi/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/paparazzi/enum_video_stream_type.go b/pkg/dialects/paparazzi/enum_video_stream_type.go index cc50fc18c..1f122d0bb 100644 --- a/pkg/dialects/paparazzi/enum_video_stream_type.go +++ b/pkg/dialects/paparazzi/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/paparazzi/enum_vtol_transition_heading.go b/pkg/dialects/paparazzi/enum_vtol_transition_heading.go index c8c457e4f..45cebc796 100644 --- a/pkg/dialects/paparazzi/enum_vtol_transition_heading.go +++ b/pkg/dialects/paparazzi/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/paparazzi/enum_wifi_config_ap_mode.go b/pkg/dialects/paparazzi/enum_wifi_config_ap_mode.go index 08470bee6..2293ea135 100644 --- a/pkg/dialects/paparazzi/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/paparazzi/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/paparazzi/enum_wifi_config_ap_response.go b/pkg/dialects/paparazzi/enum_wifi_config_ap_response.go index 039197e90..ec5ceda7f 100644 --- a/pkg/dialects/paparazzi/enum_wifi_config_ap_response.go +++ b/pkg/dialects/paparazzi/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/paparazzi/enum_winch_actions.go b/pkg/dialects/paparazzi/enum_winch_actions.go index 1a441f466..02d6eec5e 100644 --- a/pkg/dialects/paparazzi/enum_winch_actions.go +++ b/pkg/dialects/paparazzi/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/pythonarraytest/enum_actuator_configuration.go b/pkg/dialects/pythonarraytest/enum_actuator_configuration.go index 6cfba8907..2a2ceeaec 100644 --- a/pkg/dialects/pythonarraytest/enum_actuator_configuration.go +++ b/pkg/dialects/pythonarraytest/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/pythonarraytest/enum_actuator_output_function.go b/pkg/dialects/pythonarraytest/enum_actuator_output_function.go index 522de9a95..829baef8c 100644 --- a/pkg/dialects/pythonarraytest/enum_actuator_output_function.go +++ b/pkg/dialects/pythonarraytest/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/pythonarraytest/enum_adsb_altitude_type.go b/pkg/dialects/pythonarraytest/enum_adsb_altitude_type.go index 537d39dc6..a1ad25ba2 100644 --- a/pkg/dialects/pythonarraytest/enum_adsb_altitude_type.go +++ b/pkg/dialects/pythonarraytest/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/pythonarraytest/enum_adsb_emitter_type.go b/pkg/dialects/pythonarraytest/enum_adsb_emitter_type.go index 3973c1a54..204b43ed2 100644 --- a/pkg/dialects/pythonarraytest/enum_adsb_emitter_type.go +++ b/pkg/dialects/pythonarraytest/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/pythonarraytest/enum_adsb_flags.go b/pkg/dialects/pythonarraytest/enum_adsb_flags.go index 00bdb31ea..2e80c2219 100644 --- a/pkg/dialects/pythonarraytest/enum_adsb_flags.go +++ b/pkg/dialects/pythonarraytest/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/pythonarraytest/enum_ais_flags.go b/pkg/dialects/pythonarraytest/enum_ais_flags.go index 191becb31..a27efc0ed 100644 --- a/pkg/dialects/pythonarraytest/enum_ais_flags.go +++ b/pkg/dialects/pythonarraytest/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/pythonarraytest/enum_ais_nav_status.go b/pkg/dialects/pythonarraytest/enum_ais_nav_status.go index 00d4f0915..ad98313f4 100644 --- a/pkg/dialects/pythonarraytest/enum_ais_nav_status.go +++ b/pkg/dialects/pythonarraytest/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/pythonarraytest/enum_ais_type.go b/pkg/dialects/pythonarraytest/enum_ais_type.go index cd832c46b..120561a80 100644 --- a/pkg/dialects/pythonarraytest/enum_ais_type.go +++ b/pkg/dialects/pythonarraytest/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/pythonarraytest/enum_attitude_target_typemask.go b/pkg/dialects/pythonarraytest/enum_attitude_target_typemask.go index 5baee0583..63a8747af 100644 --- a/pkg/dialects/pythonarraytest/enum_attitude_target_typemask.go +++ b/pkg/dialects/pythonarraytest/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/pythonarraytest/enum_autotune_axis.go b/pkg/dialects/pythonarraytest/enum_autotune_axis.go index 858cac3c3..08d6d4a2a 100644 --- a/pkg/dialects/pythonarraytest/enum_autotune_axis.go +++ b/pkg/dialects/pythonarraytest/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/pythonarraytest/enum_camera_cap_flags.go b/pkg/dialects/pythonarraytest/enum_camera_cap_flags.go index e211b418e..12422c608 100644 --- a/pkg/dialects/pythonarraytest/enum_camera_cap_flags.go +++ b/pkg/dialects/pythonarraytest/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/pythonarraytest/enum_camera_mode.go b/pkg/dialects/pythonarraytest/enum_camera_mode.go index 8f128d146..d005ab813 100644 --- a/pkg/dialects/pythonarraytest/enum_camera_mode.go +++ b/pkg/dialects/pythonarraytest/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/pythonarraytest/enum_camera_tracking_mode.go b/pkg/dialects/pythonarraytest/enum_camera_tracking_mode.go index a94582929..2bc1fc843 100644 --- a/pkg/dialects/pythonarraytest/enum_camera_tracking_mode.go +++ b/pkg/dialects/pythonarraytest/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/pythonarraytest/enum_camera_tracking_status_flags.go b/pkg/dialects/pythonarraytest/enum_camera_tracking_status_flags.go index 760eab2ed..3b0559e02 100644 --- a/pkg/dialects/pythonarraytest/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/pythonarraytest/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/pythonarraytest/enum_camera_tracking_target_data.go b/pkg/dialects/pythonarraytest/enum_camera_tracking_target_data.go index bfe4a9d84..99800b201 100644 --- a/pkg/dialects/pythonarraytest/enum_camera_tracking_target_data.go +++ b/pkg/dialects/pythonarraytest/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/pythonarraytest/enum_camera_zoom_type.go b/pkg/dialects/pythonarraytest/enum_camera_zoom_type.go index dd3b21c84..89b1f61a6 100644 --- a/pkg/dialects/pythonarraytest/enum_camera_zoom_type.go +++ b/pkg/dialects/pythonarraytest/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/pythonarraytest/enum_cellular_config_response.go b/pkg/dialects/pythonarraytest/enum_cellular_config_response.go index f25a8e0eb..e8eaa2dbf 100644 --- a/pkg/dialects/pythonarraytest/enum_cellular_config_response.go +++ b/pkg/dialects/pythonarraytest/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/pythonarraytest/enum_cellular_network_failed_reason.go b/pkg/dialects/pythonarraytest/enum_cellular_network_failed_reason.go index 07cbdac73..8bb4811d8 100644 --- a/pkg/dialects/pythonarraytest/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/pythonarraytest/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/pythonarraytest/enum_cellular_network_radio_type.go b/pkg/dialects/pythonarraytest/enum_cellular_network_radio_type.go index f70307c6e..998f7713e 100644 --- a/pkg/dialects/pythonarraytest/enum_cellular_network_radio_type.go +++ b/pkg/dialects/pythonarraytest/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/pythonarraytest/enum_cellular_status_flag.go b/pkg/dialects/pythonarraytest/enum_cellular_status_flag.go index cd1920076..3b6039ae8 100644 --- a/pkg/dialects/pythonarraytest/enum_cellular_status_flag.go +++ b/pkg/dialects/pythonarraytest/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/pythonarraytest/enum_comp_metadata_type.go b/pkg/dialects/pythonarraytest/enum_comp_metadata_type.go index 1ddf0520b..17cd897bd 100644 --- a/pkg/dialects/pythonarraytest/enum_comp_metadata_type.go +++ b/pkg/dialects/pythonarraytest/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/pythonarraytest/enum_esc_connection_type.go b/pkg/dialects/pythonarraytest/enum_esc_connection_type.go index 7a5f89805..d38e2d078 100644 --- a/pkg/dialects/pythonarraytest/enum_esc_connection_type.go +++ b/pkg/dialects/pythonarraytest/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/pythonarraytest/enum_esc_failure_flags.go b/pkg/dialects/pythonarraytest/enum_esc_failure_flags.go index 84df70752..698c466c6 100644 --- a/pkg/dialects/pythonarraytest/enum_esc_failure_flags.go +++ b/pkg/dialects/pythonarraytest/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/pythonarraytest/enum_estimator_status_flags.go b/pkg/dialects/pythonarraytest/enum_estimator_status_flags.go index a7959c84d..52a71c36a 100644 --- a/pkg/dialects/pythonarraytest/enum_estimator_status_flags.go +++ b/pkg/dialects/pythonarraytest/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/pythonarraytest/enum_failure_type.go b/pkg/dialects/pythonarraytest/enum_failure_type.go index 5e768c611..06ed6f86d 100644 --- a/pkg/dialects/pythonarraytest/enum_failure_type.go +++ b/pkg/dialects/pythonarraytest/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/pythonarraytest/enum_failure_unit.go b/pkg/dialects/pythonarraytest/enum_failure_unit.go index 087d2b59e..67ef73998 100644 --- a/pkg/dialects/pythonarraytest/enum_failure_unit.go +++ b/pkg/dialects/pythonarraytest/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/pythonarraytest/enum_fence_action.go b/pkg/dialects/pythonarraytest/enum_fence_action.go index baa3992b2..1d4fe3afb 100644 --- a/pkg/dialects/pythonarraytest/enum_fence_action.go +++ b/pkg/dialects/pythonarraytest/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/pythonarraytest/enum_fence_breach.go b/pkg/dialects/pythonarraytest/enum_fence_breach.go index 83e1e0a1a..cf6601db1 100644 --- a/pkg/dialects/pythonarraytest/enum_fence_breach.go +++ b/pkg/dialects/pythonarraytest/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/pythonarraytest/enum_fence_mitigate.go b/pkg/dialects/pythonarraytest/enum_fence_mitigate.go index 03bec8738..475752cfd 100644 --- a/pkg/dialects/pythonarraytest/enum_fence_mitigate.go +++ b/pkg/dialects/pythonarraytest/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/pythonarraytest/enum_firmware_version_type.go b/pkg/dialects/pythonarraytest/enum_firmware_version_type.go index 6155f5e96..673bed1c7 100644 --- a/pkg/dialects/pythonarraytest/enum_firmware_version_type.go +++ b/pkg/dialects/pythonarraytest/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/pythonarraytest/enum_gimbal_device_cap_flags.go b/pkg/dialects/pythonarraytest/enum_gimbal_device_cap_flags.go index 6f25024a3..12b1ecc1b 100644 --- a/pkg/dialects/pythonarraytest/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/pythonarraytest/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/pythonarraytest/enum_gimbal_device_error_flags.go b/pkg/dialects/pythonarraytest/enum_gimbal_device_error_flags.go index 91e2f0e87..829575f9e 100644 --- a/pkg/dialects/pythonarraytest/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/pythonarraytest/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/pythonarraytest/enum_gimbal_device_flags.go b/pkg/dialects/pythonarraytest/enum_gimbal_device_flags.go index ec761a124..33d1b9d89 100644 --- a/pkg/dialects/pythonarraytest/enum_gimbal_device_flags.go +++ b/pkg/dialects/pythonarraytest/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/pythonarraytest/enum_gimbal_manager_cap_flags.go b/pkg/dialects/pythonarraytest/enum_gimbal_manager_cap_flags.go index b4fc22695..d048bc2ce 100644 --- a/pkg/dialects/pythonarraytest/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/pythonarraytest/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/pythonarraytest/enum_gimbal_manager_flags.go b/pkg/dialects/pythonarraytest/enum_gimbal_manager_flags.go index 186d0b31a..f10fab134 100644 --- a/pkg/dialects/pythonarraytest/enum_gimbal_manager_flags.go +++ b/pkg/dialects/pythonarraytest/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/pythonarraytest/enum_gps_fix_type.go b/pkg/dialects/pythonarraytest/enum_gps_fix_type.go index 803222adb..684bb3066 100644 --- a/pkg/dialects/pythonarraytest/enum_gps_fix_type.go +++ b/pkg/dialects/pythonarraytest/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/pythonarraytest/enum_gps_input_ignore_flags.go b/pkg/dialects/pythonarraytest/enum_gps_input_ignore_flags.go index 36c6c0b1a..23585a094 100644 --- a/pkg/dialects/pythonarraytest/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/pythonarraytest/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/pythonarraytest/enum_gripper_actions.go b/pkg/dialects/pythonarraytest/enum_gripper_actions.go index 381f16f67..b31360dbe 100644 --- a/pkg/dialects/pythonarraytest/enum_gripper_actions.go +++ b/pkg/dialects/pythonarraytest/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/pythonarraytest/enum_highres_imu_updated_flags.go b/pkg/dialects/pythonarraytest/enum_highres_imu_updated_flags.go index bad88a8fd..0194d5844 100644 --- a/pkg/dialects/pythonarraytest/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/pythonarraytest/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/pythonarraytest/enum_hil_sensor_updated_flags.go b/pkg/dialects/pythonarraytest/enum_hil_sensor_updated_flags.go index 733e9e135..1aa70d8b9 100644 --- a/pkg/dialects/pythonarraytest/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/pythonarraytest/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/pythonarraytest/enum_hl_failure_flag.go b/pkg/dialects/pythonarraytest/enum_hl_failure_flag.go index 8619f04e8..7a014714a 100644 --- a/pkg/dialects/pythonarraytest/enum_hl_failure_flag.go +++ b/pkg/dialects/pythonarraytest/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/pythonarraytest/enum_landing_target_type.go b/pkg/dialects/pythonarraytest/enum_landing_target_type.go index d0108fd2e..d36f18355 100644 --- a/pkg/dialects/pythonarraytest/enum_landing_target_type.go +++ b/pkg/dialects/pythonarraytest/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/pythonarraytest/enum_mag_cal_status.go b/pkg/dialects/pythonarraytest/enum_mag_cal_status.go index 6720d0ee5..60cacfeb1 100644 --- a/pkg/dialects/pythonarraytest/enum_mag_cal_status.go +++ b/pkg/dialects/pythonarraytest/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/pythonarraytest/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/pythonarraytest/enum_mav_arm_auth_denied_reason.go index 21ea7dec7..ff747d09f 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/pythonarraytest/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/pythonarraytest/enum_mav_autopilot.go b/pkg/dialects/pythonarraytest/enum_mav_autopilot.go index 7e3526edd..d8a088bcd 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_autopilot.go +++ b/pkg/dialects/pythonarraytest/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/pythonarraytest/enum_mav_battery_charge_state.go b/pkg/dialects/pythonarraytest/enum_mav_battery_charge_state.go index 2f0ff4807..093d1131a 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_battery_charge_state.go +++ b/pkg/dialects/pythonarraytest/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/pythonarraytest/enum_mav_battery_fault.go b/pkg/dialects/pythonarraytest/enum_mav_battery_fault.go index b901603e6..d28ec66a2 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_battery_fault.go +++ b/pkg/dialects/pythonarraytest/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/pythonarraytest/enum_mav_battery_function.go b/pkg/dialects/pythonarraytest/enum_mav_battery_function.go index b697c90d7..330cd458d 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_battery_function.go +++ b/pkg/dialects/pythonarraytest/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/pythonarraytest/enum_mav_battery_mode.go b/pkg/dialects/pythonarraytest/enum_mav_battery_mode.go index b4dce8a12..05c2a9f4d 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_battery_mode.go +++ b/pkg/dialects/pythonarraytest/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/pythonarraytest/enum_mav_battery_type.go b/pkg/dialects/pythonarraytest/enum_mav_battery_type.go index 3a0a508f0..f5e53b513 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_battery_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/pythonarraytest/enum_mav_cmd.go b/pkg/dialects/pythonarraytest/enum_mav_cmd.go index 8180617c1..03f0cae84 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_cmd.go +++ b/pkg/dialects/pythonarraytest/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/pythonarraytest/enum_mav_cmd_ack.go b/pkg/dialects/pythonarraytest/enum_mav_cmd_ack.go index 48e789e50..121e0d337 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_cmd_ack.go +++ b/pkg/dialects/pythonarraytest/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/pythonarraytest/enum_mav_collision_action.go b/pkg/dialects/pythonarraytest/enum_mav_collision_action.go index 46cf3588f..9f8f089da 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_collision_action.go +++ b/pkg/dialects/pythonarraytest/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/pythonarraytest/enum_mav_collision_src.go b/pkg/dialects/pythonarraytest/enum_mav_collision_src.go index a1eedb7c6..5481f0c63 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_collision_src.go +++ b/pkg/dialects/pythonarraytest/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/pythonarraytest/enum_mav_collision_threat_level.go b/pkg/dialects/pythonarraytest/enum_mav_collision_threat_level.go index 98212d713..8dfa34fb4 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_collision_threat_level.go +++ b/pkg/dialects/pythonarraytest/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/pythonarraytest/enum_mav_component.go b/pkg/dialects/pythonarraytest/enum_mav_component.go index 113f33f3f..d100e0745 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_component.go +++ b/pkg/dialects/pythonarraytest/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/pythonarraytest/enum_mav_data_stream.go b/pkg/dialects/pythonarraytest/enum_mav_data_stream.go index 382051a0a..962946efb 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_data_stream.go +++ b/pkg/dialects/pythonarraytest/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/pythonarraytest/enum_mav_distance_sensor.go b/pkg/dialects/pythonarraytest/enum_mav_distance_sensor.go index a7087d016..9624200d6 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_distance_sensor.go +++ b/pkg/dialects/pythonarraytest/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/pythonarraytest/enum_mav_do_reposition_flags.go b/pkg/dialects/pythonarraytest/enum_mav_do_reposition_flags.go index a85c1b59a..d0e2ef3f0 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/pythonarraytest/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/pythonarraytest/enum_mav_estimator_type.go b/pkg/dialects/pythonarraytest/enum_mav_estimator_type.go index 01075fd62..b84f41621 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_estimator_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/pythonarraytest/enum_mav_event_current_sequence_flags.go b/pkg/dialects/pythonarraytest/enum_mav_event_current_sequence_flags.go index 57eeb1138..7f290c041 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/pythonarraytest/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/pythonarraytest/enum_mav_event_error_reason.go b/pkg/dialects/pythonarraytest/enum_mav_event_error_reason.go index c9b0b8cd3..5d36deb93 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_event_error_reason.go +++ b/pkg/dialects/pythonarraytest/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/pythonarraytest/enum_mav_frame.go b/pkg/dialects/pythonarraytest/enum_mav_frame.go index ea40ca77e..2d477146f 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_frame.go +++ b/pkg/dialects/pythonarraytest/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/pythonarraytest/enum_mav_generator_status_flag.go b/pkg/dialects/pythonarraytest/enum_mav_generator_status_flag.go index 6c9586ccb..df67f35e2 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_generator_status_flag.go +++ b/pkg/dialects/pythonarraytest/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/pythonarraytest/enum_mav_goto.go b/pkg/dialects/pythonarraytest/enum_mav_goto.go index 0318ec88b..9894b0d7c 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_goto.go +++ b/pkg/dialects/pythonarraytest/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/pythonarraytest/enum_mav_landed_state.go b/pkg/dialects/pythonarraytest/enum_mav_landed_state.go index 2f78930b0..7eddcc6ed 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_landed_state.go +++ b/pkg/dialects/pythonarraytest/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/pythonarraytest/enum_mav_mission_result.go b/pkg/dialects/pythonarraytest/enum_mav_mission_result.go index fb972200a..837de7601 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_mission_result.go +++ b/pkg/dialects/pythonarraytest/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/pythonarraytest/enum_mav_mission_type.go b/pkg/dialects/pythonarraytest/enum_mav_mission_type.go index 2b26992f6..0d7fe06dd 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_mission_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/pythonarraytest/enum_mav_mode.go b/pkg/dialects/pythonarraytest/enum_mav_mode.go index 1c383d954..4e9c84431 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_mode.go +++ b/pkg/dialects/pythonarraytest/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/pythonarraytest/enum_mav_mode_flag.go b/pkg/dialects/pythonarraytest/enum_mav_mode_flag.go index 9800093c8..38351ccdb 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_mode_flag.go +++ b/pkg/dialects/pythonarraytest/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/pythonarraytest/enum_mav_mode_flag_decode_position.go b/pkg/dialects/pythonarraytest/enum_mav_mode_flag_decode_position.go index 48fb5fd21..d35721f3d 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/pythonarraytest/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/pythonarraytest/enum_mav_mount_mode.go b/pkg/dialects/pythonarraytest/enum_mav_mount_mode.go index 6974a6273..09af94491 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_mount_mode.go +++ b/pkg/dialects/pythonarraytest/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_auth_type.go b/pkg/dialects/pythonarraytest/enum_mav_odid_auth_type.go index 51fc5d2c6..21fb5dd8f 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_auth_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_category_eu.go b/pkg/dialects/pythonarraytest/enum_mav_odid_category_eu.go index b10c4c2ff..646286e9c 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_category_eu.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_class_eu.go b/pkg/dialects/pythonarraytest/enum_mav_odid_class_eu.go index b479862d5..e349e96d8 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_class_eu.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_classification_type.go b/pkg/dialects/pythonarraytest/enum_mav_odid_classification_type.go index 962a04a6d..747703134 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_classification_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_desc_type.go b/pkg/dialects/pythonarraytest/enum_mav_odid_desc_type.go index e502523d0..530840777 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_desc_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_height_ref.go b/pkg/dialects/pythonarraytest/enum_mav_odid_height_ref.go index 9a631f59c..9c7d3555b 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_height_ref.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_hor_acc.go b/pkg/dialects/pythonarraytest/enum_mav_odid_hor_acc.go index d176b0d6b..49538c0c2 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_id_type.go b/pkg/dialects/pythonarraytest/enum_mav_odid_id_type.go index 13f469c29..a243202d6 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_id_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_operator_id_type.go b/pkg/dialects/pythonarraytest/enum_mav_odid_operator_id_type.go index 30915c5f8..1939337cc 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_operator_location_type.go b/pkg/dialects/pythonarraytest/enum_mav_odid_operator_location_type.go index eaa5aa0f7..f39cea330 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_speed_acc.go b/pkg/dialects/pythonarraytest/enum_mav_odid_speed_acc.go index 24c9f5912..9bfafeae9 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_status.go b/pkg/dialects/pythonarraytest/enum_mav_odid_status.go index c54bc9104..949f1afe6 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_status.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_time_acc.go b/pkg/dialects/pythonarraytest/enum_mav_odid_time_acc.go index d70fac183..a2f6147aa 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_time_acc.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_ua_type.go b/pkg/dialects/pythonarraytest/enum_mav_odid_ua_type.go index 37e1ea3e9..c6c9a9fad 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_ua_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/pythonarraytest/enum_mav_odid_ver_acc.go b/pkg/dialects/pythonarraytest/enum_mav_odid_ver_acc.go index 284b4efb7..e89800eda 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/pythonarraytest/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/pythonarraytest/enum_mav_param_ext_type.go b/pkg/dialects/pythonarraytest/enum_mav_param_ext_type.go index 15da1c9a1..d22ce9f3c 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_param_ext_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/pythonarraytest/enum_mav_param_type.go b/pkg/dialects/pythonarraytest/enum_mav_param_type.go index 860b0a14d..744eff563 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_param_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/pythonarraytest/enum_mav_power_status.go b/pkg/dialects/pythonarraytest/enum_mav_power_status.go index 2559e149a..9d200b2c2 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_power_status.go +++ b/pkg/dialects/pythonarraytest/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/pythonarraytest/enum_mav_protocol_capability.go b/pkg/dialects/pythonarraytest/enum_mav_protocol_capability.go index 130bfc891..372170ef4 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_protocol_capability.go +++ b/pkg/dialects/pythonarraytest/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/pythonarraytest/enum_mav_result.go b/pkg/dialects/pythonarraytest/enum_mav_result.go index d7e36d3cd..cc18292d5 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_result.go +++ b/pkg/dialects/pythonarraytest/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/pythonarraytest/enum_mav_roi.go b/pkg/dialects/pythonarraytest/enum_mav_roi.go index e7645f133..21e46bce6 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_roi.go +++ b/pkg/dialects/pythonarraytest/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/pythonarraytest/enum_mav_sensor_orientation.go b/pkg/dialects/pythonarraytest/enum_mav_sensor_orientation.go index ca09da78d..edf649a54 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_sensor_orientation.go +++ b/pkg/dialects/pythonarraytest/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/pythonarraytest/enum_mav_severity.go b/pkg/dialects/pythonarraytest/enum_mav_severity.go index 5932a8d62..2b4bcf9d5 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_severity.go +++ b/pkg/dialects/pythonarraytest/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/pythonarraytest/enum_mav_state.go b/pkg/dialects/pythonarraytest/enum_mav_state.go index bdab5069e..e75539825 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_state.go +++ b/pkg/dialects/pythonarraytest/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/pythonarraytest/enum_mav_sys_status_sensor.go b/pkg/dialects/pythonarraytest/enum_mav_sys_status_sensor.go index c7c85ffe0..885ca0c51 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/pythonarraytest/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/pythonarraytest/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/pythonarraytest/enum_mav_sys_status_sensor_extended.go index fee805079..2e54d9d16 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/pythonarraytest/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/pythonarraytest/enum_mav_tunnel_payload_type.go b/pkg/dialects/pythonarraytest/enum_mav_tunnel_payload_type.go index 6463b7e51..7a913916a 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/pythonarraytest/enum_mav_type.go b/pkg/dialects/pythonarraytest/enum_mav_type.go index 43b44a9c8..5c9b3a87a 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_type.go +++ b/pkg/dialects/pythonarraytest/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/pythonarraytest/enum_mav_vtol_state.go b/pkg/dialects/pythonarraytest/enum_mav_vtol_state.go index a1127b4ec..997384bac 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_vtol_state.go +++ b/pkg/dialects/pythonarraytest/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/pythonarraytest/enum_mav_winch_status_flag.go b/pkg/dialects/pythonarraytest/enum_mav_winch_status_flag.go index 22b175507..fd573f484 100644 --- a/pkg/dialects/pythonarraytest/enum_mav_winch_status_flag.go +++ b/pkg/dialects/pythonarraytest/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/pythonarraytest/enum_mavlink_data_stream_type.go b/pkg/dialects/pythonarraytest/enum_mavlink_data_stream_type.go index a687302e9..0f7251e16 100644 --- a/pkg/dialects/pythonarraytest/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/pythonarraytest/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/pythonarraytest/enum_motor_test_order.go b/pkg/dialects/pythonarraytest/enum_motor_test_order.go index 1fd8ffcf0..7bc64361c 100644 --- a/pkg/dialects/pythonarraytest/enum_motor_test_order.go +++ b/pkg/dialects/pythonarraytest/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/pythonarraytest/enum_motor_test_throttle_type.go b/pkg/dialects/pythonarraytest/enum_motor_test_throttle_type.go index 16dc74c02..0790b302c 100644 --- a/pkg/dialects/pythonarraytest/enum_motor_test_throttle_type.go +++ b/pkg/dialects/pythonarraytest/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/pythonarraytest/enum_nav_vtol_land_options.go b/pkg/dialects/pythonarraytest/enum_nav_vtol_land_options.go index 6123ac5e5..8c4bacda8 100644 --- a/pkg/dialects/pythonarraytest/enum_nav_vtol_land_options.go +++ b/pkg/dialects/pythonarraytest/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/pythonarraytest/enum_orbit_yaw_behaviour.go b/pkg/dialects/pythonarraytest/enum_orbit_yaw_behaviour.go index b2d40f0ce..2d01d0c65 100644 --- a/pkg/dialects/pythonarraytest/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/pythonarraytest/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/pythonarraytest/enum_parachute_action.go b/pkg/dialects/pythonarraytest/enum_parachute_action.go index 7c2fb505f..2f61ae3e0 100644 --- a/pkg/dialects/pythonarraytest/enum_parachute_action.go +++ b/pkg/dialects/pythonarraytest/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/pythonarraytest/enum_param_ack.go b/pkg/dialects/pythonarraytest/enum_param_ack.go index 60a699f37..fa410e279 100644 --- a/pkg/dialects/pythonarraytest/enum_param_ack.go +++ b/pkg/dialects/pythonarraytest/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/pythonarraytest/enum_position_target_typemask.go b/pkg/dialects/pythonarraytest/enum_position_target_typemask.go index 8b7dd626c..611e74ecd 100644 --- a/pkg/dialects/pythonarraytest/enum_position_target_typemask.go +++ b/pkg/dialects/pythonarraytest/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/pythonarraytest/enum_precision_land_mode.go b/pkg/dialects/pythonarraytest/enum_precision_land_mode.go index 748dd892a..8e753fcd3 100644 --- a/pkg/dialects/pythonarraytest/enum_precision_land_mode.go +++ b/pkg/dialects/pythonarraytest/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/pythonarraytest/enum_rc_type.go b/pkg/dialects/pythonarraytest/enum_rc_type.go index a9b3d7401..1b43a85d7 100644 --- a/pkg/dialects/pythonarraytest/enum_rc_type.go +++ b/pkg/dialects/pythonarraytest/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/pythonarraytest/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/pythonarraytest/enum_rtk_baseline_coordinate_system.go index f00448aac..8fa2c4108 100644 --- a/pkg/dialects/pythonarraytest/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/pythonarraytest/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/pythonarraytest/enum_serial_control_dev.go b/pkg/dialects/pythonarraytest/enum_serial_control_dev.go index 5c34b3c6b..170df3997 100644 --- a/pkg/dialects/pythonarraytest/enum_serial_control_dev.go +++ b/pkg/dialects/pythonarraytest/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/pythonarraytest/enum_serial_control_flag.go b/pkg/dialects/pythonarraytest/enum_serial_control_flag.go index 3f6eca8ec..030c7dba6 100644 --- a/pkg/dialects/pythonarraytest/enum_serial_control_flag.go +++ b/pkg/dialects/pythonarraytest/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/pythonarraytest/enum_set_focus_type.go b/pkg/dialects/pythonarraytest/enum_set_focus_type.go index a440133ff..ade56ac4a 100644 --- a/pkg/dialects/pythonarraytest/enum_set_focus_type.go +++ b/pkg/dialects/pythonarraytest/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/pythonarraytest/enum_storage_status.go b/pkg/dialects/pythonarraytest/enum_storage_status.go index b7cef783e..e9a0f8221 100644 --- a/pkg/dialects/pythonarraytest/enum_storage_status.go +++ b/pkg/dialects/pythonarraytest/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/pythonarraytest/enum_storage_type.go b/pkg/dialects/pythonarraytest/enum_storage_type.go index ba9825042..3ec2dcf90 100644 --- a/pkg/dialects/pythonarraytest/enum_storage_type.go +++ b/pkg/dialects/pythonarraytest/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/pythonarraytest/enum_storage_usage_flag.go b/pkg/dialects/pythonarraytest/enum_storage_usage_flag.go index 1d53c9861..700ee7fe6 100644 --- a/pkg/dialects/pythonarraytest/enum_storage_usage_flag.go +++ b/pkg/dialects/pythonarraytest/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/pythonarraytest/enum_tune_format.go b/pkg/dialects/pythonarraytest/enum_tune_format.go index 3687937a1..5bad5e276 100644 --- a/pkg/dialects/pythonarraytest/enum_tune_format.go +++ b/pkg/dialects/pythonarraytest/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/pythonarraytest/enum_uavcan_node_health.go b/pkg/dialects/pythonarraytest/enum_uavcan_node_health.go index 76959eaa3..15c421e5d 100644 --- a/pkg/dialects/pythonarraytest/enum_uavcan_node_health.go +++ b/pkg/dialects/pythonarraytest/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/pythonarraytest/enum_uavcan_node_mode.go b/pkg/dialects/pythonarraytest/enum_uavcan_node_mode.go index 78ddc4ae9..88f680396 100644 --- a/pkg/dialects/pythonarraytest/enum_uavcan_node_mode.go +++ b/pkg/dialects/pythonarraytest/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/pythonarraytest/enum_utm_data_avail_flags.go b/pkg/dialects/pythonarraytest/enum_utm_data_avail_flags.go index e2ddbd9e2..f28bfe6d0 100644 --- a/pkg/dialects/pythonarraytest/enum_utm_data_avail_flags.go +++ b/pkg/dialects/pythonarraytest/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/pythonarraytest/enum_utm_flight_state.go b/pkg/dialects/pythonarraytest/enum_utm_flight_state.go index a65960fad..a8aaf9436 100644 --- a/pkg/dialects/pythonarraytest/enum_utm_flight_state.go +++ b/pkg/dialects/pythonarraytest/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/pythonarraytest/enum_video_stream_status_flags.go b/pkg/dialects/pythonarraytest/enum_video_stream_status_flags.go index be1080c1c..6d0c89029 100644 --- a/pkg/dialects/pythonarraytest/enum_video_stream_status_flags.go +++ b/pkg/dialects/pythonarraytest/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/pythonarraytest/enum_video_stream_type.go b/pkg/dialects/pythonarraytest/enum_video_stream_type.go index a8d063e87..42dfaab36 100644 --- a/pkg/dialects/pythonarraytest/enum_video_stream_type.go +++ b/pkg/dialects/pythonarraytest/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/pythonarraytest/enum_vtol_transition_heading.go b/pkg/dialects/pythonarraytest/enum_vtol_transition_heading.go index 03feee59d..b035fe572 100644 --- a/pkg/dialects/pythonarraytest/enum_vtol_transition_heading.go +++ b/pkg/dialects/pythonarraytest/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/pythonarraytest/enum_wifi_config_ap_mode.go b/pkg/dialects/pythonarraytest/enum_wifi_config_ap_mode.go index 3f95ef1bf..44238fc27 100644 --- a/pkg/dialects/pythonarraytest/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/pythonarraytest/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/pythonarraytest/enum_wifi_config_ap_response.go b/pkg/dialects/pythonarraytest/enum_wifi_config_ap_response.go index 4fa238640..9cafbae03 100644 --- a/pkg/dialects/pythonarraytest/enum_wifi_config_ap_response.go +++ b/pkg/dialects/pythonarraytest/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/pythonarraytest/enum_winch_actions.go b/pkg/dialects/pythonarraytest/enum_winch_actions.go index 83c533d0a..585a898c2 100644 --- a/pkg/dialects/pythonarraytest/enum_winch_actions.go +++ b/pkg/dialects/pythonarraytest/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/standard/enum_actuator_configuration.go b/pkg/dialects/standard/enum_actuator_configuration.go index 91693d29c..310e8b422 100644 --- a/pkg/dialects/standard/enum_actuator_configuration.go +++ b/pkg/dialects/standard/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/standard/enum_actuator_output_function.go b/pkg/dialects/standard/enum_actuator_output_function.go index 11843e9bc..4a5deed83 100644 --- a/pkg/dialects/standard/enum_actuator_output_function.go +++ b/pkg/dialects/standard/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/standard/enum_adsb_altitude_type.go b/pkg/dialects/standard/enum_adsb_altitude_type.go index 7ec0d148b..cf2dcf0cd 100644 --- a/pkg/dialects/standard/enum_adsb_altitude_type.go +++ b/pkg/dialects/standard/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/standard/enum_adsb_emitter_type.go b/pkg/dialects/standard/enum_adsb_emitter_type.go index 7dcc5b648..0c3e4d4d8 100644 --- a/pkg/dialects/standard/enum_adsb_emitter_type.go +++ b/pkg/dialects/standard/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/standard/enum_adsb_flags.go b/pkg/dialects/standard/enum_adsb_flags.go index 32284345b..ce5cc45e7 100644 --- a/pkg/dialects/standard/enum_adsb_flags.go +++ b/pkg/dialects/standard/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/standard/enum_ais_flags.go b/pkg/dialects/standard/enum_ais_flags.go index 78ae8af6a..5f8291217 100644 --- a/pkg/dialects/standard/enum_ais_flags.go +++ b/pkg/dialects/standard/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/standard/enum_ais_nav_status.go b/pkg/dialects/standard/enum_ais_nav_status.go index 3314db897..d83cac429 100644 --- a/pkg/dialects/standard/enum_ais_nav_status.go +++ b/pkg/dialects/standard/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/standard/enum_ais_type.go b/pkg/dialects/standard/enum_ais_type.go index 2cdae46e4..e75a00109 100644 --- a/pkg/dialects/standard/enum_ais_type.go +++ b/pkg/dialects/standard/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/standard/enum_attitude_target_typemask.go b/pkg/dialects/standard/enum_attitude_target_typemask.go index e2a0409d3..60011ae85 100644 --- a/pkg/dialects/standard/enum_attitude_target_typemask.go +++ b/pkg/dialects/standard/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/standard/enum_autotune_axis.go b/pkg/dialects/standard/enum_autotune_axis.go index ce411c56f..d94f89844 100644 --- a/pkg/dialects/standard/enum_autotune_axis.go +++ b/pkg/dialects/standard/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/standard/enum_camera_cap_flags.go b/pkg/dialects/standard/enum_camera_cap_flags.go index cfd552d66..9c94150a7 100644 --- a/pkg/dialects/standard/enum_camera_cap_flags.go +++ b/pkg/dialects/standard/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/standard/enum_camera_mode.go b/pkg/dialects/standard/enum_camera_mode.go index a575b08b3..76b9bac78 100644 --- a/pkg/dialects/standard/enum_camera_mode.go +++ b/pkg/dialects/standard/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/standard/enum_camera_tracking_mode.go b/pkg/dialects/standard/enum_camera_tracking_mode.go index 5ba4c97e1..edfcbfc9d 100644 --- a/pkg/dialects/standard/enum_camera_tracking_mode.go +++ b/pkg/dialects/standard/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/standard/enum_camera_tracking_status_flags.go b/pkg/dialects/standard/enum_camera_tracking_status_flags.go index 9c9ec4fd3..28846f975 100644 --- a/pkg/dialects/standard/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/standard/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/standard/enum_camera_tracking_target_data.go b/pkg/dialects/standard/enum_camera_tracking_target_data.go index 98b52d354..2358e7784 100644 --- a/pkg/dialects/standard/enum_camera_tracking_target_data.go +++ b/pkg/dialects/standard/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/standard/enum_camera_zoom_type.go b/pkg/dialects/standard/enum_camera_zoom_type.go index 12f1c03c5..f3a964d97 100644 --- a/pkg/dialects/standard/enum_camera_zoom_type.go +++ b/pkg/dialects/standard/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/standard/enum_cellular_config_response.go b/pkg/dialects/standard/enum_cellular_config_response.go index 8d0446c00..5083dfded 100644 --- a/pkg/dialects/standard/enum_cellular_config_response.go +++ b/pkg/dialects/standard/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/standard/enum_cellular_network_failed_reason.go b/pkg/dialects/standard/enum_cellular_network_failed_reason.go index 159c9df0d..a157c3c34 100644 --- a/pkg/dialects/standard/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/standard/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/standard/enum_cellular_network_radio_type.go b/pkg/dialects/standard/enum_cellular_network_radio_type.go index ce93d0532..ef2e4f04a 100644 --- a/pkg/dialects/standard/enum_cellular_network_radio_type.go +++ b/pkg/dialects/standard/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/standard/enum_cellular_status_flag.go b/pkg/dialects/standard/enum_cellular_status_flag.go index 0356f0b79..76168a558 100644 --- a/pkg/dialects/standard/enum_cellular_status_flag.go +++ b/pkg/dialects/standard/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/standard/enum_comp_metadata_type.go b/pkg/dialects/standard/enum_comp_metadata_type.go index 204b24979..d58fc9298 100644 --- a/pkg/dialects/standard/enum_comp_metadata_type.go +++ b/pkg/dialects/standard/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/standard/enum_esc_connection_type.go b/pkg/dialects/standard/enum_esc_connection_type.go index fe16d2cae..b7e1724f7 100644 --- a/pkg/dialects/standard/enum_esc_connection_type.go +++ b/pkg/dialects/standard/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/standard/enum_esc_failure_flags.go b/pkg/dialects/standard/enum_esc_failure_flags.go index 3a55db1e5..bafca9f59 100644 --- a/pkg/dialects/standard/enum_esc_failure_flags.go +++ b/pkg/dialects/standard/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/standard/enum_estimator_status_flags.go b/pkg/dialects/standard/enum_estimator_status_flags.go index 2d5fefed1..505122ab9 100644 --- a/pkg/dialects/standard/enum_estimator_status_flags.go +++ b/pkg/dialects/standard/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/standard/enum_failure_type.go b/pkg/dialects/standard/enum_failure_type.go index 24afd54b5..874a0d845 100644 --- a/pkg/dialects/standard/enum_failure_type.go +++ b/pkg/dialects/standard/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/standard/enum_failure_unit.go b/pkg/dialects/standard/enum_failure_unit.go index 094e8a4c8..645c64ac6 100644 --- a/pkg/dialects/standard/enum_failure_unit.go +++ b/pkg/dialects/standard/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/standard/enum_fence_action.go b/pkg/dialects/standard/enum_fence_action.go index 80afc5b42..014095e12 100644 --- a/pkg/dialects/standard/enum_fence_action.go +++ b/pkg/dialects/standard/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/standard/enum_fence_breach.go b/pkg/dialects/standard/enum_fence_breach.go index 71764335f..b32443820 100644 --- a/pkg/dialects/standard/enum_fence_breach.go +++ b/pkg/dialects/standard/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/standard/enum_fence_mitigate.go b/pkg/dialects/standard/enum_fence_mitigate.go index c97442cea..69533abd9 100644 --- a/pkg/dialects/standard/enum_fence_mitigate.go +++ b/pkg/dialects/standard/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/standard/enum_firmware_version_type.go b/pkg/dialects/standard/enum_firmware_version_type.go index 57bc4341f..7680098fc 100644 --- a/pkg/dialects/standard/enum_firmware_version_type.go +++ b/pkg/dialects/standard/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/standard/enum_gimbal_device_cap_flags.go b/pkg/dialects/standard/enum_gimbal_device_cap_flags.go index dd730bbae..d6b40577b 100644 --- a/pkg/dialects/standard/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/standard/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/standard/enum_gimbal_device_error_flags.go b/pkg/dialects/standard/enum_gimbal_device_error_flags.go index 3d1859f62..5ac824f80 100644 --- a/pkg/dialects/standard/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/standard/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/standard/enum_gimbal_device_flags.go b/pkg/dialects/standard/enum_gimbal_device_flags.go index ba5fc66cd..88600c4bf 100644 --- a/pkg/dialects/standard/enum_gimbal_device_flags.go +++ b/pkg/dialects/standard/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/standard/enum_gimbal_manager_cap_flags.go b/pkg/dialects/standard/enum_gimbal_manager_cap_flags.go index 74b8140c1..bf6dd7bfd 100644 --- a/pkg/dialects/standard/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/standard/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/standard/enum_gimbal_manager_flags.go b/pkg/dialects/standard/enum_gimbal_manager_flags.go index 85687f164..83b4286d3 100644 --- a/pkg/dialects/standard/enum_gimbal_manager_flags.go +++ b/pkg/dialects/standard/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/standard/enum_gps_fix_type.go b/pkg/dialects/standard/enum_gps_fix_type.go index 0c1c1fe46..b1129773f 100644 --- a/pkg/dialects/standard/enum_gps_fix_type.go +++ b/pkg/dialects/standard/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/standard/enum_gps_input_ignore_flags.go b/pkg/dialects/standard/enum_gps_input_ignore_flags.go index 5cd44c006..d1ec09cd0 100644 --- a/pkg/dialects/standard/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/standard/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/standard/enum_gripper_actions.go b/pkg/dialects/standard/enum_gripper_actions.go index 7851fa504..91a6dda53 100644 --- a/pkg/dialects/standard/enum_gripper_actions.go +++ b/pkg/dialects/standard/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/standard/enum_highres_imu_updated_flags.go b/pkg/dialects/standard/enum_highres_imu_updated_flags.go index cbf7d1a07..b7f879f4d 100644 --- a/pkg/dialects/standard/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/standard/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/standard/enum_hil_sensor_updated_flags.go b/pkg/dialects/standard/enum_hil_sensor_updated_flags.go index 3e9a968bf..0d589634b 100644 --- a/pkg/dialects/standard/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/standard/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/standard/enum_hl_failure_flag.go b/pkg/dialects/standard/enum_hl_failure_flag.go index d8bd5055c..2d62122d3 100644 --- a/pkg/dialects/standard/enum_hl_failure_flag.go +++ b/pkg/dialects/standard/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/standard/enum_landing_target_type.go b/pkg/dialects/standard/enum_landing_target_type.go index f5f04ad08..66a919a14 100644 --- a/pkg/dialects/standard/enum_landing_target_type.go +++ b/pkg/dialects/standard/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/standard/enum_mag_cal_status.go b/pkg/dialects/standard/enum_mag_cal_status.go index 7b8fda208..01c1a330a 100644 --- a/pkg/dialects/standard/enum_mag_cal_status.go +++ b/pkg/dialects/standard/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/standard/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/standard/enum_mav_arm_auth_denied_reason.go index 8edbc7bb3..f3bb24822 100644 --- a/pkg/dialects/standard/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/standard/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/standard/enum_mav_autopilot.go b/pkg/dialects/standard/enum_mav_autopilot.go index 8b6c2d592..f0dda053d 100644 --- a/pkg/dialects/standard/enum_mav_autopilot.go +++ b/pkg/dialects/standard/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/standard/enum_mav_battery_charge_state.go b/pkg/dialects/standard/enum_mav_battery_charge_state.go index 5e604d453..408d86d65 100644 --- a/pkg/dialects/standard/enum_mav_battery_charge_state.go +++ b/pkg/dialects/standard/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/standard/enum_mav_battery_fault.go b/pkg/dialects/standard/enum_mav_battery_fault.go index d40a58ea6..99ba326f3 100644 --- a/pkg/dialects/standard/enum_mav_battery_fault.go +++ b/pkg/dialects/standard/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/standard/enum_mav_battery_function.go b/pkg/dialects/standard/enum_mav_battery_function.go index a0eb075b1..bb13ab74a 100644 --- a/pkg/dialects/standard/enum_mav_battery_function.go +++ b/pkg/dialects/standard/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/standard/enum_mav_battery_mode.go b/pkg/dialects/standard/enum_mav_battery_mode.go index 4ea475ccb..8f49abbec 100644 --- a/pkg/dialects/standard/enum_mav_battery_mode.go +++ b/pkg/dialects/standard/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/standard/enum_mav_battery_type.go b/pkg/dialects/standard/enum_mav_battery_type.go index f04a4c69d..0300ca7e7 100644 --- a/pkg/dialects/standard/enum_mav_battery_type.go +++ b/pkg/dialects/standard/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/standard/enum_mav_cmd.go b/pkg/dialects/standard/enum_mav_cmd.go index fb29dd838..1b62ee9d1 100644 --- a/pkg/dialects/standard/enum_mav_cmd.go +++ b/pkg/dialects/standard/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/standard/enum_mav_cmd_ack.go b/pkg/dialects/standard/enum_mav_cmd_ack.go index 809c12f2e..2766e8e2d 100644 --- a/pkg/dialects/standard/enum_mav_cmd_ack.go +++ b/pkg/dialects/standard/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/standard/enum_mav_collision_action.go b/pkg/dialects/standard/enum_mav_collision_action.go index e35d61ee3..e87cdaca4 100644 --- a/pkg/dialects/standard/enum_mav_collision_action.go +++ b/pkg/dialects/standard/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/standard/enum_mav_collision_src.go b/pkg/dialects/standard/enum_mav_collision_src.go index 93ad77064..79fae0134 100644 --- a/pkg/dialects/standard/enum_mav_collision_src.go +++ b/pkg/dialects/standard/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/standard/enum_mav_collision_threat_level.go b/pkg/dialects/standard/enum_mav_collision_threat_level.go index 449f75db9..66465f71f 100644 --- a/pkg/dialects/standard/enum_mav_collision_threat_level.go +++ b/pkg/dialects/standard/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/standard/enum_mav_component.go b/pkg/dialects/standard/enum_mav_component.go index 0c950ba78..e09e9c78c 100644 --- a/pkg/dialects/standard/enum_mav_component.go +++ b/pkg/dialects/standard/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/standard/enum_mav_data_stream.go b/pkg/dialects/standard/enum_mav_data_stream.go index 0796b5537..2acf022cd 100644 --- a/pkg/dialects/standard/enum_mav_data_stream.go +++ b/pkg/dialects/standard/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/standard/enum_mav_distance_sensor.go b/pkg/dialects/standard/enum_mav_distance_sensor.go index abab75a22..b2f7c25ab 100644 --- a/pkg/dialects/standard/enum_mav_distance_sensor.go +++ b/pkg/dialects/standard/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/standard/enum_mav_do_reposition_flags.go b/pkg/dialects/standard/enum_mav_do_reposition_flags.go index cade1ab7b..84ef90434 100644 --- a/pkg/dialects/standard/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/standard/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/standard/enum_mav_estimator_type.go b/pkg/dialects/standard/enum_mav_estimator_type.go index e4e54dae9..6d9a2075d 100644 --- a/pkg/dialects/standard/enum_mav_estimator_type.go +++ b/pkg/dialects/standard/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/standard/enum_mav_event_current_sequence_flags.go b/pkg/dialects/standard/enum_mav_event_current_sequence_flags.go index cc75a6120..8e60fd61a 100644 --- a/pkg/dialects/standard/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/standard/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/standard/enum_mav_event_error_reason.go b/pkg/dialects/standard/enum_mav_event_error_reason.go index d00f2deeb..f5292957c 100644 --- a/pkg/dialects/standard/enum_mav_event_error_reason.go +++ b/pkg/dialects/standard/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/standard/enum_mav_frame.go b/pkg/dialects/standard/enum_mav_frame.go index b221fabd5..9b6c57b9b 100644 --- a/pkg/dialects/standard/enum_mav_frame.go +++ b/pkg/dialects/standard/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/standard/enum_mav_generator_status_flag.go b/pkg/dialects/standard/enum_mav_generator_status_flag.go index a0fe5f344..85a197c39 100644 --- a/pkg/dialects/standard/enum_mav_generator_status_flag.go +++ b/pkg/dialects/standard/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/standard/enum_mav_goto.go b/pkg/dialects/standard/enum_mav_goto.go index fb010e5ea..3edd6d2a4 100644 --- a/pkg/dialects/standard/enum_mav_goto.go +++ b/pkg/dialects/standard/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/standard/enum_mav_landed_state.go b/pkg/dialects/standard/enum_mav_landed_state.go index 0ad0f680a..e11f7d5e2 100644 --- a/pkg/dialects/standard/enum_mav_landed_state.go +++ b/pkg/dialects/standard/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/standard/enum_mav_mission_result.go b/pkg/dialects/standard/enum_mav_mission_result.go index 6b9b9c1b1..f8637ebe0 100644 --- a/pkg/dialects/standard/enum_mav_mission_result.go +++ b/pkg/dialects/standard/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/standard/enum_mav_mission_type.go b/pkg/dialects/standard/enum_mav_mission_type.go index 9f13437a0..138537d17 100644 --- a/pkg/dialects/standard/enum_mav_mission_type.go +++ b/pkg/dialects/standard/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/standard/enum_mav_mode.go b/pkg/dialects/standard/enum_mav_mode.go index 3a1579119..d9d6f5efb 100644 --- a/pkg/dialects/standard/enum_mav_mode.go +++ b/pkg/dialects/standard/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/standard/enum_mav_mode_flag.go b/pkg/dialects/standard/enum_mav_mode_flag.go index acd55916b..5d47c10e3 100644 --- a/pkg/dialects/standard/enum_mav_mode_flag.go +++ b/pkg/dialects/standard/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/standard/enum_mav_mode_flag_decode_position.go b/pkg/dialects/standard/enum_mav_mode_flag_decode_position.go index 24c697e26..b4be4f278 100644 --- a/pkg/dialects/standard/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/standard/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/standard/enum_mav_mount_mode.go b/pkg/dialects/standard/enum_mav_mount_mode.go index d49bf128f..a917da596 100644 --- a/pkg/dialects/standard/enum_mav_mount_mode.go +++ b/pkg/dialects/standard/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/standard/enum_mav_odid_auth_type.go b/pkg/dialects/standard/enum_mav_odid_auth_type.go index 68b3da68d..c30d527c0 100644 --- a/pkg/dialects/standard/enum_mav_odid_auth_type.go +++ b/pkg/dialects/standard/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/standard/enum_mav_odid_category_eu.go b/pkg/dialects/standard/enum_mav_odid_category_eu.go index ffda2d59a..e29b3135d 100644 --- a/pkg/dialects/standard/enum_mav_odid_category_eu.go +++ b/pkg/dialects/standard/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/standard/enum_mav_odid_class_eu.go b/pkg/dialects/standard/enum_mav_odid_class_eu.go index 4f405e14e..1b12e5d87 100644 --- a/pkg/dialects/standard/enum_mav_odid_class_eu.go +++ b/pkg/dialects/standard/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/standard/enum_mav_odid_classification_type.go b/pkg/dialects/standard/enum_mav_odid_classification_type.go index 6723d3b38..59428ab35 100644 --- a/pkg/dialects/standard/enum_mav_odid_classification_type.go +++ b/pkg/dialects/standard/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/standard/enum_mav_odid_desc_type.go b/pkg/dialects/standard/enum_mav_odid_desc_type.go index f53c2acda..30494cd1e 100644 --- a/pkg/dialects/standard/enum_mav_odid_desc_type.go +++ b/pkg/dialects/standard/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/standard/enum_mav_odid_height_ref.go b/pkg/dialects/standard/enum_mav_odid_height_ref.go index bea32109c..576aa2877 100644 --- a/pkg/dialects/standard/enum_mav_odid_height_ref.go +++ b/pkg/dialects/standard/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/standard/enum_mav_odid_hor_acc.go b/pkg/dialects/standard/enum_mav_odid_hor_acc.go index cebcd66c5..d8f7873d3 100644 --- a/pkg/dialects/standard/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/standard/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/standard/enum_mav_odid_id_type.go b/pkg/dialects/standard/enum_mav_odid_id_type.go index 174baa9ce..6f23501c7 100644 --- a/pkg/dialects/standard/enum_mav_odid_id_type.go +++ b/pkg/dialects/standard/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/standard/enum_mav_odid_operator_id_type.go b/pkg/dialects/standard/enum_mav_odid_operator_id_type.go index 5299fdae8..844125d87 100644 --- a/pkg/dialects/standard/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/standard/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/standard/enum_mav_odid_operator_location_type.go b/pkg/dialects/standard/enum_mav_odid_operator_location_type.go index 29889b540..99d20786a 100644 --- a/pkg/dialects/standard/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/standard/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/standard/enum_mav_odid_speed_acc.go b/pkg/dialects/standard/enum_mav_odid_speed_acc.go index b03028805..41aee5434 100644 --- a/pkg/dialects/standard/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/standard/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/standard/enum_mav_odid_status.go b/pkg/dialects/standard/enum_mav_odid_status.go index cdc60d56a..a111abf4e 100644 --- a/pkg/dialects/standard/enum_mav_odid_status.go +++ b/pkg/dialects/standard/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/standard/enum_mav_odid_time_acc.go b/pkg/dialects/standard/enum_mav_odid_time_acc.go index d64c71c54..f18e1837e 100644 --- a/pkg/dialects/standard/enum_mav_odid_time_acc.go +++ b/pkg/dialects/standard/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/standard/enum_mav_odid_ua_type.go b/pkg/dialects/standard/enum_mav_odid_ua_type.go index 193d41a57..6d1e6273d 100644 --- a/pkg/dialects/standard/enum_mav_odid_ua_type.go +++ b/pkg/dialects/standard/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/standard/enum_mav_odid_ver_acc.go b/pkg/dialects/standard/enum_mav_odid_ver_acc.go index f5e002908..c6eabbd60 100644 --- a/pkg/dialects/standard/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/standard/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/standard/enum_mav_param_ext_type.go b/pkg/dialects/standard/enum_mav_param_ext_type.go index 410c8bd77..3541eb760 100644 --- a/pkg/dialects/standard/enum_mav_param_ext_type.go +++ b/pkg/dialects/standard/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/standard/enum_mav_param_type.go b/pkg/dialects/standard/enum_mav_param_type.go index ad75a8810..aa0d713ee 100644 --- a/pkg/dialects/standard/enum_mav_param_type.go +++ b/pkg/dialects/standard/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/standard/enum_mav_power_status.go b/pkg/dialects/standard/enum_mav_power_status.go index 369e6fe57..60ec744c3 100644 --- a/pkg/dialects/standard/enum_mav_power_status.go +++ b/pkg/dialects/standard/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/standard/enum_mav_protocol_capability.go b/pkg/dialects/standard/enum_mav_protocol_capability.go index 12155e74a..51dc64f5a 100644 --- a/pkg/dialects/standard/enum_mav_protocol_capability.go +++ b/pkg/dialects/standard/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/standard/enum_mav_result.go b/pkg/dialects/standard/enum_mav_result.go index b748dca53..b9d808f30 100644 --- a/pkg/dialects/standard/enum_mav_result.go +++ b/pkg/dialects/standard/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/standard/enum_mav_roi.go b/pkg/dialects/standard/enum_mav_roi.go index c74b86d89..70d243626 100644 --- a/pkg/dialects/standard/enum_mav_roi.go +++ b/pkg/dialects/standard/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/standard/enum_mav_sensor_orientation.go b/pkg/dialects/standard/enum_mav_sensor_orientation.go index e259edb0b..7ce556c3b 100644 --- a/pkg/dialects/standard/enum_mav_sensor_orientation.go +++ b/pkg/dialects/standard/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/standard/enum_mav_severity.go b/pkg/dialects/standard/enum_mav_severity.go index d41a318e5..7b221be02 100644 --- a/pkg/dialects/standard/enum_mav_severity.go +++ b/pkg/dialects/standard/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/standard/enum_mav_state.go b/pkg/dialects/standard/enum_mav_state.go index 4109b5c09..3f8c79ebf 100644 --- a/pkg/dialects/standard/enum_mav_state.go +++ b/pkg/dialects/standard/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/standard/enum_mav_sys_status_sensor.go b/pkg/dialects/standard/enum_mav_sys_status_sensor.go index 9b621387a..59a48097b 100644 --- a/pkg/dialects/standard/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/standard/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/standard/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/standard/enum_mav_sys_status_sensor_extended.go index d893d498c..a7b21f4e1 100644 --- a/pkg/dialects/standard/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/standard/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/standard/enum_mav_tunnel_payload_type.go b/pkg/dialects/standard/enum_mav_tunnel_payload_type.go index 81b2a33a7..837b4a35b 100644 --- a/pkg/dialects/standard/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/standard/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/standard/enum_mav_type.go b/pkg/dialects/standard/enum_mav_type.go index 8f8cc0431..8cd38a986 100644 --- a/pkg/dialects/standard/enum_mav_type.go +++ b/pkg/dialects/standard/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/standard/enum_mav_vtol_state.go b/pkg/dialects/standard/enum_mav_vtol_state.go index b882ca3d6..363006453 100644 --- a/pkg/dialects/standard/enum_mav_vtol_state.go +++ b/pkg/dialects/standard/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/standard/enum_mav_winch_status_flag.go b/pkg/dialects/standard/enum_mav_winch_status_flag.go index 61c4efb12..0202837db 100644 --- a/pkg/dialects/standard/enum_mav_winch_status_flag.go +++ b/pkg/dialects/standard/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/standard/enum_mavlink_data_stream_type.go b/pkg/dialects/standard/enum_mavlink_data_stream_type.go index ad2018d7c..71da04da4 100644 --- a/pkg/dialects/standard/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/standard/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/standard/enum_motor_test_order.go b/pkg/dialects/standard/enum_motor_test_order.go index f205e7835..595b5e610 100644 --- a/pkg/dialects/standard/enum_motor_test_order.go +++ b/pkg/dialects/standard/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/standard/enum_motor_test_throttle_type.go b/pkg/dialects/standard/enum_motor_test_throttle_type.go index 41ced7b8a..aae32fe32 100644 --- a/pkg/dialects/standard/enum_motor_test_throttle_type.go +++ b/pkg/dialects/standard/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/standard/enum_nav_vtol_land_options.go b/pkg/dialects/standard/enum_nav_vtol_land_options.go index ba4877a3d..e6d9aa16e 100644 --- a/pkg/dialects/standard/enum_nav_vtol_land_options.go +++ b/pkg/dialects/standard/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/standard/enum_orbit_yaw_behaviour.go b/pkg/dialects/standard/enum_orbit_yaw_behaviour.go index b201ef2ed..78f97adb7 100644 --- a/pkg/dialects/standard/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/standard/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/standard/enum_parachute_action.go b/pkg/dialects/standard/enum_parachute_action.go index bf0f813f3..98b82617a 100644 --- a/pkg/dialects/standard/enum_parachute_action.go +++ b/pkg/dialects/standard/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/standard/enum_param_ack.go b/pkg/dialects/standard/enum_param_ack.go index 258528f51..5e4d52628 100644 --- a/pkg/dialects/standard/enum_param_ack.go +++ b/pkg/dialects/standard/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/standard/enum_position_target_typemask.go b/pkg/dialects/standard/enum_position_target_typemask.go index e438104ff..3a5f78ca7 100644 --- a/pkg/dialects/standard/enum_position_target_typemask.go +++ b/pkg/dialects/standard/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/standard/enum_precision_land_mode.go b/pkg/dialects/standard/enum_precision_land_mode.go index a804de7f2..db3a92279 100644 --- a/pkg/dialects/standard/enum_precision_land_mode.go +++ b/pkg/dialects/standard/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/standard/enum_rc_type.go b/pkg/dialects/standard/enum_rc_type.go index 492e11ce6..746faefd4 100644 --- a/pkg/dialects/standard/enum_rc_type.go +++ b/pkg/dialects/standard/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/standard/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/standard/enum_rtk_baseline_coordinate_system.go index 4c79d188e..df280ece5 100644 --- a/pkg/dialects/standard/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/standard/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/standard/enum_serial_control_dev.go b/pkg/dialects/standard/enum_serial_control_dev.go index c08683013..b654ae41b 100644 --- a/pkg/dialects/standard/enum_serial_control_dev.go +++ b/pkg/dialects/standard/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/standard/enum_serial_control_flag.go b/pkg/dialects/standard/enum_serial_control_flag.go index c0faa5db0..0734fb7e4 100644 --- a/pkg/dialects/standard/enum_serial_control_flag.go +++ b/pkg/dialects/standard/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/standard/enum_set_focus_type.go b/pkg/dialects/standard/enum_set_focus_type.go index 42730c0b2..297e0600d 100644 --- a/pkg/dialects/standard/enum_set_focus_type.go +++ b/pkg/dialects/standard/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/standard/enum_storage_status.go b/pkg/dialects/standard/enum_storage_status.go index 5717a5772..416736007 100644 --- a/pkg/dialects/standard/enum_storage_status.go +++ b/pkg/dialects/standard/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/standard/enum_storage_type.go b/pkg/dialects/standard/enum_storage_type.go index bf70c1fdb..b482ec61d 100644 --- a/pkg/dialects/standard/enum_storage_type.go +++ b/pkg/dialects/standard/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/standard/enum_storage_usage_flag.go b/pkg/dialects/standard/enum_storage_usage_flag.go index 22b37cb04..4d0bf9743 100644 --- a/pkg/dialects/standard/enum_storage_usage_flag.go +++ b/pkg/dialects/standard/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/standard/enum_tune_format.go b/pkg/dialects/standard/enum_tune_format.go index d115f39a9..a8dbb8531 100644 --- a/pkg/dialects/standard/enum_tune_format.go +++ b/pkg/dialects/standard/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/standard/enum_uavcan_node_health.go b/pkg/dialects/standard/enum_uavcan_node_health.go index f1029c4bc..12bc61f1d 100644 --- a/pkg/dialects/standard/enum_uavcan_node_health.go +++ b/pkg/dialects/standard/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/standard/enum_uavcan_node_mode.go b/pkg/dialects/standard/enum_uavcan_node_mode.go index b5fe247da..6708fba1a 100644 --- a/pkg/dialects/standard/enum_uavcan_node_mode.go +++ b/pkg/dialects/standard/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/standard/enum_utm_data_avail_flags.go b/pkg/dialects/standard/enum_utm_data_avail_flags.go index 80df6bff8..d83dcdb1e 100644 --- a/pkg/dialects/standard/enum_utm_data_avail_flags.go +++ b/pkg/dialects/standard/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/standard/enum_utm_flight_state.go b/pkg/dialects/standard/enum_utm_flight_state.go index be638fadc..54997aa39 100644 --- a/pkg/dialects/standard/enum_utm_flight_state.go +++ b/pkg/dialects/standard/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/standard/enum_video_stream_status_flags.go b/pkg/dialects/standard/enum_video_stream_status_flags.go index 26c474d9e..2cb727eb6 100644 --- a/pkg/dialects/standard/enum_video_stream_status_flags.go +++ b/pkg/dialects/standard/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/standard/enum_video_stream_type.go b/pkg/dialects/standard/enum_video_stream_type.go index 5477df295..d152729d4 100644 --- a/pkg/dialects/standard/enum_video_stream_type.go +++ b/pkg/dialects/standard/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/standard/enum_vtol_transition_heading.go b/pkg/dialects/standard/enum_vtol_transition_heading.go index e3d50192d..7f6567ca7 100644 --- a/pkg/dialects/standard/enum_vtol_transition_heading.go +++ b/pkg/dialects/standard/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/standard/enum_wifi_config_ap_mode.go b/pkg/dialects/standard/enum_wifi_config_ap_mode.go index 9aff5abaf..7c41756cc 100644 --- a/pkg/dialects/standard/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/standard/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/standard/enum_wifi_config_ap_response.go b/pkg/dialects/standard/enum_wifi_config_ap_response.go index 73dedbe63..1371d9ef3 100644 --- a/pkg/dialects/standard/enum_wifi_config_ap_response.go +++ b/pkg/dialects/standard/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/standard/enum_winch_actions.go b/pkg/dialects/standard/enum_winch_actions.go index 7e38ae9e3..ee0fdc2a9 100644 --- a/pkg/dialects/standard/enum_winch_actions.go +++ b/pkg/dialects/standard/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/storm32/enum_accelcal_vehicle_pos.go b/pkg/dialects/storm32/enum_accelcal_vehicle_pos.go index dfa4fd92b..02c874c23 100644 --- a/pkg/dialects/storm32/enum_accelcal_vehicle_pos.go +++ b/pkg/dialects/storm32/enum_accelcal_vehicle_pos.go @@ -6,7 +6,7 @@ import ( "errors" ) -type ACCELCAL_VEHICLE_POS int +type ACCELCAL_VEHICLE_POS uint32 const ( ACCELCAL_VEHICLE_POS_LEVEL ACCELCAL_VEHICLE_POS = 1 diff --git a/pkg/dialects/storm32/enum_actuator_configuration.go b/pkg/dialects/storm32/enum_actuator_configuration.go index f83656b84..c499fa75b 100644 --- a/pkg/dialects/storm32/enum_actuator_configuration.go +++ b/pkg/dialects/storm32/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/storm32/enum_actuator_output_function.go b/pkg/dialects/storm32/enum_actuator_output_function.go index 2c0cd0b2a..52a3f8c3c 100644 --- a/pkg/dialects/storm32/enum_actuator_output_function.go +++ b/pkg/dialects/storm32/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/storm32/enum_adsb_altitude_type.go b/pkg/dialects/storm32/enum_adsb_altitude_type.go index 18afc7693..98fb308e0 100644 --- a/pkg/dialects/storm32/enum_adsb_altitude_type.go +++ b/pkg/dialects/storm32/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/storm32/enum_adsb_emitter_type.go b/pkg/dialects/storm32/enum_adsb_emitter_type.go index 3f063f3fd..9da6ad689 100644 --- a/pkg/dialects/storm32/enum_adsb_emitter_type.go +++ b/pkg/dialects/storm32/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/storm32/enum_adsb_flags.go b/pkg/dialects/storm32/enum_adsb_flags.go index 77a51b36c..5453747d5 100644 --- a/pkg/dialects/storm32/enum_adsb_flags.go +++ b/pkg/dialects/storm32/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/storm32/enum_ais_flags.go b/pkg/dialects/storm32/enum_ais_flags.go index 0b2566332..2c73d8018 100644 --- a/pkg/dialects/storm32/enum_ais_flags.go +++ b/pkg/dialects/storm32/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/storm32/enum_ais_nav_status.go b/pkg/dialects/storm32/enum_ais_nav_status.go index e223be844..1010bedfa 100644 --- a/pkg/dialects/storm32/enum_ais_nav_status.go +++ b/pkg/dialects/storm32/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/storm32/enum_ais_type.go b/pkg/dialects/storm32/enum_ais_type.go index eb2d82455..9e26c3f5d 100644 --- a/pkg/dialects/storm32/enum_ais_type.go +++ b/pkg/dialects/storm32/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/storm32/enum_attitude_target_typemask.go b/pkg/dialects/storm32/enum_attitude_target_typemask.go index cd7415a92..12a8e3850 100644 --- a/pkg/dialects/storm32/enum_attitude_target_typemask.go +++ b/pkg/dialects/storm32/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/storm32/enum_autotune_axis.go b/pkg/dialects/storm32/enum_autotune_axis.go index c00ce661c..369555cc1 100644 --- a/pkg/dialects/storm32/enum_autotune_axis.go +++ b/pkg/dialects/storm32/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/storm32/enum_camera_cap_flags.go b/pkg/dialects/storm32/enum_camera_cap_flags.go index 5ad01d310..c2053555a 100644 --- a/pkg/dialects/storm32/enum_camera_cap_flags.go +++ b/pkg/dialects/storm32/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/storm32/enum_camera_feedback_flags.go b/pkg/dialects/storm32/enum_camera_feedback_flags.go index eebe4d7c4..196999045 100644 --- a/pkg/dialects/storm32/enum_camera_feedback_flags.go +++ b/pkg/dialects/storm32/enum_camera_feedback_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type CAMERA_FEEDBACK_FLAGS int +type CAMERA_FEEDBACK_FLAGS uint32 const ( // Shooting photos, not video. diff --git a/pkg/dialects/storm32/enum_camera_mode.go b/pkg/dialects/storm32/enum_camera_mode.go index b8b050236..3af2f0893 100644 --- a/pkg/dialects/storm32/enum_camera_mode.go +++ b/pkg/dialects/storm32/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/storm32/enum_camera_status_types.go b/pkg/dialects/storm32/enum_camera_status_types.go index 2c682662b..e52d55440 100644 --- a/pkg/dialects/storm32/enum_camera_status_types.go +++ b/pkg/dialects/storm32/enum_camera_status_types.go @@ -6,7 +6,7 @@ import ( "errors" ) -type CAMERA_STATUS_TYPES int +type CAMERA_STATUS_TYPES uint32 const ( // Camera heartbeat, announce camera component ID at 1Hz. diff --git a/pkg/dialects/storm32/enum_camera_tracking_mode.go b/pkg/dialects/storm32/enum_camera_tracking_mode.go index 3f46dcda8..9dc7edcf0 100644 --- a/pkg/dialects/storm32/enum_camera_tracking_mode.go +++ b/pkg/dialects/storm32/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/storm32/enum_camera_tracking_status_flags.go b/pkg/dialects/storm32/enum_camera_tracking_status_flags.go index 44be5efe1..cd16b0926 100644 --- a/pkg/dialects/storm32/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/storm32/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/storm32/enum_camera_tracking_target_data.go b/pkg/dialects/storm32/enum_camera_tracking_target_data.go index 135ca2c11..d2647f3e5 100644 --- a/pkg/dialects/storm32/enum_camera_tracking_target_data.go +++ b/pkg/dialects/storm32/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/storm32/enum_camera_zoom_type.go b/pkg/dialects/storm32/enum_camera_zoom_type.go index 4f052318f..ccbedc9dc 100644 --- a/pkg/dialects/storm32/enum_camera_zoom_type.go +++ b/pkg/dialects/storm32/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/storm32/enum_cellular_config_response.go b/pkg/dialects/storm32/enum_cellular_config_response.go index a3ef1e43a..22c0d65ce 100644 --- a/pkg/dialects/storm32/enum_cellular_config_response.go +++ b/pkg/dialects/storm32/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/storm32/enum_cellular_network_failed_reason.go b/pkg/dialects/storm32/enum_cellular_network_failed_reason.go index 690e31612..e3d34676d 100644 --- a/pkg/dialects/storm32/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/storm32/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/storm32/enum_cellular_network_radio_type.go b/pkg/dialects/storm32/enum_cellular_network_radio_type.go index 5df9c1f5e..91c99f049 100644 --- a/pkg/dialects/storm32/enum_cellular_network_radio_type.go +++ b/pkg/dialects/storm32/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/storm32/enum_cellular_status_flag.go b/pkg/dialects/storm32/enum_cellular_status_flag.go index b2653a948..1b6eefa23 100644 --- a/pkg/dialects/storm32/enum_cellular_status_flag.go +++ b/pkg/dialects/storm32/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/storm32/enum_comp_metadata_type.go b/pkg/dialects/storm32/enum_comp_metadata_type.go index 78a86c1a7..7a34160a5 100644 --- a/pkg/dialects/storm32/enum_comp_metadata_type.go +++ b/pkg/dialects/storm32/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/storm32/enum_copter_mode.go b/pkg/dialects/storm32/enum_copter_mode.go index 89c9e5a05..e173d4230 100644 --- a/pkg/dialects/storm32/enum_copter_mode.go +++ b/pkg/dialects/storm32/enum_copter_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of copter flight modes for custom_mode field of heartbeat. -type COPTER_MODE int +type COPTER_MODE uint32 const ( COPTER_MODE_STABILIZE COPTER_MODE = 0 diff --git a/pkg/dialects/storm32/enum_deepstall_stage.go b/pkg/dialects/storm32/enum_deepstall_stage.go index b7a4076ac..16bc58104 100644 --- a/pkg/dialects/storm32/enum_deepstall_stage.go +++ b/pkg/dialects/storm32/enum_deepstall_stage.go @@ -7,7 +7,7 @@ import ( ) // Deepstall flight stage. -type DEEPSTALL_STAGE int +type DEEPSTALL_STAGE uint32 const ( // Flying to the landing point. diff --git a/pkg/dialects/storm32/enum_device_op_bustype.go b/pkg/dialects/storm32/enum_device_op_bustype.go index 641eb7f7c..27a36ae23 100644 --- a/pkg/dialects/storm32/enum_device_op_bustype.go +++ b/pkg/dialects/storm32/enum_device_op_bustype.go @@ -7,7 +7,7 @@ import ( ) // Bus types for device operations. -type DEVICE_OP_BUSTYPE int +type DEVICE_OP_BUSTYPE uint32 const ( // I2C Device operation. diff --git a/pkg/dialects/storm32/enum_ekf_status_flags.go b/pkg/dialects/storm32/enum_ekf_status_flags.go index 4af89884e..3eb73b913 100644 --- a/pkg/dialects/storm32/enum_ekf_status_flags.go +++ b/pkg/dialects/storm32/enum_ekf_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in EKF_STATUS message. -type EKF_STATUS_FLAGS int +type EKF_STATUS_FLAGS uint32 const ( // Set if EKF's attitude estimate is good. diff --git a/pkg/dialects/storm32/enum_esc_connection_type.go b/pkg/dialects/storm32/enum_esc_connection_type.go index 891ef3ce1..ce72b65db 100644 --- a/pkg/dialects/storm32/enum_esc_connection_type.go +++ b/pkg/dialects/storm32/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/storm32/enum_esc_failure_flags.go b/pkg/dialects/storm32/enum_esc_failure_flags.go index db35e9a4b..c0a1159dc 100644 --- a/pkg/dialects/storm32/enum_esc_failure_flags.go +++ b/pkg/dialects/storm32/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/storm32/enum_estimator_status_flags.go b/pkg/dialects/storm32/enum_estimator_status_flags.go index 09636d4b0..026d3a80e 100644 --- a/pkg/dialects/storm32/enum_estimator_status_flags.go +++ b/pkg/dialects/storm32/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/storm32/enum_failure_type.go b/pkg/dialects/storm32/enum_failure_type.go index 47b7e0017..494e17747 100644 --- a/pkg/dialects/storm32/enum_failure_type.go +++ b/pkg/dialects/storm32/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/storm32/enum_failure_unit.go b/pkg/dialects/storm32/enum_failure_unit.go index 8cdca2e59..39d997968 100644 --- a/pkg/dialects/storm32/enum_failure_unit.go +++ b/pkg/dialects/storm32/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/storm32/enum_fence_action.go b/pkg/dialects/storm32/enum_fence_action.go index e31f6c717..96f71fe80 100644 --- a/pkg/dialects/storm32/enum_fence_action.go +++ b/pkg/dialects/storm32/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/storm32/enum_fence_breach.go b/pkg/dialects/storm32/enum_fence_breach.go index 5fb2348ce..8a054b706 100644 --- a/pkg/dialects/storm32/enum_fence_breach.go +++ b/pkg/dialects/storm32/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/storm32/enum_fence_mitigate.go b/pkg/dialects/storm32/enum_fence_mitigate.go index 0eb5e3aa7..7d8930597 100644 --- a/pkg/dialects/storm32/enum_fence_mitigate.go +++ b/pkg/dialects/storm32/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/storm32/enum_firmware_version_type.go b/pkg/dialects/storm32/enum_firmware_version_type.go index 8b8acf24d..7ff320439 100644 --- a/pkg/dialects/storm32/enum_firmware_version_type.go +++ b/pkg/dialects/storm32/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/storm32/enum_gimbal_axis.go b/pkg/dialects/storm32/enum_gimbal_axis.go index 43c4316d4..58103c0be 100644 --- a/pkg/dialects/storm32/enum_gimbal_axis.go +++ b/pkg/dialects/storm32/enum_gimbal_axis.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GIMBAL_AXIS int +type GIMBAL_AXIS uint32 const ( // Gimbal yaw axis. diff --git a/pkg/dialects/storm32/enum_gimbal_axis_calibration_required.go b/pkg/dialects/storm32/enum_gimbal_axis_calibration_required.go index 6d129fab8..acd1dbf44 100644 --- a/pkg/dialects/storm32/enum_gimbal_axis_calibration_required.go +++ b/pkg/dialects/storm32/enum_gimbal_axis_calibration_required.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GIMBAL_AXIS_CALIBRATION_REQUIRED int +type GIMBAL_AXIS_CALIBRATION_REQUIRED uint32 const ( // Whether or not this axis requires calibration is unknown at this time. diff --git a/pkg/dialects/storm32/enum_gimbal_axis_calibration_status.go b/pkg/dialects/storm32/enum_gimbal_axis_calibration_status.go index 33c2c07e1..c50cfa5b4 100644 --- a/pkg/dialects/storm32/enum_gimbal_axis_calibration_status.go +++ b/pkg/dialects/storm32/enum_gimbal_axis_calibration_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GIMBAL_AXIS_CALIBRATION_STATUS int +type GIMBAL_AXIS_CALIBRATION_STATUS uint32 const ( // Axis calibration is in progress. diff --git a/pkg/dialects/storm32/enum_gimbal_device_cap_flags.go b/pkg/dialects/storm32/enum_gimbal_device_cap_flags.go index 4d3d1af4e..2e275353a 100644 --- a/pkg/dialects/storm32/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/storm32/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/storm32/enum_gimbal_device_error_flags.go b/pkg/dialects/storm32/enum_gimbal_device_error_flags.go index c6eb894b1..ceaf7bfba 100644 --- a/pkg/dialects/storm32/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/storm32/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/storm32/enum_gimbal_device_flags.go b/pkg/dialects/storm32/enum_gimbal_device_flags.go index 496c5c127..607b92bc7 100644 --- a/pkg/dialects/storm32/enum_gimbal_device_flags.go +++ b/pkg/dialects/storm32/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/storm32/enum_gimbal_manager_cap_flags.go b/pkg/dialects/storm32/enum_gimbal_manager_cap_flags.go index cc8128a00..0d1b5d0fd 100644 --- a/pkg/dialects/storm32/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/storm32/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/storm32/enum_gimbal_manager_flags.go b/pkg/dialects/storm32/enum_gimbal_manager_flags.go index ae8c9d4fd..d3633f3d8 100644 --- a/pkg/dialects/storm32/enum_gimbal_manager_flags.go +++ b/pkg/dialects/storm32/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/storm32/enum_gopro_burst_rate.go b/pkg/dialects/storm32/enum_gopro_burst_rate.go index 2485dd1d1..dffbd664c 100644 --- a/pkg/dialects/storm32/enum_gopro_burst_rate.go +++ b/pkg/dialects/storm32/enum_gopro_burst_rate.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_BURST_RATE int +type GOPRO_BURST_RATE uint32 const ( // 3 Shots / 1 Second. diff --git a/pkg/dialects/storm32/enum_gopro_capture_mode.go b/pkg/dialects/storm32/enum_gopro_capture_mode.go index 3cfa8a828..078d543b1 100644 --- a/pkg/dialects/storm32/enum_gopro_capture_mode.go +++ b/pkg/dialects/storm32/enum_gopro_capture_mode.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_CAPTURE_MODE int +type GOPRO_CAPTURE_MODE uint32 const ( // Video mode. diff --git a/pkg/dialects/storm32/enum_gopro_charging.go b/pkg/dialects/storm32/enum_gopro_charging.go index 80c08621c..41bad4e4d 100644 --- a/pkg/dialects/storm32/enum_gopro_charging.go +++ b/pkg/dialects/storm32/enum_gopro_charging.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_CHARGING int +type GOPRO_CHARGING uint32 const ( // Charging disabled. diff --git a/pkg/dialects/storm32/enum_gopro_command.go b/pkg/dialects/storm32/enum_gopro_command.go index dce4209f2..016acab6d 100644 --- a/pkg/dialects/storm32/enum_gopro_command.go +++ b/pkg/dialects/storm32/enum_gopro_command.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_COMMAND int +type GOPRO_COMMAND uint32 const ( // (Get/Set). diff --git a/pkg/dialects/storm32/enum_gopro_field_of_view.go b/pkg/dialects/storm32/enum_gopro_field_of_view.go index b021749bc..50b2c6ea6 100644 --- a/pkg/dialects/storm32/enum_gopro_field_of_view.go +++ b/pkg/dialects/storm32/enum_gopro_field_of_view.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_FIELD_OF_VIEW int +type GOPRO_FIELD_OF_VIEW uint32 const ( // 0x00: Wide. diff --git a/pkg/dialects/storm32/enum_gopro_frame_rate.go b/pkg/dialects/storm32/enum_gopro_frame_rate.go index 4bb5c2c50..23d329b79 100644 --- a/pkg/dialects/storm32/enum_gopro_frame_rate.go +++ b/pkg/dialects/storm32/enum_gopro_frame_rate.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_FRAME_RATE int +type GOPRO_FRAME_RATE uint32 const ( // 12 FPS. diff --git a/pkg/dialects/storm32/enum_gopro_heartbeat_flags.go b/pkg/dialects/storm32/enum_gopro_heartbeat_flags.go index ed5eee322..4aad2f931 100644 --- a/pkg/dialects/storm32/enum_gopro_heartbeat_flags.go +++ b/pkg/dialects/storm32/enum_gopro_heartbeat_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_HEARTBEAT_FLAGS int +type GOPRO_HEARTBEAT_FLAGS uint32 const ( // GoPro is currently recording. diff --git a/pkg/dialects/storm32/enum_gopro_heartbeat_status.go b/pkg/dialects/storm32/enum_gopro_heartbeat_status.go index 1e69c70b6..e99fbb239 100644 --- a/pkg/dialects/storm32/enum_gopro_heartbeat_status.go +++ b/pkg/dialects/storm32/enum_gopro_heartbeat_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_HEARTBEAT_STATUS int +type GOPRO_HEARTBEAT_STATUS uint32 const ( // No GoPro connected. diff --git a/pkg/dialects/storm32/enum_gopro_model.go b/pkg/dialects/storm32/enum_gopro_model.go index d815226e9..d7eea8a5d 100644 --- a/pkg/dialects/storm32/enum_gopro_model.go +++ b/pkg/dialects/storm32/enum_gopro_model.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_MODEL int +type GOPRO_MODEL uint32 const ( // Unknown gopro model. diff --git a/pkg/dialects/storm32/enum_gopro_photo_resolution.go b/pkg/dialects/storm32/enum_gopro_photo_resolution.go index 0c04ff112..49a2ba075 100644 --- a/pkg/dialects/storm32/enum_gopro_photo_resolution.go +++ b/pkg/dialects/storm32/enum_gopro_photo_resolution.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PHOTO_RESOLUTION int +type GOPRO_PHOTO_RESOLUTION uint32 const ( // 5MP Medium. diff --git a/pkg/dialects/storm32/enum_gopro_protune_colour.go b/pkg/dialects/storm32/enum_gopro_protune_colour.go index 6c7b2bdad..fa581a8a1 100644 --- a/pkg/dialects/storm32/enum_gopro_protune_colour.go +++ b/pkg/dialects/storm32/enum_gopro_protune_colour.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_COLOUR int +type GOPRO_PROTUNE_COLOUR uint32 const ( // Auto. diff --git a/pkg/dialects/storm32/enum_gopro_protune_exposure.go b/pkg/dialects/storm32/enum_gopro_protune_exposure.go index c8452edca..a4317aaf2 100644 --- a/pkg/dialects/storm32/enum_gopro_protune_exposure.go +++ b/pkg/dialects/storm32/enum_gopro_protune_exposure.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_EXPOSURE int +type GOPRO_PROTUNE_EXPOSURE uint32 const ( // -5.0 EV (Hero 3+ Only). diff --git a/pkg/dialects/storm32/enum_gopro_protune_gain.go b/pkg/dialects/storm32/enum_gopro_protune_gain.go index dd0d461e2..2f5d8a61d 100644 --- a/pkg/dialects/storm32/enum_gopro_protune_gain.go +++ b/pkg/dialects/storm32/enum_gopro_protune_gain.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_GAIN int +type GOPRO_PROTUNE_GAIN uint32 const ( // ISO 400. diff --git a/pkg/dialects/storm32/enum_gopro_protune_sharpness.go b/pkg/dialects/storm32/enum_gopro_protune_sharpness.go index eeb05059d..33025e366 100644 --- a/pkg/dialects/storm32/enum_gopro_protune_sharpness.go +++ b/pkg/dialects/storm32/enum_gopro_protune_sharpness.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_SHARPNESS int +type GOPRO_PROTUNE_SHARPNESS uint32 const ( // Low Sharpness. diff --git a/pkg/dialects/storm32/enum_gopro_protune_white_balance.go b/pkg/dialects/storm32/enum_gopro_protune_white_balance.go index a375c536c..b36214d91 100644 --- a/pkg/dialects/storm32/enum_gopro_protune_white_balance.go +++ b/pkg/dialects/storm32/enum_gopro_protune_white_balance.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_PROTUNE_WHITE_BALANCE int +type GOPRO_PROTUNE_WHITE_BALANCE uint32 const ( // Auto. diff --git a/pkg/dialects/storm32/enum_gopro_request_status.go b/pkg/dialects/storm32/enum_gopro_request_status.go index 5ebe2c024..33839acba 100644 --- a/pkg/dialects/storm32/enum_gopro_request_status.go +++ b/pkg/dialects/storm32/enum_gopro_request_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_REQUEST_STATUS int +type GOPRO_REQUEST_STATUS uint32 const ( // The write message with ID indicated succeeded. diff --git a/pkg/dialects/storm32/enum_gopro_resolution.go b/pkg/dialects/storm32/enum_gopro_resolution.go index 84db3a1b1..0f719a9a5 100644 --- a/pkg/dialects/storm32/enum_gopro_resolution.go +++ b/pkg/dialects/storm32/enum_gopro_resolution.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_RESOLUTION int +type GOPRO_RESOLUTION uint32 const ( // 848 x 480 (480p). diff --git a/pkg/dialects/storm32/enum_gopro_video_settings_flags.go b/pkg/dialects/storm32/enum_gopro_video_settings_flags.go index ca7d7dbca..0e4a47104 100644 --- a/pkg/dialects/storm32/enum_gopro_video_settings_flags.go +++ b/pkg/dialects/storm32/enum_gopro_video_settings_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GOPRO_VIDEO_SETTINGS_FLAGS int +type GOPRO_VIDEO_SETTINGS_FLAGS uint32 const ( // 0=NTSC, 1=PAL. diff --git a/pkg/dialects/storm32/enum_gps_fix_type.go b/pkg/dialects/storm32/enum_gps_fix_type.go index df27aea64..474c16bf2 100644 --- a/pkg/dialects/storm32/enum_gps_fix_type.go +++ b/pkg/dialects/storm32/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/storm32/enum_gps_input_ignore_flags.go b/pkg/dialects/storm32/enum_gps_input_ignore_flags.go index 6ae38251b..3f916dde4 100644 --- a/pkg/dialects/storm32/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/storm32/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/storm32/enum_gripper_actions.go b/pkg/dialects/storm32/enum_gripper_actions.go index 8003bf183..66d9ce49c 100644 --- a/pkg/dialects/storm32/enum_gripper_actions.go +++ b/pkg/dialects/storm32/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/storm32/enum_heading_type.go b/pkg/dialects/storm32/enum_heading_type.go index 3dbf0aab1..5c6652bbf 100644 --- a/pkg/dialects/storm32/enum_heading_type.go +++ b/pkg/dialects/storm32/enum_heading_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type HEADING_TYPE int +type HEADING_TYPE uint32 const ( HEADING_TYPE_COURSE_OVER_GROUND HEADING_TYPE = 0 diff --git a/pkg/dialects/storm32/enum_highres_imu_updated_flags.go b/pkg/dialects/storm32/enum_highres_imu_updated_flags.go index 1dc71daf2..b34a063fd 100644 --- a/pkg/dialects/storm32/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/storm32/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/storm32/enum_hil_sensor_updated_flags.go b/pkg/dialects/storm32/enum_hil_sensor_updated_flags.go index b52befda8..01717df3d 100644 --- a/pkg/dialects/storm32/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/storm32/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/storm32/enum_hl_failure_flag.go b/pkg/dialects/storm32/enum_hl_failure_flag.go index 898e74bbe..5561cfecb 100644 --- a/pkg/dialects/storm32/enum_hl_failure_flag.go +++ b/pkg/dialects/storm32/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/storm32/enum_icarous_fms_state.go b/pkg/dialects/storm32/enum_icarous_fms_state.go index 10274db45..8294d039e 100644 --- a/pkg/dialects/storm32/enum_icarous_fms_state.go +++ b/pkg/dialects/storm32/enum_icarous_fms_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type ICAROUS_FMS_STATE int +type ICAROUS_FMS_STATE uint32 const ( ICAROUS_FMS_STATE_IDLE ICAROUS_FMS_STATE = 0 diff --git a/pkg/dialects/storm32/enum_icarous_track_band_types.go b/pkg/dialects/storm32/enum_icarous_track_band_types.go index bd3601371..316c65674 100644 --- a/pkg/dialects/storm32/enum_icarous_track_band_types.go +++ b/pkg/dialects/storm32/enum_icarous_track_band_types.go @@ -6,7 +6,7 @@ import ( "errors" ) -type ICAROUS_TRACK_BAND_TYPES int +type ICAROUS_TRACK_BAND_TYPES uint32 const ( ICAROUS_TRACK_BAND_TYPE_NONE ICAROUS_TRACK_BAND_TYPES = 0 diff --git a/pkg/dialects/storm32/enum_landing_target_type.go b/pkg/dialects/storm32/enum_landing_target_type.go index 8615a82a6..d596b0376 100644 --- a/pkg/dialects/storm32/enum_landing_target_type.go +++ b/pkg/dialects/storm32/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/storm32/enum_led_control_pattern.go b/pkg/dialects/storm32/enum_led_control_pattern.go index fe92b76e3..a40981c66 100644 --- a/pkg/dialects/storm32/enum_led_control_pattern.go +++ b/pkg/dialects/storm32/enum_led_control_pattern.go @@ -6,7 +6,7 @@ import ( "errors" ) -type LED_CONTROL_PATTERN int +type LED_CONTROL_PATTERN uint32 const ( // LED patterns off (return control to regular vehicle control). diff --git a/pkg/dialects/storm32/enum_limit_module.go b/pkg/dialects/storm32/enum_limit_module.go index 90dd32005..12b979d8f 100644 --- a/pkg/dialects/storm32/enum_limit_module.go +++ b/pkg/dialects/storm32/enum_limit_module.go @@ -6,7 +6,7 @@ import ( "errors" ) -type LIMIT_MODULE int +type LIMIT_MODULE uint32 const ( // Pre-initialization. diff --git a/pkg/dialects/storm32/enum_limits_state.go b/pkg/dialects/storm32/enum_limits_state.go index 3de346def..c2767b853 100644 --- a/pkg/dialects/storm32/enum_limits_state.go +++ b/pkg/dialects/storm32/enum_limits_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type LIMITS_STATE int +type LIMITS_STATE uint32 const ( // Pre-initialization. diff --git a/pkg/dialects/storm32/enum_mag_cal_status.go b/pkg/dialects/storm32/enum_mag_cal_status.go index 5664ae9fe..df888a04c 100644 --- a/pkg/dialects/storm32/enum_mag_cal_status.go +++ b/pkg/dialects/storm32/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/storm32/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/storm32/enum_mav_arm_auth_denied_reason.go index 7327fcf21..cfe462521 100644 --- a/pkg/dialects/storm32/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/storm32/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/storm32/enum_mav_autopilot.go b/pkg/dialects/storm32/enum_mav_autopilot.go index 57e516168..832bfde6b 100644 --- a/pkg/dialects/storm32/enum_mav_autopilot.go +++ b/pkg/dialects/storm32/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/storm32/enum_mav_battery_charge_state.go b/pkg/dialects/storm32/enum_mav_battery_charge_state.go index b620f571d..e469d7572 100644 --- a/pkg/dialects/storm32/enum_mav_battery_charge_state.go +++ b/pkg/dialects/storm32/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/storm32/enum_mav_battery_fault.go b/pkg/dialects/storm32/enum_mav_battery_fault.go index 8726d2944..cc278a239 100644 --- a/pkg/dialects/storm32/enum_mav_battery_fault.go +++ b/pkg/dialects/storm32/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/storm32/enum_mav_battery_function.go b/pkg/dialects/storm32/enum_mav_battery_function.go index 12fee7508..1af3af977 100644 --- a/pkg/dialects/storm32/enum_mav_battery_function.go +++ b/pkg/dialects/storm32/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/storm32/enum_mav_battery_mode.go b/pkg/dialects/storm32/enum_mav_battery_mode.go index c666d16be..3bd61d8d1 100644 --- a/pkg/dialects/storm32/enum_mav_battery_mode.go +++ b/pkg/dialects/storm32/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/storm32/enum_mav_battery_type.go b/pkg/dialects/storm32/enum_mav_battery_type.go index 33b0b23e7..fa920dceb 100644 --- a/pkg/dialects/storm32/enum_mav_battery_type.go +++ b/pkg/dialects/storm32/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/storm32/enum_mav_cmd.go b/pkg/dialects/storm32/enum_mav_cmd.go index 8ac2539ad..39553382c 100644 --- a/pkg/dialects/storm32/enum_mav_cmd.go +++ b/pkg/dialects/storm32/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/storm32/enum_mav_cmd_ack.go b/pkg/dialects/storm32/enum_mav_cmd_ack.go index 15ce8fbc2..6825d74ba 100644 --- a/pkg/dialects/storm32/enum_mav_cmd_ack.go +++ b/pkg/dialects/storm32/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/storm32/enum_mav_cmd_do_aux_function_switch_level.go b/pkg/dialects/storm32/enum_mav_cmd_do_aux_function_switch_level.go index e206b92b9..e59483d9e 100644 --- a/pkg/dialects/storm32/enum_mav_cmd_do_aux_function_switch_level.go +++ b/pkg/dialects/storm32/enum_mav_cmd_do_aux_function_switch_level.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL int +type MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL uint32 const ( // Switch Low. diff --git a/pkg/dialects/storm32/enum_mav_collision_action.go b/pkg/dialects/storm32/enum_mav_collision_action.go index 9cfc7fa17..7c8afe9f8 100644 --- a/pkg/dialects/storm32/enum_mav_collision_action.go +++ b/pkg/dialects/storm32/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/storm32/enum_mav_collision_src.go b/pkg/dialects/storm32/enum_mav_collision_src.go index 4426ed876..698eb55f6 100644 --- a/pkg/dialects/storm32/enum_mav_collision_src.go +++ b/pkg/dialects/storm32/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/storm32/enum_mav_collision_threat_level.go b/pkg/dialects/storm32/enum_mav_collision_threat_level.go index 9e10611e6..4e440c8cf 100644 --- a/pkg/dialects/storm32/enum_mav_collision_threat_level.go +++ b/pkg/dialects/storm32/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/storm32/enum_mav_component.go b/pkg/dialects/storm32/enum_mav_component.go index 70a288332..c92184bf1 100644 --- a/pkg/dialects/storm32/enum_mav_component.go +++ b/pkg/dialects/storm32/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/storm32/enum_mav_data_stream.go b/pkg/dialects/storm32/enum_mav_data_stream.go index ad2f41ab9..46b967f81 100644 --- a/pkg/dialects/storm32/enum_mav_data_stream.go +++ b/pkg/dialects/storm32/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/storm32/enum_mav_distance_sensor.go b/pkg/dialects/storm32/enum_mav_distance_sensor.go index a83c83a56..26eea8716 100644 --- a/pkg/dialects/storm32/enum_mav_distance_sensor.go +++ b/pkg/dialects/storm32/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/storm32/enum_mav_do_reposition_flags.go b/pkg/dialects/storm32/enum_mav_do_reposition_flags.go index 6bbb72410..b154db34b 100644 --- a/pkg/dialects/storm32/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/storm32/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/storm32/enum_mav_estimator_type.go b/pkg/dialects/storm32/enum_mav_estimator_type.go index 72fd40230..a34f15059 100644 --- a/pkg/dialects/storm32/enum_mav_estimator_type.go +++ b/pkg/dialects/storm32/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/storm32/enum_mav_event_current_sequence_flags.go b/pkg/dialects/storm32/enum_mav_event_current_sequence_flags.go index d1307ea56..be38238c9 100644 --- a/pkg/dialects/storm32/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/storm32/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/storm32/enum_mav_event_error_reason.go b/pkg/dialects/storm32/enum_mav_event_error_reason.go index 92bdef59b..7dad96e13 100644 --- a/pkg/dialects/storm32/enum_mav_event_error_reason.go +++ b/pkg/dialects/storm32/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/storm32/enum_mav_frame.go b/pkg/dialects/storm32/enum_mav_frame.go index 73b1f2081..32335f9f0 100644 --- a/pkg/dialects/storm32/enum_mav_frame.go +++ b/pkg/dialects/storm32/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/storm32/enum_mav_generator_status_flag.go b/pkg/dialects/storm32/enum_mav_generator_status_flag.go index 72df64cb4..58476c7dd 100644 --- a/pkg/dialects/storm32/enum_mav_generator_status_flag.go +++ b/pkg/dialects/storm32/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/storm32/enum_mav_goto.go b/pkg/dialects/storm32/enum_mav_goto.go index f6d107d60..a152ec70f 100644 --- a/pkg/dialects/storm32/enum_mav_goto.go +++ b/pkg/dialects/storm32/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/storm32/enum_mav_landed_state.go b/pkg/dialects/storm32/enum_mav_landed_state.go index 9d2fad860..990ae22ec 100644 --- a/pkg/dialects/storm32/enum_mav_landed_state.go +++ b/pkg/dialects/storm32/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/storm32/enum_mav_mission_result.go b/pkg/dialects/storm32/enum_mav_mission_result.go index a99a9d7a7..a5c4a5b1e 100644 --- a/pkg/dialects/storm32/enum_mav_mission_result.go +++ b/pkg/dialects/storm32/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/storm32/enum_mav_mission_type.go b/pkg/dialects/storm32/enum_mav_mission_type.go index 6c3447f59..5b9dfb857 100644 --- a/pkg/dialects/storm32/enum_mav_mission_type.go +++ b/pkg/dialects/storm32/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/storm32/enum_mav_mode.go b/pkg/dialects/storm32/enum_mav_mode.go index 4379eaed7..88df64369 100644 --- a/pkg/dialects/storm32/enum_mav_mode.go +++ b/pkg/dialects/storm32/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/storm32/enum_mav_mode_flag.go b/pkg/dialects/storm32/enum_mav_mode_flag.go index bd1c0d8e4..ac3cf3b68 100644 --- a/pkg/dialects/storm32/enum_mav_mode_flag.go +++ b/pkg/dialects/storm32/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/storm32/enum_mav_mode_flag_decode_position.go b/pkg/dialects/storm32/enum_mav_mode_flag_decode_position.go index ffb92ef18..4269d83ca 100644 --- a/pkg/dialects/storm32/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/storm32/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/storm32/enum_mav_mode_gimbal.go b/pkg/dialects/storm32/enum_mav_mode_gimbal.go index 8904a263d..4f330c8f8 100644 --- a/pkg/dialects/storm32/enum_mav_mode_gimbal.go +++ b/pkg/dialects/storm32/enum_mav_mode_gimbal.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_MODE_GIMBAL int +type MAV_MODE_GIMBAL uint32 const ( // Gimbal is powered on but has not started initializing yet. diff --git a/pkg/dialects/storm32/enum_mav_mount_mode.go b/pkg/dialects/storm32/enum_mav_mount_mode.go index 54aae88c0..1113f112a 100644 --- a/pkg/dialects/storm32/enum_mav_mount_mode.go +++ b/pkg/dialects/storm32/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/storm32/enum_mav_odid_auth_type.go b/pkg/dialects/storm32/enum_mav_odid_auth_type.go index 281db630d..581aa1bb1 100644 --- a/pkg/dialects/storm32/enum_mav_odid_auth_type.go +++ b/pkg/dialects/storm32/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/storm32/enum_mav_odid_category_eu.go b/pkg/dialects/storm32/enum_mav_odid_category_eu.go index 3702ef1fc..a7df15d92 100644 --- a/pkg/dialects/storm32/enum_mav_odid_category_eu.go +++ b/pkg/dialects/storm32/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/storm32/enum_mav_odid_class_eu.go b/pkg/dialects/storm32/enum_mav_odid_class_eu.go index 1de9fa719..3d7bc32d4 100644 --- a/pkg/dialects/storm32/enum_mav_odid_class_eu.go +++ b/pkg/dialects/storm32/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/storm32/enum_mav_odid_classification_type.go b/pkg/dialects/storm32/enum_mav_odid_classification_type.go index 66df44f99..a9d757c06 100644 --- a/pkg/dialects/storm32/enum_mav_odid_classification_type.go +++ b/pkg/dialects/storm32/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/storm32/enum_mav_odid_desc_type.go b/pkg/dialects/storm32/enum_mav_odid_desc_type.go index 36eac4a52..24fa3d8cd 100644 --- a/pkg/dialects/storm32/enum_mav_odid_desc_type.go +++ b/pkg/dialects/storm32/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/storm32/enum_mav_odid_height_ref.go b/pkg/dialects/storm32/enum_mav_odid_height_ref.go index 016adcdec..f7feac714 100644 --- a/pkg/dialects/storm32/enum_mav_odid_height_ref.go +++ b/pkg/dialects/storm32/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/storm32/enum_mav_odid_hor_acc.go b/pkg/dialects/storm32/enum_mav_odid_hor_acc.go index a4d4cd65f..a55d58b3f 100644 --- a/pkg/dialects/storm32/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/storm32/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/storm32/enum_mav_odid_id_type.go b/pkg/dialects/storm32/enum_mav_odid_id_type.go index 452985da9..da15e6609 100644 --- a/pkg/dialects/storm32/enum_mav_odid_id_type.go +++ b/pkg/dialects/storm32/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/storm32/enum_mav_odid_operator_id_type.go b/pkg/dialects/storm32/enum_mav_odid_operator_id_type.go index 0a32b8fa9..3aeb16605 100644 --- a/pkg/dialects/storm32/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/storm32/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/storm32/enum_mav_odid_operator_location_type.go b/pkg/dialects/storm32/enum_mav_odid_operator_location_type.go index 5aee5fdb7..cc5c807a0 100644 --- a/pkg/dialects/storm32/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/storm32/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/storm32/enum_mav_odid_speed_acc.go b/pkg/dialects/storm32/enum_mav_odid_speed_acc.go index e6774bc31..200b9a5e7 100644 --- a/pkg/dialects/storm32/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/storm32/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/storm32/enum_mav_odid_status.go b/pkg/dialects/storm32/enum_mav_odid_status.go index a1148bf76..7ed8cefaf 100644 --- a/pkg/dialects/storm32/enum_mav_odid_status.go +++ b/pkg/dialects/storm32/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/storm32/enum_mav_odid_time_acc.go b/pkg/dialects/storm32/enum_mav_odid_time_acc.go index 7a94fe9bc..2c2509c12 100644 --- a/pkg/dialects/storm32/enum_mav_odid_time_acc.go +++ b/pkg/dialects/storm32/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/storm32/enum_mav_odid_ua_type.go b/pkg/dialects/storm32/enum_mav_odid_ua_type.go index eda2e717e..52fd4392c 100644 --- a/pkg/dialects/storm32/enum_mav_odid_ua_type.go +++ b/pkg/dialects/storm32/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/storm32/enum_mav_odid_ver_acc.go b/pkg/dialects/storm32/enum_mav_odid_ver_acc.go index 7e6e17386..c52e5a45f 100644 --- a/pkg/dialects/storm32/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/storm32/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/storm32/enum_mav_param_ext_type.go b/pkg/dialects/storm32/enum_mav_param_ext_type.go index 21f15add9..2f7111293 100644 --- a/pkg/dialects/storm32/enum_mav_param_ext_type.go +++ b/pkg/dialects/storm32/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/storm32/enum_mav_param_type.go b/pkg/dialects/storm32/enum_mav_param_type.go index 0c89b37d5..81e7b1341 100644 --- a/pkg/dialects/storm32/enum_mav_param_type.go +++ b/pkg/dialects/storm32/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/storm32/enum_mav_power_status.go b/pkg/dialects/storm32/enum_mav_power_status.go index fd59e209f..db0cb510c 100644 --- a/pkg/dialects/storm32/enum_mav_power_status.go +++ b/pkg/dialects/storm32/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/storm32/enum_mav_protocol_capability.go b/pkg/dialects/storm32/enum_mav_protocol_capability.go index 3b5c8c4c2..6207117d9 100644 --- a/pkg/dialects/storm32/enum_mav_protocol_capability.go +++ b/pkg/dialects/storm32/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/storm32/enum_mav_qshot_mode.go b/pkg/dialects/storm32/enum_mav_qshot_mode.go index bc064c597..ee6f5c8f6 100644 --- a/pkg/dialects/storm32/enum_mav_qshot_mode.go +++ b/pkg/dialects/storm32/enum_mav_qshot_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible shot modes. -type MAV_QSHOT_MODE int +type MAV_QSHOT_MODE uint32 const ( // Undefined shot mode. Can be used to determine if qshots should be used or not. diff --git a/pkg/dialects/storm32/enum_mav_remote_log_data_block_commands.go b/pkg/dialects/storm32/enum_mav_remote_log_data_block_commands.go index 7000fe5e4..7722f61bb 100644 --- a/pkg/dialects/storm32/enum_mav_remote_log_data_block_commands.go +++ b/pkg/dialects/storm32/enum_mav_remote_log_data_block_commands.go @@ -7,7 +7,7 @@ import ( ) // Special ACK block numbers control activation of dataflash log streaming. -type MAV_REMOTE_LOG_DATA_BLOCK_COMMANDS int +type MAV_REMOTE_LOG_DATA_BLOCK_COMMANDS uint32 const ( // UAV to stop sending DataFlash blocks. diff --git a/pkg/dialects/storm32/enum_mav_remote_log_data_block_statuses.go b/pkg/dialects/storm32/enum_mav_remote_log_data_block_statuses.go index d2ea3f6e4..2dacee5f4 100644 --- a/pkg/dialects/storm32/enum_mav_remote_log_data_block_statuses.go +++ b/pkg/dialects/storm32/enum_mav_remote_log_data_block_statuses.go @@ -7,7 +7,7 @@ import ( ) // Possible remote log data block statuses. -type MAV_REMOTE_LOG_DATA_BLOCK_STATUSES int +type MAV_REMOTE_LOG_DATA_BLOCK_STATUSES uint32 const ( // This block has NOT been received. diff --git a/pkg/dialects/storm32/enum_mav_result.go b/pkg/dialects/storm32/enum_mav_result.go index 85eb85e0b..dbed6988f 100644 --- a/pkg/dialects/storm32/enum_mav_result.go +++ b/pkg/dialects/storm32/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/storm32/enum_mav_roi.go b/pkg/dialects/storm32/enum_mav_roi.go index 0fb47d339..b0572363a 100644 --- a/pkg/dialects/storm32/enum_mav_roi.go +++ b/pkg/dialects/storm32/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/storm32/enum_mav_sensor_orientation.go b/pkg/dialects/storm32/enum_mav_sensor_orientation.go index 931271d9c..2486da00e 100644 --- a/pkg/dialects/storm32/enum_mav_sensor_orientation.go +++ b/pkg/dialects/storm32/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/storm32/enum_mav_severity.go b/pkg/dialects/storm32/enum_mav_severity.go index a4450195b..9ef591481 100644 --- a/pkg/dialects/storm32/enum_mav_severity.go +++ b/pkg/dialects/storm32/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/storm32/enum_mav_state.go b/pkg/dialects/storm32/enum_mav_state.go index 37911092f..2350d03cc 100644 --- a/pkg/dialects/storm32/enum_mav_state.go +++ b/pkg/dialects/storm32/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/storm32/enum_mav_storm32_camera_prearm_flags.go b/pkg/dialects/storm32/enum_mav_storm32_camera_prearm_flags.go index 8dccf2abb..868c25ce0 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_camera_prearm_flags.go +++ b/pkg/dialects/storm32/enum_mav_storm32_camera_prearm_flags.go @@ -7,7 +7,7 @@ import ( ) // STorM32 camera prearm check flags. -type MAV_STORM32_CAMERA_PREARM_FLAGS int +type MAV_STORM32_CAMERA_PREARM_FLAGS uint32 const ( // The camera has been found and is connected. diff --git a/pkg/dialects/storm32/enum_mav_storm32_gimbal_action.go b/pkg/dialects/storm32/enum_mav_storm32_gimbal_action.go index 065922871..06957871a 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_gimbal_action.go +++ b/pkg/dialects/storm32/enum_mav_storm32_gimbal_action.go @@ -7,7 +7,7 @@ import ( ) // Gimbal actions. -type MAV_STORM32_GIMBAL_ACTION int +type MAV_STORM32_GIMBAL_ACTION uint32 const ( // Trigger the gimbal device to recenter the gimbal. diff --git a/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_cap_flags.go b/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_cap_flags.go index 32d0cd40a..859c9bb75 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_cap_flags.go +++ b/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device capability flags. -type MAV_STORM32_GIMBAL_DEVICE_CAP_FLAGS int +type MAV_STORM32_GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position. diff --git a/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_error_flags.go b/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_error_flags.go index 00349bd56..82fcddae1 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_error_flags.go +++ b/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device error and condition flags (0 means no error or other condition). -type MAV_STORM32_GIMBAL_DEVICE_ERROR_FLAGS int +type MAV_STORM32_GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_flags.go b/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_flags.go index 04a802966..47b7f1010 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_flags.go +++ b/pkg/dialects/storm32/enum_mav_storm32_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device operation. Used for setting and reporting, unless specified otherwise. Settings which are in violation of the capability flags are ignored by the gimbal device. -type MAV_STORM32_GIMBAL_DEVICE_FLAGS int +type MAV_STORM32_GIMBAL_DEVICE_FLAGS uint32 const ( // Retracted safe position (no stabilization), takes presedence over NEUTRAL flag. If supported by the gimbal, the angles in the retracted position can be set in addition. diff --git a/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_cap_flags.go b/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_cap_flags.go index 773304b21..bb62605b6 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_cap_flags.go +++ b/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager capability flags. -type MAV_STORM32_GIMBAL_MANAGER_CAP_FLAGS int +type MAV_STORM32_GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // The gimbal manager supports several profiles. diff --git a/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_client.go b/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_client.go index b5daee5be..cf1fb1a8c 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_client.go +++ b/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_client.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager client ID. In a prioritizing profile, the priorities are determined by the implementation; they could e.g. be custom1 > onboard > GCS > autopilot/camera > GCS2 > custom2. -type MAV_STORM32_GIMBAL_MANAGER_CLIENT int +type MAV_STORM32_GIMBAL_MANAGER_CLIENT uint32 const ( // For convenience. diff --git a/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_flags.go b/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_flags.go index 3e1bdd857..3430eec1b 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_flags.go +++ b/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal manager operation. Used for setting and reporting, unless specified otherwise. If a setting is accepted by the gimbal manger, is reported in the STORM32_GIMBAL_MANAGER_STATUS message. -type MAV_STORM32_GIMBAL_MANAGER_FLAGS int +type MAV_STORM32_GIMBAL_MANAGER_FLAGS uint32 const ( // 0 = ignore. diff --git a/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_profile.go b/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_profile.go index 87b7f454d..9efda437f 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_profile.go +++ b/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_profile.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager profiles. Only standard profiles are defined. Any implementation can define it's own profile in addition, and should use enum values > 16. -type MAV_STORM32_GIMBAL_MANAGER_PROFILE int +type MAV_STORM32_GIMBAL_MANAGER_PROFILE uint32 const ( // Default profile. Implementation specific. diff --git a/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_setup_flags.go b/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_setup_flags.go index 967c2dc19..b64755065 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_setup_flags.go +++ b/pkg/dialects/storm32/enum_mav_storm32_gimbal_manager_setup_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal manager set up. Used for setting and reporting, unless specified otherwise. -type MAV_STORM32_GIMBAL_MANAGER_SETUP_FLAGS int +type MAV_STORM32_GIMBAL_MANAGER_SETUP_FLAGS uint32 const ( // Enable gimbal manager. This flag is only for setting, is not reported. diff --git a/pkg/dialects/storm32/enum_mav_storm32_gimbal_prearm_flags.go b/pkg/dialects/storm32/enum_mav_storm32_gimbal_prearm_flags.go index ef73cb216..bb056976a 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_gimbal_prearm_flags.go +++ b/pkg/dialects/storm32/enum_mav_storm32_gimbal_prearm_flags.go @@ -7,7 +7,7 @@ import ( ) // STorM32 gimbal prearm check flags. -type MAV_STORM32_GIMBAL_PREARM_FLAGS int +type MAV_STORM32_GIMBAL_PREARM_FLAGS uint32 const ( // STorM32 gimbal is in normal state. diff --git a/pkg/dialects/storm32/enum_mav_storm32_tunnel_payload_type.go b/pkg/dialects/storm32/enum_mav_storm32_tunnel_payload_type.go index b0b4d4647..1456075b7 100644 --- a/pkg/dialects/storm32/enum_mav_storm32_tunnel_payload_type.go +++ b/pkg/dialects/storm32/enum_mav_storm32_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STORM32_TUNNEL_PAYLOAD_TYPE int +type MAV_STORM32_TUNNEL_PAYLOAD_TYPE uint32 const ( // Registered for STorM32 gimbal controller. diff --git a/pkg/dialects/storm32/enum_mav_sys_status_sensor.go b/pkg/dialects/storm32/enum_mav_sys_status_sensor.go index 5a97f66ee..492e299a5 100644 --- a/pkg/dialects/storm32/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/storm32/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/storm32/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/storm32/enum_mav_sys_status_sensor_extended.go index 97eb90d0e..11b350ca1 100644 --- a/pkg/dialects/storm32/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/storm32/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/storm32/enum_mav_tunnel_payload_type.go b/pkg/dialects/storm32/enum_mav_tunnel_payload_type.go index bcb2c745a..6256e6d20 100644 --- a/pkg/dialects/storm32/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/storm32/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/storm32/enum_mav_type.go b/pkg/dialects/storm32/enum_mav_type.go index 22a9e1654..55c7a481a 100644 --- a/pkg/dialects/storm32/enum_mav_type.go +++ b/pkg/dialects/storm32/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/storm32/enum_mav_vtol_state.go b/pkg/dialects/storm32/enum_mav_vtol_state.go index 6ddbe3056..87bfe2e39 100644 --- a/pkg/dialects/storm32/enum_mav_vtol_state.go +++ b/pkg/dialects/storm32/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/storm32/enum_mav_winch_status_flag.go b/pkg/dialects/storm32/enum_mav_winch_status_flag.go index 9ffae5eaf..0f18f97a5 100644 --- a/pkg/dialects/storm32/enum_mav_winch_status_flag.go +++ b/pkg/dialects/storm32/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/storm32/enum_mavlink_data_stream_type.go b/pkg/dialects/storm32/enum_mavlink_data_stream_type.go index 469507761..5b29b9d12 100644 --- a/pkg/dialects/storm32/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/storm32/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/storm32/enum_motor_test_order.go b/pkg/dialects/storm32/enum_motor_test_order.go index 2493f344a..13476ff8d 100644 --- a/pkg/dialects/storm32/enum_motor_test_order.go +++ b/pkg/dialects/storm32/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/storm32/enum_motor_test_throttle_type.go b/pkg/dialects/storm32/enum_motor_test_throttle_type.go index eadb1a232..155722433 100644 --- a/pkg/dialects/storm32/enum_motor_test_throttle_type.go +++ b/pkg/dialects/storm32/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/storm32/enum_nav_vtol_land_options.go b/pkg/dialects/storm32/enum_nav_vtol_land_options.go index 84cb977c0..3938053db 100644 --- a/pkg/dialects/storm32/enum_nav_vtol_land_options.go +++ b/pkg/dialects/storm32/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/storm32/enum_orbit_yaw_behaviour.go b/pkg/dialects/storm32/enum_orbit_yaw_behaviour.go index 3dcbe1e93..f65ba1400 100644 --- a/pkg/dialects/storm32/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/storm32/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/storm32/enum_osd_param_config_error.go b/pkg/dialects/storm32/enum_osd_param_config_error.go index 9e06dd236..5aa48ad54 100644 --- a/pkg/dialects/storm32/enum_osd_param_config_error.go +++ b/pkg/dialects/storm32/enum_osd_param_config_error.go @@ -7,7 +7,7 @@ import ( ) // The error type for the OSD parameter editor. -type OSD_PARAM_CONFIG_ERROR int +type OSD_PARAM_CONFIG_ERROR uint32 const ( OSD_PARAM_SUCCESS OSD_PARAM_CONFIG_ERROR = 0 diff --git a/pkg/dialects/storm32/enum_osd_param_config_type.go b/pkg/dialects/storm32/enum_osd_param_config_type.go index 2e69edcfc..d5dd13ed0 100644 --- a/pkg/dialects/storm32/enum_osd_param_config_type.go +++ b/pkg/dialects/storm32/enum_osd_param_config_type.go @@ -7,7 +7,7 @@ import ( ) // The type of parameter for the OSD parameter editor. -type OSD_PARAM_CONFIG_TYPE int +type OSD_PARAM_CONFIG_TYPE uint32 const ( OSD_PARAM_NONE OSD_PARAM_CONFIG_TYPE = 0 diff --git a/pkg/dialects/storm32/enum_parachute_action.go b/pkg/dialects/storm32/enum_parachute_action.go index 9bed53d3f..78323f68f 100644 --- a/pkg/dialects/storm32/enum_parachute_action.go +++ b/pkg/dialects/storm32/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/storm32/enum_param_ack.go b/pkg/dialects/storm32/enum_param_ack.go index f762f8b82..d235074aa 100644 --- a/pkg/dialects/storm32/enum_param_ack.go +++ b/pkg/dialects/storm32/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/storm32/enum_pid_tuning_axis.go b/pkg/dialects/storm32/enum_pid_tuning_axis.go index 6394b2faf..8bbe8951b 100644 --- a/pkg/dialects/storm32/enum_pid_tuning_axis.go +++ b/pkg/dialects/storm32/enum_pid_tuning_axis.go @@ -6,7 +6,7 @@ import ( "errors" ) -type PID_TUNING_AXIS int +type PID_TUNING_AXIS uint32 const ( PID_TUNING_ROLL PID_TUNING_AXIS = 1 diff --git a/pkg/dialects/storm32/enum_plane_mode.go b/pkg/dialects/storm32/enum_plane_mode.go index 08ac0f0d6..16b9d047c 100644 --- a/pkg/dialects/storm32/enum_plane_mode.go +++ b/pkg/dialects/storm32/enum_plane_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of plane flight modes for custom_mode field of heartbeat. -type PLANE_MODE int +type PLANE_MODE uint32 const ( PLANE_MODE_MANUAL PLANE_MODE = 0 diff --git a/pkg/dialects/storm32/enum_position_target_typemask.go b/pkg/dialects/storm32/enum_position_target_typemask.go index ece21c409..1577276ee 100644 --- a/pkg/dialects/storm32/enum_position_target_typemask.go +++ b/pkg/dialects/storm32/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/storm32/enum_precision_land_mode.go b/pkg/dialects/storm32/enum_precision_land_mode.go index 26caf4d44..e5c305e46 100644 --- a/pkg/dialects/storm32/enum_precision_land_mode.go +++ b/pkg/dialects/storm32/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/storm32/enum_rally_flags.go b/pkg/dialects/storm32/enum_rally_flags.go index d5aa2d41f..dd017cbdf 100644 --- a/pkg/dialects/storm32/enum_rally_flags.go +++ b/pkg/dialects/storm32/enum_rally_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in RALLY_POINT message. -type RALLY_FLAGS int +type RALLY_FLAGS uint32 const ( // Flag set when requiring favorable winds for landing. diff --git a/pkg/dialects/storm32/enum_rc_type.go b/pkg/dialects/storm32/enum_rc_type.go index 5ddbe1c7f..ed314bd29 100644 --- a/pkg/dialects/storm32/enum_rc_type.go +++ b/pkg/dialects/storm32/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/storm32/enum_rover_mode.go b/pkg/dialects/storm32/enum_rover_mode.go index 78a56872a..5f8b385ee 100644 --- a/pkg/dialects/storm32/enum_rover_mode.go +++ b/pkg/dialects/storm32/enum_rover_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of rover flight modes for custom_mode field of heartbeat. -type ROVER_MODE int +type ROVER_MODE uint32 const ( ROVER_MODE_MANUAL ROVER_MODE = 0 diff --git a/pkg/dialects/storm32/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/storm32/enum_rtk_baseline_coordinate_system.go index 846dcf5c6..3bee5b849 100644 --- a/pkg/dialects/storm32/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/storm32/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/storm32/enum_scripting_cmd.go b/pkg/dialects/storm32/enum_scripting_cmd.go index 1a441c04a..464094f06 100644 --- a/pkg/dialects/storm32/enum_scripting_cmd.go +++ b/pkg/dialects/storm32/enum_scripting_cmd.go @@ -6,7 +6,7 @@ import ( "errors" ) -type SCRIPTING_CMD int +type SCRIPTING_CMD uint32 const ( // Start a REPL session. diff --git a/pkg/dialects/storm32/enum_serial_control_dev.go b/pkg/dialects/storm32/enum_serial_control_dev.go index e2202b1d1..f5badbee1 100644 --- a/pkg/dialects/storm32/enum_serial_control_dev.go +++ b/pkg/dialects/storm32/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/storm32/enum_serial_control_flag.go b/pkg/dialects/storm32/enum_serial_control_flag.go index bb5ebdc1d..6abb81b27 100644 --- a/pkg/dialects/storm32/enum_serial_control_flag.go +++ b/pkg/dialects/storm32/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/storm32/enum_set_focus_type.go b/pkg/dialects/storm32/enum_set_focus_type.go index ec4393e99..d5eca0fa4 100644 --- a/pkg/dialects/storm32/enum_set_focus_type.go +++ b/pkg/dialects/storm32/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/storm32/enum_speed_type.go b/pkg/dialects/storm32/enum_speed_type.go index f9355e445..2ab21156f 100644 --- a/pkg/dialects/storm32/enum_speed_type.go +++ b/pkg/dialects/storm32/enum_speed_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type SPEED_TYPE int +type SPEED_TYPE uint32 const ( SPEED_TYPE_AIRSPEED SPEED_TYPE = 0 diff --git a/pkg/dialects/storm32/enum_storage_status.go b/pkg/dialects/storm32/enum_storage_status.go index 86047272d..e6cdeb102 100644 --- a/pkg/dialects/storm32/enum_storage_status.go +++ b/pkg/dialects/storm32/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/storm32/enum_storage_type.go b/pkg/dialects/storm32/enum_storage_type.go index 8f20a03bc..0df1b7468 100644 --- a/pkg/dialects/storm32/enum_storage_type.go +++ b/pkg/dialects/storm32/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/storm32/enum_storage_usage_flag.go b/pkg/dialects/storm32/enum_storage_usage_flag.go index 912cf49c5..eb0ad8191 100644 --- a/pkg/dialects/storm32/enum_storage_usage_flag.go +++ b/pkg/dialects/storm32/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/storm32/enum_sub_mode.go b/pkg/dialects/storm32/enum_sub_mode.go index 61d00e269..77c4b3cc5 100644 --- a/pkg/dialects/storm32/enum_sub_mode.go +++ b/pkg/dialects/storm32/enum_sub_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of sub flight modes for custom_mode field of heartbeat. -type SUB_MODE int +type SUB_MODE uint32 const ( SUB_MODE_STABILIZE SUB_MODE = 0 diff --git a/pkg/dialects/storm32/enum_tracker_mode.go b/pkg/dialects/storm32/enum_tracker_mode.go index 05bebc5f6..57200c32b 100644 --- a/pkg/dialects/storm32/enum_tracker_mode.go +++ b/pkg/dialects/storm32/enum_tracker_mode.go @@ -7,7 +7,7 @@ import ( ) // A mapping of antenna tracker flight modes for custom_mode field of heartbeat. -type TRACKER_MODE int +type TRACKER_MODE uint32 const ( TRACKER_MODE_MANUAL TRACKER_MODE = 0 diff --git a/pkg/dialects/storm32/enum_tune_format.go b/pkg/dialects/storm32/enum_tune_format.go index 79cd968a6..b2aa322f7 100644 --- a/pkg/dialects/storm32/enum_tune_format.go +++ b/pkg/dialects/storm32/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/storm32/enum_uavcan_node_health.go b/pkg/dialects/storm32/enum_uavcan_node_health.go index 5082c378f..e3ae7f18c 100644 --- a/pkg/dialects/storm32/enum_uavcan_node_health.go +++ b/pkg/dialects/storm32/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/storm32/enum_uavcan_node_mode.go b/pkg/dialects/storm32/enum_uavcan_node_mode.go index 586cd70bf..113da634d 100644 --- a/pkg/dialects/storm32/enum_uavcan_node_mode.go +++ b/pkg/dialects/storm32/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/storm32/enum_uavionix_adsb_emergency_status.go b/pkg/dialects/storm32/enum_uavionix_adsb_emergency_status.go index 01b828be8..fd7bf8fdc 100644 --- a/pkg/dialects/storm32/enum_uavionix_adsb_emergency_status.go +++ b/pkg/dialects/storm32/enum_uavionix_adsb_emergency_status.go @@ -7,7 +7,7 @@ import ( ) // Emergency status encoding -type UAVIONIX_ADSB_EMERGENCY_STATUS int +type UAVIONIX_ADSB_EMERGENCY_STATUS uint32 const ( UAVIONIX_ADSB_OUT_NO_EMERGENCY UAVIONIX_ADSB_EMERGENCY_STATUS = 0 diff --git a/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_aircraft_size.go b/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_aircraft_size.go index 01ebe1da4..a9bc4ccd5 100644 --- a/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_aircraft_size.go +++ b/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_aircraft_size.go @@ -7,7 +7,7 @@ import ( ) // Definitions for aircraft size -type UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE int +type UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE uint32 const ( UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_NO_DATA UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE = 0 diff --git a/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_gps_offset_lat.go b/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_gps_offset_lat.go index d34d9cdc2..48e9d8ea8 100644 --- a/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_gps_offset_lat.go +++ b/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_gps_offset_lat.go @@ -7,7 +7,7 @@ import ( ) // GPS lataral offset encoding -type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT int +type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT uint32 const ( UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_NO_DATA UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT = 0 diff --git a/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_gps_offset_lon.go b/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_gps_offset_lon.go index 425b9ecb5..9508d2019 100644 --- a/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_gps_offset_lon.go +++ b/pkg/dialects/storm32/enum_uavionix_adsb_out_cfg_gps_offset_lon.go @@ -7,7 +7,7 @@ import ( ) // GPS longitudinal offset encoding -type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON int +type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON uint32 const ( UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON_NO_DATA UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON = 0 diff --git a/pkg/dialects/storm32/enum_uavionix_adsb_out_dynamic_gps_fix.go b/pkg/dialects/storm32/enum_uavionix_adsb_out_dynamic_gps_fix.go index d719c7747..74aeb0186 100644 --- a/pkg/dialects/storm32/enum_uavionix_adsb_out_dynamic_gps_fix.go +++ b/pkg/dialects/storm32/enum_uavionix_adsb_out_dynamic_gps_fix.go @@ -7,7 +7,7 @@ import ( ) // Status for ADS-B transponder dynamic input -type UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX int +type UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX uint32 const ( UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_NONE_0 UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX = 0 diff --git a/pkg/dialects/storm32/enum_uavionix_adsb_out_dynamic_state.go b/pkg/dialects/storm32/enum_uavionix_adsb_out_dynamic_state.go index 1f6164921..cef8d6c9d 100644 --- a/pkg/dialects/storm32/enum_uavionix_adsb_out_dynamic_state.go +++ b/pkg/dialects/storm32/enum_uavionix_adsb_out_dynamic_state.go @@ -7,7 +7,7 @@ import ( ) // State flags for ADS-B transponder dynamic report -type UAVIONIX_ADSB_OUT_DYNAMIC_STATE int +type UAVIONIX_ADSB_OUT_DYNAMIC_STATE uint32 const ( UAVIONIX_ADSB_OUT_DYNAMIC_STATE_INTENT_CHANGE UAVIONIX_ADSB_OUT_DYNAMIC_STATE = 1 diff --git a/pkg/dialects/storm32/enum_uavionix_adsb_out_rf_select.go b/pkg/dialects/storm32/enum_uavionix_adsb_out_rf_select.go index c5c808907..9a277933b 100644 --- a/pkg/dialects/storm32/enum_uavionix_adsb_out_rf_select.go +++ b/pkg/dialects/storm32/enum_uavionix_adsb_out_rf_select.go @@ -7,7 +7,7 @@ import ( ) // Transceiver RF control flags for ADS-B transponder dynamic reports -type UAVIONIX_ADSB_OUT_RF_SELECT int +type UAVIONIX_ADSB_OUT_RF_SELECT uint32 const ( UAVIONIX_ADSB_OUT_RF_SELECT_STANDBY UAVIONIX_ADSB_OUT_RF_SELECT = 0 diff --git a/pkg/dialects/storm32/enum_uavionix_adsb_rf_health.go b/pkg/dialects/storm32/enum_uavionix_adsb_rf_health.go index 6e92005b1..1cfbce2bd 100644 --- a/pkg/dialects/storm32/enum_uavionix_adsb_rf_health.go +++ b/pkg/dialects/storm32/enum_uavionix_adsb_rf_health.go @@ -7,7 +7,7 @@ import ( ) // Status flags for ADS-B transponder dynamic output -type UAVIONIX_ADSB_RF_HEALTH int +type UAVIONIX_ADSB_RF_HEALTH uint32 const ( UAVIONIX_ADSB_RF_HEALTH_INITIALIZING UAVIONIX_ADSB_RF_HEALTH = 0 diff --git a/pkg/dialects/storm32/enum_utm_data_avail_flags.go b/pkg/dialects/storm32/enum_utm_data_avail_flags.go index 49a3ad265..88b0e8640 100644 --- a/pkg/dialects/storm32/enum_utm_data_avail_flags.go +++ b/pkg/dialects/storm32/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/storm32/enum_utm_flight_state.go b/pkg/dialects/storm32/enum_utm_flight_state.go index 81f9f71ae..06223d536 100644 --- a/pkg/dialects/storm32/enum_utm_flight_state.go +++ b/pkg/dialects/storm32/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/storm32/enum_video_stream_status_flags.go b/pkg/dialects/storm32/enum_video_stream_status_flags.go index c859a86da..93162245a 100644 --- a/pkg/dialects/storm32/enum_video_stream_status_flags.go +++ b/pkg/dialects/storm32/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/storm32/enum_video_stream_type.go b/pkg/dialects/storm32/enum_video_stream_type.go index d3e5cca91..75ded24d8 100644 --- a/pkg/dialects/storm32/enum_video_stream_type.go +++ b/pkg/dialects/storm32/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/storm32/enum_vtol_transition_heading.go b/pkg/dialects/storm32/enum_vtol_transition_heading.go index 3c86dc04f..82f17af2e 100644 --- a/pkg/dialects/storm32/enum_vtol_transition_heading.go +++ b/pkg/dialects/storm32/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/storm32/enum_wifi_config_ap_mode.go b/pkg/dialects/storm32/enum_wifi_config_ap_mode.go index 2d4316671..7ea0f6750 100644 --- a/pkg/dialects/storm32/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/storm32/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/storm32/enum_wifi_config_ap_response.go b/pkg/dialects/storm32/enum_wifi_config_ap_response.go index bea8a44f0..1a9cec30b 100644 --- a/pkg/dialects/storm32/enum_wifi_config_ap_response.go +++ b/pkg/dialects/storm32/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/storm32/enum_winch_actions.go b/pkg/dialects/storm32/enum_winch_actions.go index 8ae60dabe..589c2a033 100644 --- a/pkg/dialects/storm32/enum_winch_actions.go +++ b/pkg/dialects/storm32/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/ualberta/enum_actuator_configuration.go b/pkg/dialects/ualberta/enum_actuator_configuration.go index 22efb6b74..5ac776032 100644 --- a/pkg/dialects/ualberta/enum_actuator_configuration.go +++ b/pkg/dialects/ualberta/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/ualberta/enum_actuator_output_function.go b/pkg/dialects/ualberta/enum_actuator_output_function.go index f2f91f4f6..277dca4f7 100644 --- a/pkg/dialects/ualberta/enum_actuator_output_function.go +++ b/pkg/dialects/ualberta/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/ualberta/enum_adsb_altitude_type.go b/pkg/dialects/ualberta/enum_adsb_altitude_type.go index 6ad55f957..01fb2ba07 100644 --- a/pkg/dialects/ualberta/enum_adsb_altitude_type.go +++ b/pkg/dialects/ualberta/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/ualberta/enum_adsb_emitter_type.go b/pkg/dialects/ualberta/enum_adsb_emitter_type.go index ce3670503..f995c2ea2 100644 --- a/pkg/dialects/ualberta/enum_adsb_emitter_type.go +++ b/pkg/dialects/ualberta/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/ualberta/enum_adsb_flags.go b/pkg/dialects/ualberta/enum_adsb_flags.go index ff2f2beb7..b39373db3 100644 --- a/pkg/dialects/ualberta/enum_adsb_flags.go +++ b/pkg/dialects/ualberta/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/ualberta/enum_ais_flags.go b/pkg/dialects/ualberta/enum_ais_flags.go index 5d42be0b1..5dd84b796 100644 --- a/pkg/dialects/ualberta/enum_ais_flags.go +++ b/pkg/dialects/ualberta/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/ualberta/enum_ais_nav_status.go b/pkg/dialects/ualberta/enum_ais_nav_status.go index a2c65da7f..5f27d26a0 100644 --- a/pkg/dialects/ualberta/enum_ais_nav_status.go +++ b/pkg/dialects/ualberta/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/ualberta/enum_ais_type.go b/pkg/dialects/ualberta/enum_ais_type.go index d53860a9a..6a2977bc2 100644 --- a/pkg/dialects/ualberta/enum_ais_type.go +++ b/pkg/dialects/ualberta/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/ualberta/enum_attitude_target_typemask.go b/pkg/dialects/ualberta/enum_attitude_target_typemask.go index 17a78d9e4..6a053d3bf 100644 --- a/pkg/dialects/ualberta/enum_attitude_target_typemask.go +++ b/pkg/dialects/ualberta/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/ualberta/enum_autotune_axis.go b/pkg/dialects/ualberta/enum_autotune_axis.go index 7d974ff65..7032028a9 100644 --- a/pkg/dialects/ualberta/enum_autotune_axis.go +++ b/pkg/dialects/ualberta/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/ualberta/enum_camera_cap_flags.go b/pkg/dialects/ualberta/enum_camera_cap_flags.go index 0ccc0f3d5..a819ab964 100644 --- a/pkg/dialects/ualberta/enum_camera_cap_flags.go +++ b/pkg/dialects/ualberta/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/ualberta/enum_camera_mode.go b/pkg/dialects/ualberta/enum_camera_mode.go index 1233838f0..879a596bf 100644 --- a/pkg/dialects/ualberta/enum_camera_mode.go +++ b/pkg/dialects/ualberta/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/ualberta/enum_camera_tracking_mode.go b/pkg/dialects/ualberta/enum_camera_tracking_mode.go index e663e347e..470fed965 100644 --- a/pkg/dialects/ualberta/enum_camera_tracking_mode.go +++ b/pkg/dialects/ualberta/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/ualberta/enum_camera_tracking_status_flags.go b/pkg/dialects/ualberta/enum_camera_tracking_status_flags.go index f65cc65f6..f9e408ce3 100644 --- a/pkg/dialects/ualberta/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/ualberta/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/ualberta/enum_camera_tracking_target_data.go b/pkg/dialects/ualberta/enum_camera_tracking_target_data.go index 3ac1d2d6c..722dc98b8 100644 --- a/pkg/dialects/ualberta/enum_camera_tracking_target_data.go +++ b/pkg/dialects/ualberta/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/ualberta/enum_camera_zoom_type.go b/pkg/dialects/ualberta/enum_camera_zoom_type.go index 684f3b5f1..a389b54df 100644 --- a/pkg/dialects/ualberta/enum_camera_zoom_type.go +++ b/pkg/dialects/ualberta/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/ualberta/enum_cellular_config_response.go b/pkg/dialects/ualberta/enum_cellular_config_response.go index 69f5a7604..4b8de7386 100644 --- a/pkg/dialects/ualberta/enum_cellular_config_response.go +++ b/pkg/dialects/ualberta/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/ualberta/enum_cellular_network_failed_reason.go b/pkg/dialects/ualberta/enum_cellular_network_failed_reason.go index e9385f1fc..75f3e9c19 100644 --- a/pkg/dialects/ualberta/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/ualberta/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/ualberta/enum_cellular_network_radio_type.go b/pkg/dialects/ualberta/enum_cellular_network_radio_type.go index 17b84f730..189be706d 100644 --- a/pkg/dialects/ualberta/enum_cellular_network_radio_type.go +++ b/pkg/dialects/ualberta/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/ualberta/enum_cellular_status_flag.go b/pkg/dialects/ualberta/enum_cellular_status_flag.go index 232a1a350..b97b9667f 100644 --- a/pkg/dialects/ualberta/enum_cellular_status_flag.go +++ b/pkg/dialects/ualberta/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/ualberta/enum_comp_metadata_type.go b/pkg/dialects/ualberta/enum_comp_metadata_type.go index bee175a4a..ae45f0af0 100644 --- a/pkg/dialects/ualberta/enum_comp_metadata_type.go +++ b/pkg/dialects/ualberta/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/ualberta/enum_esc_connection_type.go b/pkg/dialects/ualberta/enum_esc_connection_type.go index a9bb7dc21..b40336bbf 100644 --- a/pkg/dialects/ualberta/enum_esc_connection_type.go +++ b/pkg/dialects/ualberta/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/ualberta/enum_esc_failure_flags.go b/pkg/dialects/ualberta/enum_esc_failure_flags.go index f791b1d17..b2b89a3ba 100644 --- a/pkg/dialects/ualberta/enum_esc_failure_flags.go +++ b/pkg/dialects/ualberta/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/ualberta/enum_estimator_status_flags.go b/pkg/dialects/ualberta/enum_estimator_status_flags.go index 7dae47e86..d5814dd2a 100644 --- a/pkg/dialects/ualberta/enum_estimator_status_flags.go +++ b/pkg/dialects/ualberta/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/ualberta/enum_failure_type.go b/pkg/dialects/ualberta/enum_failure_type.go index 0a8714337..e714252b7 100644 --- a/pkg/dialects/ualberta/enum_failure_type.go +++ b/pkg/dialects/ualberta/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/ualberta/enum_failure_unit.go b/pkg/dialects/ualberta/enum_failure_unit.go index 2baced109..ea7ae2bf5 100644 --- a/pkg/dialects/ualberta/enum_failure_unit.go +++ b/pkg/dialects/ualberta/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/ualberta/enum_fence_action.go b/pkg/dialects/ualberta/enum_fence_action.go index 7e47418e3..c7e50c6c4 100644 --- a/pkg/dialects/ualberta/enum_fence_action.go +++ b/pkg/dialects/ualberta/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/ualberta/enum_fence_breach.go b/pkg/dialects/ualberta/enum_fence_breach.go index 267c5db18..811dc33ff 100644 --- a/pkg/dialects/ualberta/enum_fence_breach.go +++ b/pkg/dialects/ualberta/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/ualberta/enum_fence_mitigate.go b/pkg/dialects/ualberta/enum_fence_mitigate.go index 1c3edde27..1e26e9c41 100644 --- a/pkg/dialects/ualberta/enum_fence_mitigate.go +++ b/pkg/dialects/ualberta/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/ualberta/enum_firmware_version_type.go b/pkg/dialects/ualberta/enum_firmware_version_type.go index 7897b9cc7..3e713f1bb 100644 --- a/pkg/dialects/ualberta/enum_firmware_version_type.go +++ b/pkg/dialects/ualberta/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/ualberta/enum_gimbal_device_cap_flags.go b/pkg/dialects/ualberta/enum_gimbal_device_cap_flags.go index 388bc3321..00ccc343f 100644 --- a/pkg/dialects/ualberta/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/ualberta/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/ualberta/enum_gimbal_device_error_flags.go b/pkg/dialects/ualberta/enum_gimbal_device_error_flags.go index 4fc73138b..b5f95f225 100644 --- a/pkg/dialects/ualberta/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/ualberta/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/ualberta/enum_gimbal_device_flags.go b/pkg/dialects/ualberta/enum_gimbal_device_flags.go index 3ed2434e2..5a0e017e7 100644 --- a/pkg/dialects/ualberta/enum_gimbal_device_flags.go +++ b/pkg/dialects/ualberta/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/ualberta/enum_gimbal_manager_cap_flags.go b/pkg/dialects/ualberta/enum_gimbal_manager_cap_flags.go index 5761feffe..f8c291921 100644 --- a/pkg/dialects/ualberta/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/ualberta/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/ualberta/enum_gimbal_manager_flags.go b/pkg/dialects/ualberta/enum_gimbal_manager_flags.go index f2b1c46df..bd0118ef1 100644 --- a/pkg/dialects/ualberta/enum_gimbal_manager_flags.go +++ b/pkg/dialects/ualberta/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/ualberta/enum_gps_fix_type.go b/pkg/dialects/ualberta/enum_gps_fix_type.go index 5adb27e25..398b27dcf 100644 --- a/pkg/dialects/ualberta/enum_gps_fix_type.go +++ b/pkg/dialects/ualberta/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/ualberta/enum_gps_input_ignore_flags.go b/pkg/dialects/ualberta/enum_gps_input_ignore_flags.go index 0cbd32b7f..0ec3092fe 100644 --- a/pkg/dialects/ualberta/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/ualberta/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/ualberta/enum_gripper_actions.go b/pkg/dialects/ualberta/enum_gripper_actions.go index fa96ee3d9..1f183c327 100644 --- a/pkg/dialects/ualberta/enum_gripper_actions.go +++ b/pkg/dialects/ualberta/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/ualberta/enum_highres_imu_updated_flags.go b/pkg/dialects/ualberta/enum_highres_imu_updated_flags.go index 3962a5f73..0db6cfff8 100644 --- a/pkg/dialects/ualberta/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/ualberta/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/ualberta/enum_hil_sensor_updated_flags.go b/pkg/dialects/ualberta/enum_hil_sensor_updated_flags.go index 1783deb14..a283d1437 100644 --- a/pkg/dialects/ualberta/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/ualberta/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/ualberta/enum_hl_failure_flag.go b/pkg/dialects/ualberta/enum_hl_failure_flag.go index 6585cb715..70f3cf8af 100644 --- a/pkg/dialects/ualberta/enum_hl_failure_flag.go +++ b/pkg/dialects/ualberta/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/ualberta/enum_landing_target_type.go b/pkg/dialects/ualberta/enum_landing_target_type.go index d06f72fd9..7e33101e7 100644 --- a/pkg/dialects/ualberta/enum_landing_target_type.go +++ b/pkg/dialects/ualberta/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/ualberta/enum_mag_cal_status.go b/pkg/dialects/ualberta/enum_mag_cal_status.go index fc4aafbee..e85f649e7 100644 --- a/pkg/dialects/ualberta/enum_mag_cal_status.go +++ b/pkg/dialects/ualberta/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/ualberta/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/ualberta/enum_mav_arm_auth_denied_reason.go index deb8b9df2..1016133a5 100644 --- a/pkg/dialects/ualberta/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/ualberta/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/ualberta/enum_mav_autopilot.go b/pkg/dialects/ualberta/enum_mav_autopilot.go index a9a8adb43..9a35aef79 100644 --- a/pkg/dialects/ualberta/enum_mav_autopilot.go +++ b/pkg/dialects/ualberta/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/ualberta/enum_mav_battery_charge_state.go b/pkg/dialects/ualberta/enum_mav_battery_charge_state.go index 3d846b218..719c99846 100644 --- a/pkg/dialects/ualberta/enum_mav_battery_charge_state.go +++ b/pkg/dialects/ualberta/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/ualberta/enum_mav_battery_fault.go b/pkg/dialects/ualberta/enum_mav_battery_fault.go index a1d2ff7f5..6b42a762c 100644 --- a/pkg/dialects/ualberta/enum_mav_battery_fault.go +++ b/pkg/dialects/ualberta/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/ualberta/enum_mav_battery_function.go b/pkg/dialects/ualberta/enum_mav_battery_function.go index a14ebd80b..66ad9ed48 100644 --- a/pkg/dialects/ualberta/enum_mav_battery_function.go +++ b/pkg/dialects/ualberta/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/ualberta/enum_mav_battery_mode.go b/pkg/dialects/ualberta/enum_mav_battery_mode.go index baadc76b5..46332e2cc 100644 --- a/pkg/dialects/ualberta/enum_mav_battery_mode.go +++ b/pkg/dialects/ualberta/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/ualberta/enum_mav_battery_type.go b/pkg/dialects/ualberta/enum_mav_battery_type.go index f278c6d05..17c73d338 100644 --- a/pkg/dialects/ualberta/enum_mav_battery_type.go +++ b/pkg/dialects/ualberta/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/ualberta/enum_mav_cmd.go b/pkg/dialects/ualberta/enum_mav_cmd.go index d42aa1f66..3d3e94f28 100644 --- a/pkg/dialects/ualberta/enum_mav_cmd.go +++ b/pkg/dialects/ualberta/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/ualberta/enum_mav_cmd_ack.go b/pkg/dialects/ualberta/enum_mav_cmd_ack.go index 2d29a826d..2ca308428 100644 --- a/pkg/dialects/ualberta/enum_mav_cmd_ack.go +++ b/pkg/dialects/ualberta/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/ualberta/enum_mav_collision_action.go b/pkg/dialects/ualberta/enum_mav_collision_action.go index e9bbe7bb4..b2127789a 100644 --- a/pkg/dialects/ualberta/enum_mav_collision_action.go +++ b/pkg/dialects/ualberta/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/ualberta/enum_mav_collision_src.go b/pkg/dialects/ualberta/enum_mav_collision_src.go index 59ad90ea1..7d6af34c3 100644 --- a/pkg/dialects/ualberta/enum_mav_collision_src.go +++ b/pkg/dialects/ualberta/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/ualberta/enum_mav_collision_threat_level.go b/pkg/dialects/ualberta/enum_mav_collision_threat_level.go index 40073f9d6..b62b03460 100644 --- a/pkg/dialects/ualberta/enum_mav_collision_threat_level.go +++ b/pkg/dialects/ualberta/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/ualberta/enum_mav_component.go b/pkg/dialects/ualberta/enum_mav_component.go index fde062fa2..3d355ef7d 100644 --- a/pkg/dialects/ualberta/enum_mav_component.go +++ b/pkg/dialects/ualberta/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/ualberta/enum_mav_data_stream.go b/pkg/dialects/ualberta/enum_mav_data_stream.go index 26249187a..09af22c25 100644 --- a/pkg/dialects/ualberta/enum_mav_data_stream.go +++ b/pkg/dialects/ualberta/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/ualberta/enum_mav_distance_sensor.go b/pkg/dialects/ualberta/enum_mav_distance_sensor.go index c92e261e3..ba58041c7 100644 --- a/pkg/dialects/ualberta/enum_mav_distance_sensor.go +++ b/pkg/dialects/ualberta/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/ualberta/enum_mav_do_reposition_flags.go b/pkg/dialects/ualberta/enum_mav_do_reposition_flags.go index 052997814..4b3323e22 100644 --- a/pkg/dialects/ualberta/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/ualberta/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/ualberta/enum_mav_estimator_type.go b/pkg/dialects/ualberta/enum_mav_estimator_type.go index 2f76b15a4..95fa207dd 100644 --- a/pkg/dialects/ualberta/enum_mav_estimator_type.go +++ b/pkg/dialects/ualberta/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/ualberta/enum_mav_event_current_sequence_flags.go b/pkg/dialects/ualberta/enum_mav_event_current_sequence_flags.go index 150540515..3efd918e2 100644 --- a/pkg/dialects/ualberta/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/ualberta/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/ualberta/enum_mav_event_error_reason.go b/pkg/dialects/ualberta/enum_mav_event_error_reason.go index c361da1a2..b3b944e70 100644 --- a/pkg/dialects/ualberta/enum_mav_event_error_reason.go +++ b/pkg/dialects/ualberta/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/ualberta/enum_mav_frame.go b/pkg/dialects/ualberta/enum_mav_frame.go index 52d3ea0cd..ca301adf3 100644 --- a/pkg/dialects/ualberta/enum_mav_frame.go +++ b/pkg/dialects/ualberta/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/ualberta/enum_mav_generator_status_flag.go b/pkg/dialects/ualberta/enum_mav_generator_status_flag.go index 6315096a8..77bef069b 100644 --- a/pkg/dialects/ualberta/enum_mav_generator_status_flag.go +++ b/pkg/dialects/ualberta/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/ualberta/enum_mav_goto.go b/pkg/dialects/ualberta/enum_mav_goto.go index a4112430f..8c1348b76 100644 --- a/pkg/dialects/ualberta/enum_mav_goto.go +++ b/pkg/dialects/ualberta/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/ualberta/enum_mav_landed_state.go b/pkg/dialects/ualberta/enum_mav_landed_state.go index 0020a8342..cc2695245 100644 --- a/pkg/dialects/ualberta/enum_mav_landed_state.go +++ b/pkg/dialects/ualberta/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/ualberta/enum_mav_mission_result.go b/pkg/dialects/ualberta/enum_mav_mission_result.go index 41e001be8..629041d84 100644 --- a/pkg/dialects/ualberta/enum_mav_mission_result.go +++ b/pkg/dialects/ualberta/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/ualberta/enum_mav_mission_type.go b/pkg/dialects/ualberta/enum_mav_mission_type.go index 812be8471..47c5281d9 100644 --- a/pkg/dialects/ualberta/enum_mav_mission_type.go +++ b/pkg/dialects/ualberta/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/ualberta/enum_mav_mode.go b/pkg/dialects/ualberta/enum_mav_mode.go index 11042f401..7d41d7134 100644 --- a/pkg/dialects/ualberta/enum_mav_mode.go +++ b/pkg/dialects/ualberta/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/ualberta/enum_mav_mode_flag.go b/pkg/dialects/ualberta/enum_mav_mode_flag.go index 06dd2d2be..656991fa4 100644 --- a/pkg/dialects/ualberta/enum_mav_mode_flag.go +++ b/pkg/dialects/ualberta/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/ualberta/enum_mav_mode_flag_decode_position.go b/pkg/dialects/ualberta/enum_mav_mode_flag_decode_position.go index 55be31257..64100b389 100644 --- a/pkg/dialects/ualberta/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/ualberta/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/ualberta/enum_mav_mount_mode.go b/pkg/dialects/ualberta/enum_mav_mount_mode.go index b75fb31cc..e489215c4 100644 --- a/pkg/dialects/ualberta/enum_mav_mount_mode.go +++ b/pkg/dialects/ualberta/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/ualberta/enum_mav_odid_auth_type.go b/pkg/dialects/ualberta/enum_mav_odid_auth_type.go index a83930dd3..f15ac031b 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_auth_type.go +++ b/pkg/dialects/ualberta/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/ualberta/enum_mav_odid_category_eu.go b/pkg/dialects/ualberta/enum_mav_odid_category_eu.go index 841928d70..484df117b 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_category_eu.go +++ b/pkg/dialects/ualberta/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/ualberta/enum_mav_odid_class_eu.go b/pkg/dialects/ualberta/enum_mav_odid_class_eu.go index 4d9daefd9..b8f062467 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_class_eu.go +++ b/pkg/dialects/ualberta/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/ualberta/enum_mav_odid_classification_type.go b/pkg/dialects/ualberta/enum_mav_odid_classification_type.go index 576a19265..dbc5939dc 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_classification_type.go +++ b/pkg/dialects/ualberta/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/ualberta/enum_mav_odid_desc_type.go b/pkg/dialects/ualberta/enum_mav_odid_desc_type.go index e50251bab..017b6f1c8 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_desc_type.go +++ b/pkg/dialects/ualberta/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/ualberta/enum_mav_odid_height_ref.go b/pkg/dialects/ualberta/enum_mav_odid_height_ref.go index baf80e22a..074897e69 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_height_ref.go +++ b/pkg/dialects/ualberta/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/ualberta/enum_mav_odid_hor_acc.go b/pkg/dialects/ualberta/enum_mav_odid_hor_acc.go index 14bb65994..726f82f0d 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/ualberta/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/ualberta/enum_mav_odid_id_type.go b/pkg/dialects/ualberta/enum_mav_odid_id_type.go index c2fddc2ea..17fad9667 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_id_type.go +++ b/pkg/dialects/ualberta/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/ualberta/enum_mav_odid_operator_id_type.go b/pkg/dialects/ualberta/enum_mav_odid_operator_id_type.go index cde1e69b8..27505bd60 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/ualberta/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/ualberta/enum_mav_odid_operator_location_type.go b/pkg/dialects/ualberta/enum_mav_odid_operator_location_type.go index 7cea8d39d..d25e0c106 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/ualberta/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/ualberta/enum_mav_odid_speed_acc.go b/pkg/dialects/ualberta/enum_mav_odid_speed_acc.go index 601f0bea9..59e0fae62 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/ualberta/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/ualberta/enum_mav_odid_status.go b/pkg/dialects/ualberta/enum_mav_odid_status.go index 6bfebf51f..d100633d4 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_status.go +++ b/pkg/dialects/ualberta/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/ualberta/enum_mav_odid_time_acc.go b/pkg/dialects/ualberta/enum_mav_odid_time_acc.go index d50d035cf..0efcc97fa 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_time_acc.go +++ b/pkg/dialects/ualberta/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/ualberta/enum_mav_odid_ua_type.go b/pkg/dialects/ualberta/enum_mav_odid_ua_type.go index a6d6b8d36..84997e991 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_ua_type.go +++ b/pkg/dialects/ualberta/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/ualberta/enum_mav_odid_ver_acc.go b/pkg/dialects/ualberta/enum_mav_odid_ver_acc.go index 7097b7711..f1d4247f2 100644 --- a/pkg/dialects/ualberta/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/ualberta/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/ualberta/enum_mav_param_ext_type.go b/pkg/dialects/ualberta/enum_mav_param_ext_type.go index 863a25d84..2fd3c7679 100644 --- a/pkg/dialects/ualberta/enum_mav_param_ext_type.go +++ b/pkg/dialects/ualberta/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/ualberta/enum_mav_param_type.go b/pkg/dialects/ualberta/enum_mav_param_type.go index 19a4b20cb..43b826bc8 100644 --- a/pkg/dialects/ualberta/enum_mav_param_type.go +++ b/pkg/dialects/ualberta/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/ualberta/enum_mav_power_status.go b/pkg/dialects/ualberta/enum_mav_power_status.go index 4e0edbb38..8042832c9 100644 --- a/pkg/dialects/ualberta/enum_mav_power_status.go +++ b/pkg/dialects/ualberta/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/ualberta/enum_mav_protocol_capability.go b/pkg/dialects/ualberta/enum_mav_protocol_capability.go index b019d2241..fdfa6ae56 100644 --- a/pkg/dialects/ualberta/enum_mav_protocol_capability.go +++ b/pkg/dialects/ualberta/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/ualberta/enum_mav_result.go b/pkg/dialects/ualberta/enum_mav_result.go index 471f46f5b..7e524bddb 100644 --- a/pkg/dialects/ualberta/enum_mav_result.go +++ b/pkg/dialects/ualberta/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/ualberta/enum_mav_roi.go b/pkg/dialects/ualberta/enum_mav_roi.go index 6e60f5f82..7bb5ec112 100644 --- a/pkg/dialects/ualberta/enum_mav_roi.go +++ b/pkg/dialects/ualberta/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/ualberta/enum_mav_sensor_orientation.go b/pkg/dialects/ualberta/enum_mav_sensor_orientation.go index 80386fc73..5d9b838ec 100644 --- a/pkg/dialects/ualberta/enum_mav_sensor_orientation.go +++ b/pkg/dialects/ualberta/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/ualberta/enum_mav_severity.go b/pkg/dialects/ualberta/enum_mav_severity.go index b66cd4bf4..4ef5bbcb8 100644 --- a/pkg/dialects/ualberta/enum_mav_severity.go +++ b/pkg/dialects/ualberta/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/ualberta/enum_mav_state.go b/pkg/dialects/ualberta/enum_mav_state.go index fd7ed643e..be3e1307b 100644 --- a/pkg/dialects/ualberta/enum_mav_state.go +++ b/pkg/dialects/ualberta/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/ualberta/enum_mav_sys_status_sensor.go b/pkg/dialects/ualberta/enum_mav_sys_status_sensor.go index 24314a73c..02c70ecd8 100644 --- a/pkg/dialects/ualberta/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/ualberta/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/ualberta/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/ualberta/enum_mav_sys_status_sensor_extended.go index 725a9827b..49c97c8a0 100644 --- a/pkg/dialects/ualberta/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/ualberta/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/ualberta/enum_mav_tunnel_payload_type.go b/pkg/dialects/ualberta/enum_mav_tunnel_payload_type.go index 6d29aefa6..aac407ff9 100644 --- a/pkg/dialects/ualberta/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/ualberta/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/ualberta/enum_mav_type.go b/pkg/dialects/ualberta/enum_mav_type.go index f6623fac5..b1c50d435 100644 --- a/pkg/dialects/ualberta/enum_mav_type.go +++ b/pkg/dialects/ualberta/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/ualberta/enum_mav_vtol_state.go b/pkg/dialects/ualberta/enum_mav_vtol_state.go index a4fd97e90..fac885e27 100644 --- a/pkg/dialects/ualberta/enum_mav_vtol_state.go +++ b/pkg/dialects/ualberta/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/ualberta/enum_mav_winch_status_flag.go b/pkg/dialects/ualberta/enum_mav_winch_status_flag.go index 2b34a2024..44c21f8fb 100644 --- a/pkg/dialects/ualberta/enum_mav_winch_status_flag.go +++ b/pkg/dialects/ualberta/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/ualberta/enum_mavlink_data_stream_type.go b/pkg/dialects/ualberta/enum_mavlink_data_stream_type.go index 0e6702982..b51eaba86 100644 --- a/pkg/dialects/ualberta/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/ualberta/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/ualberta/enum_motor_test_order.go b/pkg/dialects/ualberta/enum_motor_test_order.go index 877853862..4ee4a0ade 100644 --- a/pkg/dialects/ualberta/enum_motor_test_order.go +++ b/pkg/dialects/ualberta/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/ualberta/enum_motor_test_throttle_type.go b/pkg/dialects/ualberta/enum_motor_test_throttle_type.go index 5ad38aeba..af8a65f93 100644 --- a/pkg/dialects/ualberta/enum_motor_test_throttle_type.go +++ b/pkg/dialects/ualberta/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/ualberta/enum_nav_vtol_land_options.go b/pkg/dialects/ualberta/enum_nav_vtol_land_options.go index 31da5b0a9..610bf222f 100644 --- a/pkg/dialects/ualberta/enum_nav_vtol_land_options.go +++ b/pkg/dialects/ualberta/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/ualberta/enum_orbit_yaw_behaviour.go b/pkg/dialects/ualberta/enum_orbit_yaw_behaviour.go index 950134ac1..07bc1e1a2 100644 --- a/pkg/dialects/ualberta/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/ualberta/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/ualberta/enum_parachute_action.go b/pkg/dialects/ualberta/enum_parachute_action.go index cc22385ed..f3c1aa230 100644 --- a/pkg/dialects/ualberta/enum_parachute_action.go +++ b/pkg/dialects/ualberta/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/ualberta/enum_param_ack.go b/pkg/dialects/ualberta/enum_param_ack.go index 676f328a1..2b0398da2 100644 --- a/pkg/dialects/ualberta/enum_param_ack.go +++ b/pkg/dialects/ualberta/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/ualberta/enum_position_target_typemask.go b/pkg/dialects/ualberta/enum_position_target_typemask.go index 0ac8df54a..3c823329b 100644 --- a/pkg/dialects/ualberta/enum_position_target_typemask.go +++ b/pkg/dialects/ualberta/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/ualberta/enum_precision_land_mode.go b/pkg/dialects/ualberta/enum_precision_land_mode.go index 9505bfbd4..fb52f30b4 100644 --- a/pkg/dialects/ualberta/enum_precision_land_mode.go +++ b/pkg/dialects/ualberta/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/ualberta/enum_rc_type.go b/pkg/dialects/ualberta/enum_rc_type.go index 67b1a7d6f..2d5f9cda2 100644 --- a/pkg/dialects/ualberta/enum_rc_type.go +++ b/pkg/dialects/ualberta/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/ualberta/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/ualberta/enum_rtk_baseline_coordinate_system.go index ea42d7a03..04f3a0c5c 100644 --- a/pkg/dialects/ualberta/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/ualberta/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/ualberta/enum_serial_control_dev.go b/pkg/dialects/ualberta/enum_serial_control_dev.go index 76fbf2f71..f4a0262c9 100644 --- a/pkg/dialects/ualberta/enum_serial_control_dev.go +++ b/pkg/dialects/ualberta/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/ualberta/enum_serial_control_flag.go b/pkg/dialects/ualberta/enum_serial_control_flag.go index 08799d97b..be71df57d 100644 --- a/pkg/dialects/ualberta/enum_serial_control_flag.go +++ b/pkg/dialects/ualberta/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/ualberta/enum_set_focus_type.go b/pkg/dialects/ualberta/enum_set_focus_type.go index 680717273..24b22daa6 100644 --- a/pkg/dialects/ualberta/enum_set_focus_type.go +++ b/pkg/dialects/ualberta/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/ualberta/enum_storage_status.go b/pkg/dialects/ualberta/enum_storage_status.go index d20997818..b984d2f32 100644 --- a/pkg/dialects/ualberta/enum_storage_status.go +++ b/pkg/dialects/ualberta/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/ualberta/enum_storage_type.go b/pkg/dialects/ualberta/enum_storage_type.go index 4e8633b05..45b5c7394 100644 --- a/pkg/dialects/ualberta/enum_storage_type.go +++ b/pkg/dialects/ualberta/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/ualberta/enum_storage_usage_flag.go b/pkg/dialects/ualberta/enum_storage_usage_flag.go index b71b7ff18..f612dda83 100644 --- a/pkg/dialects/ualberta/enum_storage_usage_flag.go +++ b/pkg/dialects/ualberta/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/ualberta/enum_tune_format.go b/pkg/dialects/ualberta/enum_tune_format.go index 3584e8139..211ace2dc 100644 --- a/pkg/dialects/ualberta/enum_tune_format.go +++ b/pkg/dialects/ualberta/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/ualberta/enum_ualberta_autopilot_mode.go b/pkg/dialects/ualberta/enum_ualberta_autopilot_mode.go index c0b54f021..e789bfab0 100644 --- a/pkg/dialects/ualberta/enum_ualberta_autopilot_mode.go +++ b/pkg/dialects/ualberta/enum_ualberta_autopilot_mode.go @@ -7,7 +7,7 @@ import ( ) // Available autopilot modes for ualberta uav -type UALBERTA_AUTOPILOT_MODE int +type UALBERTA_AUTOPILOT_MODE uint32 const ( // Raw input pulse widts sent to output diff --git a/pkg/dialects/ualberta/enum_ualberta_nav_mode.go b/pkg/dialects/ualberta/enum_ualberta_nav_mode.go index 70f90922b..81ef1dae1 100644 --- a/pkg/dialects/ualberta/enum_ualberta_nav_mode.go +++ b/pkg/dialects/ualberta/enum_ualberta_nav_mode.go @@ -7,7 +7,7 @@ import ( ) // Navigation filter mode -type UALBERTA_NAV_MODE int +type UALBERTA_NAV_MODE uint32 const ( NAV_AHRS_INIT UALBERTA_NAV_MODE = 1 diff --git a/pkg/dialects/ualberta/enum_ualberta_pilot_mode.go b/pkg/dialects/ualberta/enum_ualberta_pilot_mode.go index 095426883..4adb07571 100644 --- a/pkg/dialects/ualberta/enum_ualberta_pilot_mode.go +++ b/pkg/dialects/ualberta/enum_ualberta_pilot_mode.go @@ -7,7 +7,7 @@ import ( ) // Mode currently commanded by pilot -type UALBERTA_PILOT_MODE int +type UALBERTA_PILOT_MODE uint32 const ( // sdf diff --git a/pkg/dialects/ualberta/enum_uavcan_node_health.go b/pkg/dialects/ualberta/enum_uavcan_node_health.go index cfc29d472..20e4b8eab 100644 --- a/pkg/dialects/ualberta/enum_uavcan_node_health.go +++ b/pkg/dialects/ualberta/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/ualberta/enum_uavcan_node_mode.go b/pkg/dialects/ualberta/enum_uavcan_node_mode.go index eb35f237a..dadb3e4ca 100644 --- a/pkg/dialects/ualberta/enum_uavcan_node_mode.go +++ b/pkg/dialects/ualberta/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/ualberta/enum_utm_data_avail_flags.go b/pkg/dialects/ualberta/enum_utm_data_avail_flags.go index 98dca31a4..d23565254 100644 --- a/pkg/dialects/ualberta/enum_utm_data_avail_flags.go +++ b/pkg/dialects/ualberta/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/ualberta/enum_utm_flight_state.go b/pkg/dialects/ualberta/enum_utm_flight_state.go index bbf140e87..08c68a71c 100644 --- a/pkg/dialects/ualberta/enum_utm_flight_state.go +++ b/pkg/dialects/ualberta/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/ualberta/enum_video_stream_status_flags.go b/pkg/dialects/ualberta/enum_video_stream_status_flags.go index 505f01851..8dab023b9 100644 --- a/pkg/dialects/ualberta/enum_video_stream_status_flags.go +++ b/pkg/dialects/ualberta/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/ualberta/enum_video_stream_type.go b/pkg/dialects/ualberta/enum_video_stream_type.go index 39b70010b..694b39e11 100644 --- a/pkg/dialects/ualberta/enum_video_stream_type.go +++ b/pkg/dialects/ualberta/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/ualberta/enum_vtol_transition_heading.go b/pkg/dialects/ualberta/enum_vtol_transition_heading.go index fa154908f..4c0a51900 100644 --- a/pkg/dialects/ualberta/enum_vtol_transition_heading.go +++ b/pkg/dialects/ualberta/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/ualberta/enum_wifi_config_ap_mode.go b/pkg/dialects/ualberta/enum_wifi_config_ap_mode.go index f25488f28..651ee0e00 100644 --- a/pkg/dialects/ualberta/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/ualberta/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/ualberta/enum_wifi_config_ap_response.go b/pkg/dialects/ualberta/enum_wifi_config_ap_response.go index 5663ffe8e..928053e6f 100644 --- a/pkg/dialects/ualberta/enum_wifi_config_ap_response.go +++ b/pkg/dialects/ualberta/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/ualberta/enum_winch_actions.go b/pkg/dialects/ualberta/enum_winch_actions.go index 5ff42fac4..4243e8aff 100644 --- a/pkg/dialects/ualberta/enum_winch_actions.go +++ b/pkg/dialects/ualberta/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/dialects/uavionix/enum_actuator_configuration.go b/pkg/dialects/uavionix/enum_actuator_configuration.go index 84414681e..de86e0d7d 100644 --- a/pkg/dialects/uavionix/enum_actuator_configuration.go +++ b/pkg/dialects/uavionix/enum_actuator_configuration.go @@ -7,7 +7,7 @@ import ( ) // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands. -type ACTUATOR_CONFIGURATION int +type ACTUATOR_CONFIGURATION uint32 const ( // Do nothing. diff --git a/pkg/dialects/uavionix/enum_actuator_output_function.go b/pkg/dialects/uavionix/enum_actuator_output_function.go index ced9313eb..d438f3f4b 100644 --- a/pkg/dialects/uavionix/enum_actuator_output_function.go +++ b/pkg/dialects/uavionix/enum_actuator_output_function.go @@ -7,7 +7,7 @@ import ( ) // Actuator output function. Values greater or equal to 1000 are autopilot-specific. -type ACTUATOR_OUTPUT_FUNCTION int +type ACTUATOR_OUTPUT_FUNCTION uint32 const ( // No function (disabled). diff --git a/pkg/dialects/uavionix/enum_adsb_altitude_type.go b/pkg/dialects/uavionix/enum_adsb_altitude_type.go index 1e59b98c7..3ac3e4069 100644 --- a/pkg/dialects/uavionix/enum_adsb_altitude_type.go +++ b/pkg/dialects/uavionix/enum_adsb_altitude_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of the ADSB altimeter types -type ADSB_ALTITUDE_TYPE int +type ADSB_ALTITUDE_TYPE uint32 const ( // Altitude reported from a Baro source using QNH reference diff --git a/pkg/dialects/uavionix/enum_adsb_emitter_type.go b/pkg/dialects/uavionix/enum_adsb_emitter_type.go index 589e69101..f36f8af80 100644 --- a/pkg/dialects/uavionix/enum_adsb_emitter_type.go +++ b/pkg/dialects/uavionix/enum_adsb_emitter_type.go @@ -7,7 +7,7 @@ import ( ) // ADSB classification for the type of vehicle emitting the transponder signal -type ADSB_EMITTER_TYPE int +type ADSB_EMITTER_TYPE uint32 const ( ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0 diff --git a/pkg/dialects/uavionix/enum_adsb_flags.go b/pkg/dialects/uavionix/enum_adsb_flags.go index 531c2a318..915c7097c 100644 --- a/pkg/dialects/uavionix/enum_adsb_flags.go +++ b/pkg/dialects/uavionix/enum_adsb_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags indicate status such as data validity of each data source. Set = data valid -type ADSB_FLAGS int +type ADSB_FLAGS uint32 const ( ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1 diff --git a/pkg/dialects/uavionix/enum_ais_flags.go b/pkg/dialects/uavionix/enum_ais_flags.go index b497ff723..21817c4c2 100644 --- a/pkg/dialects/uavionix/enum_ais_flags.go +++ b/pkg/dialects/uavionix/enum_ais_flags.go @@ -7,7 +7,7 @@ import ( ) // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid. -type AIS_FLAGS int +type AIS_FLAGS uint32 const ( // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m. diff --git a/pkg/dialects/uavionix/enum_ais_nav_status.go b/pkg/dialects/uavionix/enum_ais_nav_status.go index 045e1d911..57aa5fd86 100644 --- a/pkg/dialects/uavionix/enum_ais_nav_status.go +++ b/pkg/dialects/uavionix/enum_ais_nav_status.go @@ -7,7 +7,7 @@ import ( ) // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_NAV_STATUS int +type AIS_NAV_STATUS uint32 const ( // Under way using engine. diff --git a/pkg/dialects/uavionix/enum_ais_type.go b/pkg/dialects/uavionix/enum_ais_type.go index d19e34145..efbc9d5c5 100644 --- a/pkg/dialects/uavionix/enum_ais_type.go +++ b/pkg/dialects/uavionix/enum_ais_type.go @@ -7,7 +7,7 @@ import ( ) // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html -type AIS_TYPE int +type AIS_TYPE uint32 const ( // Not available (default). diff --git a/pkg/dialects/uavionix/enum_attitude_target_typemask.go b/pkg/dialects/uavionix/enum_attitude_target_typemask.go index f76a2d226..84c5dc158 100644 --- a/pkg/dialects/uavionix/enum_attitude_target_typemask.go +++ b/pkg/dialects/uavionix/enum_attitude_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored. -type ATTITUDE_TARGET_TYPEMASK int +type ATTITUDE_TARGET_TYPEMASK uint32 const ( // Ignore body roll rate diff --git a/pkg/dialects/uavionix/enum_autotune_axis.go b/pkg/dialects/uavionix/enum_autotune_axis.go index da41f39b4..b2f8d7ee0 100644 --- a/pkg/dialects/uavionix/enum_autotune_axis.go +++ b/pkg/dialects/uavionix/enum_autotune_axis.go @@ -7,7 +7,7 @@ import ( ) // Enable axes that will be tuned via autotuning. Used in MAV_CMD_DO_AUTOTUNE_ENABLE. -type AUTOTUNE_AXIS int +type AUTOTUNE_AXIS uint32 const ( // Flight stack tunes axis according to its default settings. diff --git a/pkg/dialects/uavionix/enum_camera_cap_flags.go b/pkg/dialects/uavionix/enum_camera_cap_flags.go index f4728d060..1ef9f0641 100644 --- a/pkg/dialects/uavionix/enum_camera_cap_flags.go +++ b/pkg/dialects/uavionix/enum_camera_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera capability flags (Bitmap) -type CAMERA_CAP_FLAGS int +type CAMERA_CAP_FLAGS uint32 const ( // Camera is able to record video diff --git a/pkg/dialects/uavionix/enum_camera_mode.go b/pkg/dialects/uavionix/enum_camera_mode.go index 040f1e0fa..0b13cc733 100644 --- a/pkg/dialects/uavionix/enum_camera_mode.go +++ b/pkg/dialects/uavionix/enum_camera_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera Modes. -type CAMERA_MODE int +type CAMERA_MODE uint32 const ( // Camera is in image/photo capture mode. diff --git a/pkg/dialects/uavionix/enum_camera_tracking_mode.go b/pkg/dialects/uavionix/enum_camera_tracking_mode.go index 4962bb3ba..ced8924c3 100644 --- a/pkg/dialects/uavionix/enum_camera_tracking_mode.go +++ b/pkg/dialects/uavionix/enum_camera_tracking_mode.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking modes -type CAMERA_TRACKING_MODE int +type CAMERA_TRACKING_MODE uint32 const ( // Not tracking diff --git a/pkg/dialects/uavionix/enum_camera_tracking_status_flags.go b/pkg/dialects/uavionix/enum_camera_tracking_status_flags.go index c2c424199..d24eb806d 100644 --- a/pkg/dialects/uavionix/enum_camera_tracking_status_flags.go +++ b/pkg/dialects/uavionix/enum_camera_tracking_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking status flags -type CAMERA_TRACKING_STATUS_FLAGS int +type CAMERA_TRACKING_STATUS_FLAGS uint32 const ( // Camera is not tracking diff --git a/pkg/dialects/uavionix/enum_camera_tracking_target_data.go b/pkg/dialects/uavionix/enum_camera_tracking_target_data.go index 83f1821dc..7d7a96706 100644 --- a/pkg/dialects/uavionix/enum_camera_tracking_target_data.go +++ b/pkg/dialects/uavionix/enum_camera_tracking_target_data.go @@ -7,7 +7,7 @@ import ( ) // Camera tracking target data (shows where tracked target is within image) -type CAMERA_TRACKING_TARGET_DATA int +type CAMERA_TRACKING_TARGET_DATA uint32 const ( // No target data diff --git a/pkg/dialects/uavionix/enum_camera_zoom_type.go b/pkg/dialects/uavionix/enum_camera_zoom_type.go index 27a8f7d2c..f62c89cdd 100644 --- a/pkg/dialects/uavionix/enum_camera_zoom_type.go +++ b/pkg/dialects/uavionix/enum_camera_zoom_type.go @@ -7,7 +7,7 @@ import ( ) // Zoom types for MAV_CMD_SET_CAMERA_ZOOM -type CAMERA_ZOOM_TYPE int +type CAMERA_ZOOM_TYPE uint32 const ( // Zoom one step increment (-1 for wide, 1 for tele) diff --git a/pkg/dialects/uavionix/enum_cellular_config_response.go b/pkg/dialects/uavionix/enum_cellular_config_response.go index 1978f2a96..efcb039e9 100644 --- a/pkg/dialects/uavionix/enum_cellular_config_response.go +++ b/pkg/dialects/uavionix/enum_cellular_config_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a CELLULAR_CONFIG message. -type CELLULAR_CONFIG_RESPONSE int +type CELLULAR_CONFIG_RESPONSE uint32 const ( // Changes accepted. diff --git a/pkg/dialects/uavionix/enum_cellular_network_failed_reason.go b/pkg/dialects/uavionix/enum_cellular_network_failed_reason.go index f7811ba4d..74b510f67 100644 --- a/pkg/dialects/uavionix/enum_cellular_network_failed_reason.go +++ b/pkg/dialects/uavionix/enum_cellular_network_failed_reason.go @@ -7,7 +7,7 @@ import ( ) // These flags are used to diagnose the failure state of CELLULAR_STATUS -type CELLULAR_NETWORK_FAILED_REASON int +type CELLULAR_NETWORK_FAILED_REASON uint32 const ( // No error diff --git a/pkg/dialects/uavionix/enum_cellular_network_radio_type.go b/pkg/dialects/uavionix/enum_cellular_network_radio_type.go index 8214097bb..0be9dd5dd 100644 --- a/pkg/dialects/uavionix/enum_cellular_network_radio_type.go +++ b/pkg/dialects/uavionix/enum_cellular_network_radio_type.go @@ -7,7 +7,7 @@ import ( ) // Cellular network radio type -type CELLULAR_NETWORK_RADIO_TYPE int +type CELLULAR_NETWORK_RADIO_TYPE uint32 const ( CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0 diff --git a/pkg/dialects/uavionix/enum_cellular_status_flag.go b/pkg/dialects/uavionix/enum_cellular_status_flag.go index eba3c2678..dc12031d3 100644 --- a/pkg/dialects/uavionix/enum_cellular_status_flag.go +++ b/pkg/dialects/uavionix/enum_cellular_status_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the cellular network status -type CELLULAR_STATUS_FLAG int +type CELLULAR_STATUS_FLAG uint32 const ( // State unknown or not reportable. diff --git a/pkg/dialects/uavionix/enum_comp_metadata_type.go b/pkg/dialects/uavionix/enum_comp_metadata_type.go index dae00a0aa..8f8865983 100644 --- a/pkg/dialects/uavionix/enum_comp_metadata_type.go +++ b/pkg/dialects/uavionix/enum_comp_metadata_type.go @@ -7,7 +7,7 @@ import ( ) // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_INFORMATION to provide information about supported metadata types. The types are not used directly in MAVLink messages. -type COMP_METADATA_TYPE int +type COMP_METADATA_TYPE uint32 const ( // General information about the component. General metadata includes information about other COMP_METADATA_TYPEs supported by the component. This type must be supported and must be downloadable from vehicle. diff --git a/pkg/dialects/uavionix/enum_esc_connection_type.go b/pkg/dialects/uavionix/enum_esc_connection_type.go index 17e13716b..d54c9d8b6 100644 --- a/pkg/dialects/uavionix/enum_esc_connection_type.go +++ b/pkg/dialects/uavionix/enum_esc_connection_type.go @@ -7,7 +7,7 @@ import ( ) // Indicates the ESC connection type. -type ESC_CONNECTION_TYPE int +type ESC_CONNECTION_TYPE uint32 const ( // Traditional PPM ESC. diff --git a/pkg/dialects/uavionix/enum_esc_failure_flags.go b/pkg/dialects/uavionix/enum_esc_failure_flags.go index 119a1f4df..c0e29a639 100644 --- a/pkg/dialects/uavionix/enum_esc_failure_flags.go +++ b/pkg/dialects/uavionix/enum_esc_failure_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags to report ESC failures. -type ESC_FAILURE_FLAGS int +type ESC_FAILURE_FLAGS uint32 const ( // No ESC failure. diff --git a/pkg/dialects/uavionix/enum_estimator_status_flags.go b/pkg/dialects/uavionix/enum_estimator_status_flags.go index b14d23616..519fc8aa4 100644 --- a/pkg/dialects/uavionix/enum_estimator_status_flags.go +++ b/pkg/dialects/uavionix/enum_estimator_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in ESTIMATOR_STATUS message -type ESTIMATOR_STATUS_FLAGS int +type ESTIMATOR_STATUS_FLAGS uint32 const ( // True if the attitude estimate is good diff --git a/pkg/dialects/uavionix/enum_failure_type.go b/pkg/dialects/uavionix/enum_failure_type.go index 80eba352d..9e8b208fd 100644 --- a/pkg/dialects/uavionix/enum_failure_type.go +++ b/pkg/dialects/uavionix/enum_failure_type.go @@ -7,7 +7,7 @@ import ( ) // List of possible failure type to inject. -type FAILURE_TYPE int +type FAILURE_TYPE uint32 const ( // No failure injected, used to reset a previous failure. diff --git a/pkg/dialects/uavionix/enum_failure_unit.go b/pkg/dialects/uavionix/enum_failure_unit.go index ed5deaf5f..1a73a5ef4 100644 --- a/pkg/dialects/uavionix/enum_failure_unit.go +++ b/pkg/dialects/uavionix/enum_failure_unit.go @@ -7,7 +7,7 @@ import ( ) // List of possible units where failures can be injected. -type FAILURE_UNIT int +type FAILURE_UNIT uint32 const ( FAILURE_UNIT_SENSOR_GYRO FAILURE_UNIT = 0 diff --git a/pkg/dialects/uavionix/enum_fence_action.go b/pkg/dialects/uavionix/enum_fence_action.go index 5041e91a1..eab92ae21 100644 --- a/pkg/dialects/uavionix/enum_fence_action.go +++ b/pkg/dialects/uavionix/enum_fence_action.go @@ -7,7 +7,7 @@ import ( ) // Actions following geofence breach. -type FENCE_ACTION int +type FENCE_ACTION uint32 const ( // Disable fenced mode. If used in a plan this would mean the next fence is disabled. diff --git a/pkg/dialects/uavionix/enum_fence_breach.go b/pkg/dialects/uavionix/enum_fence_breach.go index ae7af1768..89dfc7c4c 100644 --- a/pkg/dialects/uavionix/enum_fence_breach.go +++ b/pkg/dialects/uavionix/enum_fence_breach.go @@ -6,7 +6,7 @@ import ( "errors" ) -type FENCE_BREACH int +type FENCE_BREACH uint32 const ( // No last fence breach diff --git a/pkg/dialects/uavionix/enum_fence_mitigate.go b/pkg/dialects/uavionix/enum_fence_mitigate.go index 51e833a1d..a5799cd29 100644 --- a/pkg/dialects/uavionix/enum_fence_mitigate.go +++ b/pkg/dialects/uavionix/enum_fence_mitigate.go @@ -7,7 +7,7 @@ import ( ) // Actions being taken to mitigate/prevent fence breach -type FENCE_MITIGATE int +type FENCE_MITIGATE uint32 const ( // Unknown diff --git a/pkg/dialects/uavionix/enum_firmware_version_type.go b/pkg/dialects/uavionix/enum_firmware_version_type.go index aa9d43458..63697dc73 100644 --- a/pkg/dialects/uavionix/enum_firmware_version_type.go +++ b/pkg/dialects/uavionix/enum_firmware_version_type.go @@ -7,7 +7,7 @@ import ( ) // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65. -type FIRMWARE_VERSION_TYPE int +type FIRMWARE_VERSION_TYPE uint32 const ( // development release diff --git a/pkg/dialects/uavionix/enum_gimbal_device_cap_flags.go b/pkg/dialects/uavionix/enum_gimbal_device_cap_flags.go index e92e41d66..1d202b953 100644 --- a/pkg/dialects/uavionix/enum_gimbal_device_cap_flags.go +++ b/pkg/dialects/uavionix/enum_gimbal_device_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) capability flags (bitmap) -type GIMBAL_DEVICE_CAP_FLAGS int +type GIMBAL_DEVICE_CAP_FLAGS uint32 const ( // Gimbal device supports a retracted position diff --git a/pkg/dialects/uavionix/enum_gimbal_device_error_flags.go b/pkg/dialects/uavionix/enum_gimbal_device_error_flags.go index b9efe1936..d487badcf 100644 --- a/pkg/dialects/uavionix/enum_gimbal_device_error_flags.go +++ b/pkg/dialects/uavionix/enum_gimbal_device_error_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal device (low level) error flags (bitmap, 0 means no error) -type GIMBAL_DEVICE_ERROR_FLAGS int +type GIMBAL_DEVICE_ERROR_FLAGS uint32 const ( // Gimbal device is limited by hardware roll limit. diff --git a/pkg/dialects/uavionix/enum_gimbal_device_flags.go b/pkg/dialects/uavionix/enum_gimbal_device_flags.go index d28cbf7b2..de6bdc4b1 100644 --- a/pkg/dialects/uavionix/enum_gimbal_device_flags.go +++ b/pkg/dialects/uavionix/enum_gimbal_device_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for gimbal device (lower level) operation. -type GIMBAL_DEVICE_FLAGS int +type GIMBAL_DEVICE_FLAGS uint32 const ( // Set to retracted safe position (no stabilization), takes presedence over all other flags. diff --git a/pkg/dialects/uavionix/enum_gimbal_manager_cap_flags.go b/pkg/dialects/uavionix/enum_gimbal_manager_cap_flags.go index 55c1730c0..3517abe64 100644 --- a/pkg/dialects/uavionix/enum_gimbal_manager_cap_flags.go +++ b/pkg/dialects/uavionix/enum_gimbal_manager_cap_flags.go @@ -7,7 +7,7 @@ import ( ) // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags. -type GIMBAL_MANAGER_CAP_FLAGS int +type GIMBAL_MANAGER_CAP_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT. diff --git a/pkg/dialects/uavionix/enum_gimbal_manager_flags.go b/pkg/dialects/uavionix/enum_gimbal_manager_flags.go index 2f711a12a..c5a6fb707 100644 --- a/pkg/dialects/uavionix/enum_gimbal_manager_flags.go +++ b/pkg/dialects/uavionix/enum_gimbal_manager_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS. -type GIMBAL_MANAGER_FLAGS int +type GIMBAL_MANAGER_FLAGS uint32 const ( // Based on GIMBAL_DEVICE_FLAGS_RETRACT diff --git a/pkg/dialects/uavionix/enum_gps_fix_type.go b/pkg/dialects/uavionix/enum_gps_fix_type.go index 212331e7f..40868fc6b 100644 --- a/pkg/dialects/uavionix/enum_gps_fix_type.go +++ b/pkg/dialects/uavionix/enum_gps_fix_type.go @@ -7,7 +7,7 @@ import ( ) // Type of GPS fix -type GPS_FIX_TYPE int +type GPS_FIX_TYPE uint32 const ( // No GPS connected diff --git a/pkg/dialects/uavionix/enum_gps_input_ignore_flags.go b/pkg/dialects/uavionix/enum_gps_input_ignore_flags.go index e2b9dd8a1..e83082156 100644 --- a/pkg/dialects/uavionix/enum_gps_input_ignore_flags.go +++ b/pkg/dialects/uavionix/enum_gps_input_ignore_flags.go @@ -6,7 +6,7 @@ import ( "errors" ) -type GPS_INPUT_IGNORE_FLAGS int +type GPS_INPUT_IGNORE_FLAGS uint32 const ( // ignore altitude field diff --git a/pkg/dialects/uavionix/enum_gripper_actions.go b/pkg/dialects/uavionix/enum_gripper_actions.go index 5cab570ee..58fd6d0a1 100644 --- a/pkg/dialects/uavionix/enum_gripper_actions.go +++ b/pkg/dialects/uavionix/enum_gripper_actions.go @@ -7,7 +7,7 @@ import ( ) // Gripper actions. -type GRIPPER_ACTIONS int +type GRIPPER_ACTIONS uint32 const ( // Gripper release cargo. diff --git a/pkg/dialects/uavionix/enum_highres_imu_updated_flags.go b/pkg/dialects/uavionix/enum_highres_imu_updated_flags.go index c717345f0..e705019c3 100644 --- a/pkg/dialects/uavionix/enum_highres_imu_updated_flags.go +++ b/pkg/dialects/uavionix/enum_highres_imu_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message -type HIGHRES_IMU_UPDATED_FLAGS int +type HIGHRES_IMU_UPDATED_FLAGS uint32 const ( // None of the fields in HIGHRES_IMU have been updated diff --git a/pkg/dialects/uavionix/enum_hil_sensor_updated_flags.go b/pkg/dialects/uavionix/enum_hil_sensor_updated_flags.go index 32e488c1d..2266ce47e 100644 --- a/pkg/dialects/uavionix/enum_hil_sensor_updated_flags.go +++ b/pkg/dialects/uavionix/enum_hil_sensor_updated_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags in the HIL_SENSOR message indicate which fields have updated since the last message -type HIL_SENSOR_UPDATED_FLAGS int +type HIL_SENSOR_UPDATED_FLAGS uint32 const ( // None of the fields in HIL_SENSOR have been updated diff --git a/pkg/dialects/uavionix/enum_hl_failure_flag.go b/pkg/dialects/uavionix/enum_hl_failure_flag.go index b39348bda..2e954e541 100644 --- a/pkg/dialects/uavionix/enum_hl_failure_flag.go +++ b/pkg/dialects/uavionix/enum_hl_failure_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report failure cases over the high latency telemtry. -type HL_FAILURE_FLAG int +type HL_FAILURE_FLAG uint32 const ( // GPS failure. diff --git a/pkg/dialects/uavionix/enum_landing_target_type.go b/pkg/dialects/uavionix/enum_landing_target_type.go index 57b2b8008..31e710e7d 100644 --- a/pkg/dialects/uavionix/enum_landing_target_type.go +++ b/pkg/dialects/uavionix/enum_landing_target_type.go @@ -7,7 +7,7 @@ import ( ) // Type of landing target -type LANDING_TARGET_TYPE int +type LANDING_TARGET_TYPE uint32 const ( // Landing target signaled by light beacon (ex: IR-LOCK) diff --git a/pkg/dialects/uavionix/enum_mag_cal_status.go b/pkg/dialects/uavionix/enum_mag_cal_status.go index 71bed4be2..1c00e4400 100644 --- a/pkg/dialects/uavionix/enum_mag_cal_status.go +++ b/pkg/dialects/uavionix/enum_mag_cal_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAG_CAL_STATUS int +type MAG_CAL_STATUS uint32 const ( MAG_CAL_NOT_STARTED MAG_CAL_STATUS = 0 diff --git a/pkg/dialects/uavionix/enum_mav_arm_auth_denied_reason.go b/pkg/dialects/uavionix/enum_mav_arm_auth_denied_reason.go index b82277d05..43e481487 100644 --- a/pkg/dialects/uavionix/enum_mav_arm_auth_denied_reason.go +++ b/pkg/dialects/uavionix/enum_mav_arm_auth_denied_reason.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ARM_AUTH_DENIED_REASON int +type MAV_ARM_AUTH_DENIED_REASON uint32 const ( // Not a specific reason diff --git a/pkg/dialects/uavionix/enum_mav_autopilot.go b/pkg/dialects/uavionix/enum_mav_autopilot.go index d338ec968..80d0a74dd 100644 --- a/pkg/dialects/uavionix/enum_mav_autopilot.go +++ b/pkg/dialects/uavionix/enum_mav_autopilot.go @@ -7,7 +7,7 @@ import ( ) // Micro air vehicle / autopilot classes. This identifies the individual model. -type MAV_AUTOPILOT int +type MAV_AUTOPILOT uint32 const ( // Generic autopilot, full support for everything diff --git a/pkg/dialects/uavionix/enum_mav_battery_charge_state.go b/pkg/dialects/uavionix/enum_mav_battery_charge_state.go index 3ac23a09e..1e5978fa3 100644 --- a/pkg/dialects/uavionix/enum_mav_battery_charge_state.go +++ b/pkg/dialects/uavionix/enum_mav_battery_charge_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration for battery charge states. -type MAV_BATTERY_CHARGE_STATE int +type MAV_BATTERY_CHARGE_STATE uint32 const ( // Low battery state is not provided diff --git a/pkg/dialects/uavionix/enum_mav_battery_fault.go b/pkg/dialects/uavionix/enum_mav_battery_fault.go index 5400c50ba..7c893063b 100644 --- a/pkg/dialects/uavionix/enum_mav_battery_fault.go +++ b/pkg/dialects/uavionix/enum_mav_battery_fault.go @@ -7,7 +7,7 @@ import ( ) // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set. -type MAV_BATTERY_FAULT int +type MAV_BATTERY_FAULT uint32 const ( // Battery has deep discharged. diff --git a/pkg/dialects/uavionix/enum_mav_battery_function.go b/pkg/dialects/uavionix/enum_mav_battery_function.go index ab2e4d462..bf34247e6 100644 --- a/pkg/dialects/uavionix/enum_mav_battery_function.go +++ b/pkg/dialects/uavionix/enum_mav_battery_function.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery functions -type MAV_BATTERY_FUNCTION int +type MAV_BATTERY_FUNCTION uint32 const ( // Battery function is unknown diff --git a/pkg/dialects/uavionix/enum_mav_battery_mode.go b/pkg/dialects/uavionix/enum_mav_battery_mode.go index 5612c96c7..022c65348 100644 --- a/pkg/dialects/uavionix/enum_mav_battery_mode.go +++ b/pkg/dialects/uavionix/enum_mav_battery_mode.go @@ -7,7 +7,7 @@ import ( ) // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight. -type MAV_BATTERY_MODE int +type MAV_BATTERY_MODE uint32 const ( // Battery mode not supported/unknown battery mode/normal operation. diff --git a/pkg/dialects/uavionix/enum_mav_battery_type.go b/pkg/dialects/uavionix/enum_mav_battery_type.go index 5fa00283b..5a2642ec9 100644 --- a/pkg/dialects/uavionix/enum_mav_battery_type.go +++ b/pkg/dialects/uavionix/enum_mav_battery_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of battery types -type MAV_BATTERY_TYPE int +type MAV_BATTERY_TYPE uint32 const ( // Not specified. diff --git a/pkg/dialects/uavionix/enum_mav_cmd.go b/pkg/dialects/uavionix/enum_mav_cmd.go index 309f3d575..186559742 100644 --- a/pkg/dialects/uavionix/enum_mav_cmd.go +++ b/pkg/dialects/uavionix/enum_mav_cmd.go @@ -7,7 +7,7 @@ import ( ) // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries -type MAV_CMD int +type MAV_CMD uint32 const ( // Navigate to waypoint. diff --git a/pkg/dialects/uavionix/enum_mav_cmd_ack.go b/pkg/dialects/uavionix/enum_mav_cmd_ack.go index 074e1562f..bf8fd6a08 100644 --- a/pkg/dialects/uavionix/enum_mav_cmd_ack.go +++ b/pkg/dialects/uavionix/enum_mav_cmd_ack.go @@ -7,7 +7,7 @@ import ( ) // ACK / NACK / ERROR values as a result of MAV_CMDs and for mission item transmission. -type MAV_CMD_ACK int +type MAV_CMD_ACK uint32 const ( // Command / mission item is ok. diff --git a/pkg/dialects/uavionix/enum_mav_collision_action.go b/pkg/dialects/uavionix/enum_mav_collision_action.go index bebb2e308..76875e38f 100644 --- a/pkg/dialects/uavionix/enum_mav_collision_action.go +++ b/pkg/dialects/uavionix/enum_mav_collision_action.go @@ -7,7 +7,7 @@ import ( ) // Possible actions an aircraft can take to avoid a collision. -type MAV_COLLISION_ACTION int +type MAV_COLLISION_ACTION uint32 const ( // Ignore any potential collisions diff --git a/pkg/dialects/uavionix/enum_mav_collision_src.go b/pkg/dialects/uavionix/enum_mav_collision_src.go index 53a4a43f1..97ef23473 100644 --- a/pkg/dialects/uavionix/enum_mav_collision_src.go +++ b/pkg/dialects/uavionix/enum_mav_collision_src.go @@ -7,7 +7,7 @@ import ( ) // Source of information about this collision. -type MAV_COLLISION_SRC int +type MAV_COLLISION_SRC uint32 const ( // ID field references ADSB_VEHICLE packets diff --git a/pkg/dialects/uavionix/enum_mav_collision_threat_level.go b/pkg/dialects/uavionix/enum_mav_collision_threat_level.go index 51ad7e4ee..c663a23da 100644 --- a/pkg/dialects/uavionix/enum_mav_collision_threat_level.go +++ b/pkg/dialects/uavionix/enum_mav_collision_threat_level.go @@ -7,7 +7,7 @@ import ( ) // Aircraft-rated danger from this threat. -type MAV_COLLISION_THREAT_LEVEL int +type MAV_COLLISION_THREAT_LEVEL uint32 const ( // Not a threat diff --git a/pkg/dialects/uavionix/enum_mav_component.go b/pkg/dialects/uavionix/enum_mav_component.go index a899dfe69..9a56caecc 100644 --- a/pkg/dialects/uavionix/enum_mav_component.go +++ b/pkg/dialects/uavionix/enum_mav_component.go @@ -9,7 +9,7 @@ import ( // Component ids (values) for the different types and instances of onboard hardware/software that might make up a MAVLink system (autopilot, cameras, servos, GPS systems, avoidance systems etc.). // Components must use the appropriate ID in their source address when sending messages. Components can also use IDs to determine if they are the intended recipient of an incoming message. The MAV_COMP_ID_ALL value is used to indicate messages that must be processed by all components. // When creating new entries, components that can have multiple instances (e.g. cameras, servos etc.) should be allocated sequential values. An appropriate number of values should be left free after these components to allow the number of instances to be expanded. -type MAV_COMPONENT int +type MAV_COMPONENT uint32 const ( // Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message. diff --git a/pkg/dialects/uavionix/enum_mav_data_stream.go b/pkg/dialects/uavionix/enum_mav_data_stream.go index 394625420..59539cacf 100644 --- a/pkg/dialects/uavionix/enum_mav_data_stream.go +++ b/pkg/dialects/uavionix/enum_mav_data_stream.go @@ -9,7 +9,7 @@ import ( // A data stream is not a fixed set of messages, but rather a // recommendation to the autopilot software. Individual autopilots may or may not obey // the recommended messages. -type MAV_DATA_STREAM int +type MAV_DATA_STREAM uint32 const ( // Enable all data streams diff --git a/pkg/dialects/uavionix/enum_mav_distance_sensor.go b/pkg/dialects/uavionix/enum_mav_distance_sensor.go index c03bacef4..00b35f167 100644 --- a/pkg/dialects/uavionix/enum_mav_distance_sensor.go +++ b/pkg/dialects/uavionix/enum_mav_distance_sensor.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of distance sensor types -type MAV_DISTANCE_SENSOR int +type MAV_DISTANCE_SENSOR uint32 const ( // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units diff --git a/pkg/dialects/uavionix/enum_mav_do_reposition_flags.go b/pkg/dialects/uavionix/enum_mav_do_reposition_flags.go index a0648657d..672e6cdd5 100644 --- a/pkg/dialects/uavionix/enum_mav_do_reposition_flags.go +++ b/pkg/dialects/uavionix/enum_mav_do_reposition_flags.go @@ -7,7 +7,7 @@ import ( ) // Bitmap of options for the MAV_CMD_DO_REPOSITION -type MAV_DO_REPOSITION_FLAGS int +type MAV_DO_REPOSITION_FLAGS uint32 const ( // The aircraft should immediately transition into guided. This should not be set for follow me applications diff --git a/pkg/dialects/uavionix/enum_mav_estimator_type.go b/pkg/dialects/uavionix/enum_mav_estimator_type.go index 4ca1a73be..a335bffb0 100644 --- a/pkg/dialects/uavionix/enum_mav_estimator_type.go +++ b/pkg/dialects/uavionix/enum_mav_estimator_type.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of estimator types -type MAV_ESTIMATOR_TYPE int +type MAV_ESTIMATOR_TYPE uint32 const ( // Unknown type of the estimator. diff --git a/pkg/dialects/uavionix/enum_mav_event_current_sequence_flags.go b/pkg/dialects/uavionix/enum_mav_event_current_sequence_flags.go index ca588cc2a..6382d728d 100644 --- a/pkg/dialects/uavionix/enum_mav_event_current_sequence_flags.go +++ b/pkg/dialects/uavionix/enum_mav_event_current_sequence_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for CURRENT_EVENT_SEQUENCE. -type MAV_EVENT_CURRENT_SEQUENCE_FLAGS int +type MAV_EVENT_CURRENT_SEQUENCE_FLAGS uint32 const ( // A sequence reset has happened (e.g. vehicle reboot). diff --git a/pkg/dialects/uavionix/enum_mav_event_error_reason.go b/pkg/dialects/uavionix/enum_mav_event_error_reason.go index 5ba01ca42..a8288f475 100644 --- a/pkg/dialects/uavionix/enum_mav_event_error_reason.go +++ b/pkg/dialects/uavionix/enum_mav_event_error_reason.go @@ -7,7 +7,7 @@ import ( ) // Reason for an event error response. -type MAV_EVENT_ERROR_REASON int +type MAV_EVENT_ERROR_REASON uint32 const ( // The requested event is not available (anymore). diff --git a/pkg/dialects/uavionix/enum_mav_frame.go b/pkg/dialects/uavionix/enum_mav_frame.go index 74579a567..e8516d506 100644 --- a/pkg/dialects/uavionix/enum_mav_frame.go +++ b/pkg/dialects/uavionix/enum_mav_frame.go @@ -21,7 +21,7 @@ import ( // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames. // // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED). -type MAV_FRAME int +type MAV_FRAME uint32 const ( // Global (WGS84) coordinate frame + MSL altitude. First value / x: latitude, second value / y: longitude, third value / z: positive altitude over mean sea level (MSL). diff --git a/pkg/dialects/uavionix/enum_mav_generator_status_flag.go b/pkg/dialects/uavionix/enum_mav_generator_status_flag.go index 36f90c698..ca4f4d494 100644 --- a/pkg/dialects/uavionix/enum_mav_generator_status_flag.go +++ b/pkg/dialects/uavionix/enum_mav_generator_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly). -type MAV_GENERATOR_STATUS_FLAG int +type MAV_GENERATOR_STATUS_FLAG uint32 const ( // Generator is off. diff --git a/pkg/dialects/uavionix/enum_mav_goto.go b/pkg/dialects/uavionix/enum_mav_goto.go index 218327b44..20e2eff23 100644 --- a/pkg/dialects/uavionix/enum_mav_goto.go +++ b/pkg/dialects/uavionix/enum_mav_goto.go @@ -7,7 +7,7 @@ import ( ) // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution. -type MAV_GOTO int +type MAV_GOTO uint32 const ( // Hold at the current position. diff --git a/pkg/dialects/uavionix/enum_mav_landed_state.go b/pkg/dialects/uavionix/enum_mav_landed_state.go index 91a63bdf4..b5410200b 100644 --- a/pkg/dialects/uavionix/enum_mav_landed_state.go +++ b/pkg/dialects/uavionix/enum_mav_landed_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of landed detector states -type MAV_LANDED_STATE int +type MAV_LANDED_STATE uint32 const ( // MAV landed state is unknown diff --git a/pkg/dialects/uavionix/enum_mav_mission_result.go b/pkg/dialects/uavionix/enum_mav_mission_result.go index 110c2f077..a747612c8 100644 --- a/pkg/dialects/uavionix/enum_mav_mission_result.go +++ b/pkg/dialects/uavionix/enum_mav_mission_result.go @@ -7,7 +7,7 @@ import ( ) // Result of mission operation (in a MISSION_ACK message). -type MAV_MISSION_RESULT int +type MAV_MISSION_RESULT uint32 const ( // mission accepted OK diff --git a/pkg/dialects/uavionix/enum_mav_mission_type.go b/pkg/dialects/uavionix/enum_mav_mission_type.go index ca0ae1ba4..04d8391c9 100644 --- a/pkg/dialects/uavionix/enum_mav_mission_type.go +++ b/pkg/dialects/uavionix/enum_mav_mission_type.go @@ -7,7 +7,7 @@ import ( ) // Type of mission items being requested/sent in mission protocol. -type MAV_MISSION_TYPE int +type MAV_MISSION_TYPE uint32 const ( // Items are mission commands for main mission. diff --git a/pkg/dialects/uavionix/enum_mav_mode.go b/pkg/dialects/uavionix/enum_mav_mode.go index 3a31a79f8..1b7773cba 100644 --- a/pkg/dialects/uavionix/enum_mav_mode.go +++ b/pkg/dialects/uavionix/enum_mav_mode.go @@ -8,7 +8,7 @@ import ( // These defines are predefined OR-combined mode flags. There is no need to use values from this enum, but it // simplifies the use of the mode flags. Note that manual input is enabled in all modes as a safety override. -type MAV_MODE int +type MAV_MODE uint32 const ( // System is not ready to fly, booting, calibrating, etc. No flag is set. diff --git a/pkg/dialects/uavionix/enum_mav_mode_flag.go b/pkg/dialects/uavionix/enum_mav_mode_flag.go index db2e18c6f..2242f556a 100644 --- a/pkg/dialects/uavionix/enum_mav_mode_flag.go +++ b/pkg/dialects/uavionix/enum_mav_mode_flag.go @@ -7,7 +7,7 @@ import ( ) // These flags encode the MAV mode. -type MAV_MODE_FLAG int +type MAV_MODE_FLAG uint32 const ( // 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state. diff --git a/pkg/dialects/uavionix/enum_mav_mode_flag_decode_position.go b/pkg/dialects/uavionix/enum_mav_mode_flag_decode_position.go index 22c897c23..40b5c3339 100644 --- a/pkg/dialects/uavionix/enum_mav_mode_flag_decode_position.go +++ b/pkg/dialects/uavionix/enum_mav_mode_flag_decode_position.go @@ -7,7 +7,7 @@ import ( ) // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not. -type MAV_MODE_FLAG_DECODE_POSITION int +type MAV_MODE_FLAG_DECODE_POSITION uint32 const ( // First bit: 10000000 diff --git a/pkg/dialects/uavionix/enum_mav_mount_mode.go b/pkg/dialects/uavionix/enum_mav_mount_mode.go index 7bf028ddc..3373dc172 100644 --- a/pkg/dialects/uavionix/enum_mav_mount_mode.go +++ b/pkg/dialects/uavionix/enum_mav_mount_mode.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages. -type MAV_MOUNT_MODE int +type MAV_MOUNT_MODE uint32 const ( // Load and keep safe position (Roll,Pitch,Yaw) from permant memory and stop stabilization diff --git a/pkg/dialects/uavionix/enum_mav_odid_auth_type.go b/pkg/dialects/uavionix/enum_mav_odid_auth_type.go index c331740aa..5752fac49 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_auth_type.go +++ b/pkg/dialects/uavionix/enum_mav_odid_auth_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_AUTH_TYPE int +type MAV_ODID_AUTH_TYPE uint32 const ( // No authentication type is specified. diff --git a/pkg/dialects/uavionix/enum_mav_odid_category_eu.go b/pkg/dialects/uavionix/enum_mav_odid_category_eu.go index 9b427240d..7aab80c84 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_category_eu.go +++ b/pkg/dialects/uavionix/enum_mav_odid_category_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CATEGORY_EU int +type MAV_ODID_CATEGORY_EU uint32 const ( // The category for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/uavionix/enum_mav_odid_class_eu.go b/pkg/dialects/uavionix/enum_mav_odid_class_eu.go index 8c3fc5aa2..2dc08e43c 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_class_eu.go +++ b/pkg/dialects/uavionix/enum_mav_odid_class_eu.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASS_EU int +type MAV_ODID_CLASS_EU uint32 const ( // The class for the UA, according to the EU specification, is undeclared. diff --git a/pkg/dialects/uavionix/enum_mav_odid_classification_type.go b/pkg/dialects/uavionix/enum_mav_odid_classification_type.go index 763dec643..9a2bc2fae 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_classification_type.go +++ b/pkg/dialects/uavionix/enum_mav_odid_classification_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_CLASSIFICATION_TYPE int +type MAV_ODID_CLASSIFICATION_TYPE uint32 const ( // The classification type for the UA is undeclared. diff --git a/pkg/dialects/uavionix/enum_mav_odid_desc_type.go b/pkg/dialects/uavionix/enum_mav_odid_desc_type.go index 0fabdb5a0..b0b0fc1c2 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_desc_type.go +++ b/pkg/dialects/uavionix/enum_mav_odid_desc_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_DESC_TYPE int +type MAV_ODID_DESC_TYPE uint32 const ( // Free-form text description of the purpose of the flight. diff --git a/pkg/dialects/uavionix/enum_mav_odid_height_ref.go b/pkg/dialects/uavionix/enum_mav_odid_height_ref.go index 83a91da78..a00b91eee 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_height_ref.go +++ b/pkg/dialects/uavionix/enum_mav_odid_height_ref.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HEIGHT_REF int +type MAV_ODID_HEIGHT_REF uint32 const ( // The height field is relative to the take-off location. diff --git a/pkg/dialects/uavionix/enum_mav_odid_hor_acc.go b/pkg/dialects/uavionix/enum_mav_odid_hor_acc.go index 68e23bada..4b8f86e11 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_hor_acc.go +++ b/pkg/dialects/uavionix/enum_mav_odid_hor_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_HOR_ACC int +type MAV_ODID_HOR_ACC uint32 const ( // The horizontal accuracy is unknown. diff --git a/pkg/dialects/uavionix/enum_mav_odid_id_type.go b/pkg/dialects/uavionix/enum_mav_odid_id_type.go index 5982ac56b..5f5a7d03a 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_id_type.go +++ b/pkg/dialects/uavionix/enum_mav_odid_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_ID_TYPE int +type MAV_ODID_ID_TYPE uint32 const ( // No type defined. diff --git a/pkg/dialects/uavionix/enum_mav_odid_operator_id_type.go b/pkg/dialects/uavionix/enum_mav_odid_operator_id_type.go index 1542d8ab4..cd1833061 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_operator_id_type.go +++ b/pkg/dialects/uavionix/enum_mav_odid_operator_id_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_ID_TYPE int +type MAV_ODID_OPERATOR_ID_TYPE uint32 const ( // CAA (Civil Aviation Authority) registered operator ID. diff --git a/pkg/dialects/uavionix/enum_mav_odid_operator_location_type.go b/pkg/dialects/uavionix/enum_mav_odid_operator_location_type.go index 5bdd65e63..cb0509c7b 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_operator_location_type.go +++ b/pkg/dialects/uavionix/enum_mav_odid_operator_location_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_OPERATOR_LOCATION_TYPE int +type MAV_ODID_OPERATOR_LOCATION_TYPE uint32 const ( // The location of the operator is the same as the take-off location. diff --git a/pkg/dialects/uavionix/enum_mav_odid_speed_acc.go b/pkg/dialects/uavionix/enum_mav_odid_speed_acc.go index 51dc9e978..55d5d995a 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_speed_acc.go +++ b/pkg/dialects/uavionix/enum_mav_odid_speed_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_SPEED_ACC int +type MAV_ODID_SPEED_ACC uint32 const ( // The speed accuracy is unknown. diff --git a/pkg/dialects/uavionix/enum_mav_odid_status.go b/pkg/dialects/uavionix/enum_mav_odid_status.go index 6e81ac2e4..0cc896d61 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_status.go +++ b/pkg/dialects/uavionix/enum_mav_odid_status.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_STATUS int +type MAV_ODID_STATUS uint32 const ( // The status of the (UA) Unmanned Aircraft is undefined. diff --git a/pkg/dialects/uavionix/enum_mav_odid_time_acc.go b/pkg/dialects/uavionix/enum_mav_odid_time_acc.go index 42e64994d..239519169 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_time_acc.go +++ b/pkg/dialects/uavionix/enum_mav_odid_time_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_TIME_ACC int +type MAV_ODID_TIME_ACC uint32 const ( // The timestamp accuracy is unknown. diff --git a/pkg/dialects/uavionix/enum_mav_odid_ua_type.go b/pkg/dialects/uavionix/enum_mav_odid_ua_type.go index af48b0c47..07662598f 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_ua_type.go +++ b/pkg/dialects/uavionix/enum_mav_odid_ua_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_UA_TYPE int +type MAV_ODID_UA_TYPE uint32 const ( // No UA (Unmanned Aircraft) type defined. diff --git a/pkg/dialects/uavionix/enum_mav_odid_ver_acc.go b/pkg/dialects/uavionix/enum_mav_odid_ver_acc.go index 7d93a9e49..da548e3a9 100644 --- a/pkg/dialects/uavionix/enum_mav_odid_ver_acc.go +++ b/pkg/dialects/uavionix/enum_mav_odid_ver_acc.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_ODID_VER_ACC int +type MAV_ODID_VER_ACC uint32 const ( // The vertical accuracy is unknown. diff --git a/pkg/dialects/uavionix/enum_mav_param_ext_type.go b/pkg/dialects/uavionix/enum_mav_param_ext_type.go index c301158d4..c321adbff 100644 --- a/pkg/dialects/uavionix/enum_mav_param_ext_type.go +++ b/pkg/dialects/uavionix/enum_mav_param_ext_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink extended parameter. -type MAV_PARAM_EXT_TYPE int +type MAV_PARAM_EXT_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/uavionix/enum_mav_param_type.go b/pkg/dialects/uavionix/enum_mav_param_type.go index 0f2456e43..5ee3a5d48 100644 --- a/pkg/dialects/uavionix/enum_mav_param_type.go +++ b/pkg/dialects/uavionix/enum_mav_param_type.go @@ -7,7 +7,7 @@ import ( ) // Specifies the datatype of a MAVLink parameter. -type MAV_PARAM_TYPE int +type MAV_PARAM_TYPE uint32 const ( // 8-bit unsigned integer diff --git a/pkg/dialects/uavionix/enum_mav_power_status.go b/pkg/dialects/uavionix/enum_mav_power_status.go index 780ad698c..49790c4df 100644 --- a/pkg/dialects/uavionix/enum_mav_power_status.go +++ b/pkg/dialects/uavionix/enum_mav_power_status.go @@ -7,7 +7,7 @@ import ( ) // Power supply status flags (bitmask) -type MAV_POWER_STATUS int +type MAV_POWER_STATUS uint32 const ( // main brick power supply valid diff --git a/pkg/dialects/uavionix/enum_mav_protocol_capability.go b/pkg/dialects/uavionix/enum_mav_protocol_capability.go index 8bdb2098a..7ac56afbb 100644 --- a/pkg/dialects/uavionix/enum_mav_protocol_capability.go +++ b/pkg/dialects/uavionix/enum_mav_protocol_capability.go @@ -7,7 +7,7 @@ import ( ) // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability. -type MAV_PROTOCOL_CAPABILITY int +type MAV_PROTOCOL_CAPABILITY uint32 const ( // Autopilot supports the MISSION_ITEM float message type. diff --git a/pkg/dialects/uavionix/enum_mav_result.go b/pkg/dialects/uavionix/enum_mav_result.go index bd05baa47..dee249c02 100644 --- a/pkg/dialects/uavionix/enum_mav_result.go +++ b/pkg/dialects/uavionix/enum_mav_result.go @@ -7,7 +7,7 @@ import ( ) // Result from a MAVLink command (MAV_CMD) -type MAV_RESULT int +type MAV_RESULT uint32 const ( // Command is valid (is supported and has valid parameters), and was executed. diff --git a/pkg/dialects/uavionix/enum_mav_roi.go b/pkg/dialects/uavionix/enum_mav_roi.go index 863dbd8a4..23692e169 100644 --- a/pkg/dialects/uavionix/enum_mav_roi.go +++ b/pkg/dialects/uavionix/enum_mav_roi.go @@ -9,7 +9,7 @@ import ( // The ROI (region of interest) for the vehicle. This can be // be used by the vehicle for camera/vehicle attitude alignment (see // MAV_CMD_NAV_ROI). -type MAV_ROI int +type MAV_ROI uint32 const ( // No region of interest. diff --git a/pkg/dialects/uavionix/enum_mav_sensor_orientation.go b/pkg/dialects/uavionix/enum_mav_sensor_orientation.go index 46d27d823..bcc1c75c3 100644 --- a/pkg/dialects/uavionix/enum_mav_sensor_orientation.go +++ b/pkg/dialects/uavionix/enum_mav_sensor_orientation.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of sensor orientation, according to its rotations -type MAV_SENSOR_ORIENTATION int +type MAV_SENSOR_ORIENTATION uint32 const ( // Roll: 0, Pitch: 0, Yaw: 0 diff --git a/pkg/dialects/uavionix/enum_mav_severity.go b/pkg/dialects/uavionix/enum_mav_severity.go index 7e44d9747..813bb1e39 100644 --- a/pkg/dialects/uavionix/enum_mav_severity.go +++ b/pkg/dialects/uavionix/enum_mav_severity.go @@ -7,7 +7,7 @@ import ( ) // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/. -type MAV_SEVERITY int +type MAV_SEVERITY uint32 const ( // System is unusable. This is a "panic" condition. diff --git a/pkg/dialects/uavionix/enum_mav_state.go b/pkg/dialects/uavionix/enum_mav_state.go index 26d3c6a38..d8ff3b3f3 100644 --- a/pkg/dialects/uavionix/enum_mav_state.go +++ b/pkg/dialects/uavionix/enum_mav_state.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_STATE int +type MAV_STATE uint32 const ( // Uninitialized system, state is unknown. diff --git a/pkg/dialects/uavionix/enum_mav_sys_status_sensor.go b/pkg/dialects/uavionix/enum_mav_sys_status_sensor.go index f55a4cd69..0bdd43001 100644 --- a/pkg/dialects/uavionix/enum_mav_sys_status_sensor.go +++ b/pkg/dialects/uavionix/enum_mav_sys_status_sensor.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message. -type MAV_SYS_STATUS_SENSOR int +type MAV_SYS_STATUS_SENSOR uint32 const ( // 0x01 3D gyro diff --git a/pkg/dialects/uavionix/enum_mav_sys_status_sensor_extended.go b/pkg/dialects/uavionix/enum_mav_sys_status_sensor_extended.go index 8f538aa12..0809fc622 100644 --- a/pkg/dialects/uavionix/enum_mav_sys_status_sensor_extended.go +++ b/pkg/dialects/uavionix/enum_mav_sys_status_sensor_extended.go @@ -7,7 +7,7 @@ import ( ) // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields. -type MAV_SYS_STATUS_SENSOR_EXTENDED int +type MAV_SYS_STATUS_SENSOR_EXTENDED uint32 const ( // 0x01 Recovery system (parachute, balloon, retracts etc) diff --git a/pkg/dialects/uavionix/enum_mav_tunnel_payload_type.go b/pkg/dialects/uavionix/enum_mav_tunnel_payload_type.go index a86217d88..3961b5644 100644 --- a/pkg/dialects/uavionix/enum_mav_tunnel_payload_type.go +++ b/pkg/dialects/uavionix/enum_mav_tunnel_payload_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAV_TUNNEL_PAYLOAD_TYPE int +type MAV_TUNNEL_PAYLOAD_TYPE uint32 const ( // Encoding of payload unknown. diff --git a/pkg/dialects/uavionix/enum_mav_type.go b/pkg/dialects/uavionix/enum_mav_type.go index 94c165acf..d93408293 100644 --- a/pkg/dialects/uavionix/enum_mav_type.go +++ b/pkg/dialects/uavionix/enum_mav_type.go @@ -7,7 +7,7 @@ import ( ) // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA). -type MAV_TYPE int +type MAV_TYPE uint32 const ( // Generic micro air vehicle diff --git a/pkg/dialects/uavionix/enum_mav_vtol_state.go b/pkg/dialects/uavionix/enum_mav_vtol_state.go index 581781162..90df388b8 100644 --- a/pkg/dialects/uavionix/enum_mav_vtol_state.go +++ b/pkg/dialects/uavionix/enum_mav_vtol_state.go @@ -7,7 +7,7 @@ import ( ) // Enumeration of VTOL states -type MAV_VTOL_STATE int +type MAV_VTOL_STATE uint32 const ( // MAV is not configured as VTOL diff --git a/pkg/dialects/uavionix/enum_mav_winch_status_flag.go b/pkg/dialects/uavionix/enum_mav_winch_status_flag.go index 115ff8cc2..fd627508b 100644 --- a/pkg/dialects/uavionix/enum_mav_winch_status_flag.go +++ b/pkg/dialects/uavionix/enum_mav_winch_status_flag.go @@ -7,7 +7,7 @@ import ( ) // Winch status flags used in WINCH_STATUS -type MAV_WINCH_STATUS_FLAG int +type MAV_WINCH_STATUS_FLAG uint32 const ( // Winch is healthy diff --git a/pkg/dialects/uavionix/enum_mavlink_data_stream_type.go b/pkg/dialects/uavionix/enum_mavlink_data_stream_type.go index cde80aa3c..ecba24c34 100644 --- a/pkg/dialects/uavionix/enum_mavlink_data_stream_type.go +++ b/pkg/dialects/uavionix/enum_mavlink_data_stream_type.go @@ -6,7 +6,7 @@ import ( "errors" ) -type MAVLINK_DATA_STREAM_TYPE int +type MAVLINK_DATA_STREAM_TYPE uint32 const ( MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0 diff --git a/pkg/dialects/uavionix/enum_motor_test_order.go b/pkg/dialects/uavionix/enum_motor_test_order.go index 66dd08083..8a9af0ca2 100644 --- a/pkg/dialects/uavionix/enum_motor_test_order.go +++ b/pkg/dialects/uavionix/enum_motor_test_order.go @@ -7,7 +7,7 @@ import ( ) // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_ORDER int +type MOTOR_TEST_ORDER uint32 const ( // Default autopilot motor test method. diff --git a/pkg/dialects/uavionix/enum_motor_test_throttle_type.go b/pkg/dialects/uavionix/enum_motor_test_throttle_type.go index 877c43da1..6b0255b00 100644 --- a/pkg/dialects/uavionix/enum_motor_test_throttle_type.go +++ b/pkg/dialects/uavionix/enum_motor_test_throttle_type.go @@ -7,7 +7,7 @@ import ( ) // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST. -type MOTOR_TEST_THROTTLE_TYPE int +type MOTOR_TEST_THROTTLE_TYPE uint32 const ( // Throttle as a percentage (0 ~ 100) diff --git a/pkg/dialects/uavionix/enum_nav_vtol_land_options.go b/pkg/dialects/uavionix/enum_nav_vtol_land_options.go index 202829ede..6e951eb76 100644 --- a/pkg/dialects/uavionix/enum_nav_vtol_land_options.go +++ b/pkg/dialects/uavionix/enum_nav_vtol_land_options.go @@ -6,7 +6,7 @@ import ( "errors" ) -type NAV_VTOL_LAND_OPTIONS int +type NAV_VTOL_LAND_OPTIONS uint32 const ( // Default autopilot landing behaviour. diff --git a/pkg/dialects/uavionix/enum_orbit_yaw_behaviour.go b/pkg/dialects/uavionix/enum_orbit_yaw_behaviour.go index 4267886c9..5ed74eb01 100644 --- a/pkg/dialects/uavionix/enum_orbit_yaw_behaviour.go +++ b/pkg/dialects/uavionix/enum_orbit_yaw_behaviour.go @@ -7,7 +7,7 @@ import ( ) // Yaw behaviour during orbit flight. -type ORBIT_YAW_BEHAVIOUR int +type ORBIT_YAW_BEHAVIOUR uint32 const ( // Vehicle front points to the center (default). diff --git a/pkg/dialects/uavionix/enum_parachute_action.go b/pkg/dialects/uavionix/enum_parachute_action.go index d3d4ebef5..896e4389d 100644 --- a/pkg/dialects/uavionix/enum_parachute_action.go +++ b/pkg/dialects/uavionix/enum_parachute_action.go @@ -7,7 +7,7 @@ import ( ) // Parachute actions. Trigger release and enable/disable auto-release. -type PARACHUTE_ACTION int +type PARACHUTE_ACTION uint32 const ( // Disable auto-release of parachute (i.e. release triggered by crash detectors). diff --git a/pkg/dialects/uavionix/enum_param_ack.go b/pkg/dialects/uavionix/enum_param_ack.go index 589a6fa86..ed7885327 100644 --- a/pkg/dialects/uavionix/enum_param_ack.go +++ b/pkg/dialects/uavionix/enum_param_ack.go @@ -7,7 +7,7 @@ import ( ) // Result from PARAM_EXT_SET message (or a PARAM_SET within a transaction). -type PARAM_ACK int +type PARAM_ACK uint32 const ( // Parameter value ACCEPTED and SET diff --git a/pkg/dialects/uavionix/enum_position_target_typemask.go b/pkg/dialects/uavionix/enum_position_target_typemask.go index 3fe3f7bce..6922553a0 100644 --- a/pkg/dialects/uavionix/enum_position_target_typemask.go +++ b/pkg/dialects/uavionix/enum_position_target_typemask.go @@ -7,7 +7,7 @@ import ( ) // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration. -type POSITION_TARGET_TYPEMASK int +type POSITION_TARGET_TYPEMASK uint32 const ( // Ignore position x diff --git a/pkg/dialects/uavionix/enum_precision_land_mode.go b/pkg/dialects/uavionix/enum_precision_land_mode.go index 5a1cb9a82..ce2597160 100644 --- a/pkg/dialects/uavionix/enum_precision_land_mode.go +++ b/pkg/dialects/uavionix/enum_precision_land_mode.go @@ -7,7 +7,7 @@ import ( ) // Precision land modes (used in MAV_CMD_NAV_LAND). -type PRECISION_LAND_MODE int +type PRECISION_LAND_MODE uint32 const ( // Normal (non-precision) landing. diff --git a/pkg/dialects/uavionix/enum_rc_type.go b/pkg/dialects/uavionix/enum_rc_type.go index e4f443bd7..abca9ed7f 100644 --- a/pkg/dialects/uavionix/enum_rc_type.go +++ b/pkg/dialects/uavionix/enum_rc_type.go @@ -7,7 +7,7 @@ import ( ) // RC type -type RC_TYPE int +type RC_TYPE uint32 const ( // Spektrum DSM2 diff --git a/pkg/dialects/uavionix/enum_rtk_baseline_coordinate_system.go b/pkg/dialects/uavionix/enum_rtk_baseline_coordinate_system.go index 94f2a8504..31416d39f 100644 --- a/pkg/dialects/uavionix/enum_rtk_baseline_coordinate_system.go +++ b/pkg/dialects/uavionix/enum_rtk_baseline_coordinate_system.go @@ -7,7 +7,7 @@ import ( ) // RTK GPS baseline coordinate system, used for RTK corrections -type RTK_BASELINE_COORDINATE_SYSTEM int +type RTK_BASELINE_COORDINATE_SYSTEM uint32 const ( // Earth-centered, Earth-fixed diff --git a/pkg/dialects/uavionix/enum_serial_control_dev.go b/pkg/dialects/uavionix/enum_serial_control_dev.go index f70e8289e..3ed411b56 100644 --- a/pkg/dialects/uavionix/enum_serial_control_dev.go +++ b/pkg/dialects/uavionix/enum_serial_control_dev.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL device types -type SERIAL_CONTROL_DEV int +type SERIAL_CONTROL_DEV uint32 const ( // First telemetry port diff --git a/pkg/dialects/uavionix/enum_serial_control_flag.go b/pkg/dialects/uavionix/enum_serial_control_flag.go index 81c94298a..2bc9b4711 100644 --- a/pkg/dialects/uavionix/enum_serial_control_flag.go +++ b/pkg/dialects/uavionix/enum_serial_control_flag.go @@ -7,7 +7,7 @@ import ( ) // SERIAL_CONTROL flags (bitmask) -type SERIAL_CONTROL_FLAG int +type SERIAL_CONTROL_FLAG uint32 const ( // Set if this is a reply diff --git a/pkg/dialects/uavionix/enum_set_focus_type.go b/pkg/dialects/uavionix/enum_set_focus_type.go index d590a7c9e..e16c9b3a0 100644 --- a/pkg/dialects/uavionix/enum_set_focus_type.go +++ b/pkg/dialects/uavionix/enum_set_focus_type.go @@ -7,7 +7,7 @@ import ( ) // Focus types for MAV_CMD_SET_CAMERA_FOCUS -type SET_FOCUS_TYPE int +type SET_FOCUS_TYPE uint32 const ( // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity). diff --git a/pkg/dialects/uavionix/enum_storage_status.go b/pkg/dialects/uavionix/enum_storage_status.go index 45d53d627..5ea5fb7a0 100644 --- a/pkg/dialects/uavionix/enum_storage_status.go +++ b/pkg/dialects/uavionix/enum_storage_status.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the status of camera storage. -type STORAGE_STATUS int +type STORAGE_STATUS uint32 const ( // Storage is missing (no microSD card loaded for example.) diff --git a/pkg/dialects/uavionix/enum_storage_type.go b/pkg/dialects/uavionix/enum_storage_type.go index 93b64cdf4..915276d86 100644 --- a/pkg/dialects/uavionix/enum_storage_type.go +++ b/pkg/dialects/uavionix/enum_storage_type.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate the type of storage. -type STORAGE_TYPE int +type STORAGE_TYPE uint32 const ( // Storage type is not known. diff --git a/pkg/dialects/uavionix/enum_storage_usage_flag.go b/pkg/dialects/uavionix/enum_storage_usage_flag.go index 24e1de56a..d134be04e 100644 --- a/pkg/dialects/uavionix/enum_storage_usage_flag.go +++ b/pkg/dialects/uavionix/enum_storage_usage_flag.go @@ -7,7 +7,7 @@ import ( ) // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE). -type STORAGE_USAGE_FLAG int +type STORAGE_USAGE_FLAG uint32 const ( // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported). diff --git a/pkg/dialects/uavionix/enum_tune_format.go b/pkg/dialects/uavionix/enum_tune_format.go index b7b896085..fb8a0359a 100644 --- a/pkg/dialects/uavionix/enum_tune_format.go +++ b/pkg/dialects/uavionix/enum_tune_format.go @@ -7,7 +7,7 @@ import ( ) // Tune formats (used for vehicle buzzer/tone generation). -type TUNE_FORMAT int +type TUNE_FORMAT uint32 const ( // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm. diff --git a/pkg/dialects/uavionix/enum_uavcan_node_health.go b/pkg/dialects/uavionix/enum_uavcan_node_health.go index 5b877c9ed..dbdc128cf 100644 --- a/pkg/dialects/uavionix/enum_uavcan_node_health.go +++ b/pkg/dialects/uavionix/enum_uavcan_node_health.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node health -type UAVCAN_NODE_HEALTH int +type UAVCAN_NODE_HEALTH uint32 const ( // The node is functioning properly. diff --git a/pkg/dialects/uavionix/enum_uavcan_node_mode.go b/pkg/dialects/uavionix/enum_uavcan_node_mode.go index 48d83b79d..33af7ab37 100644 --- a/pkg/dialects/uavionix/enum_uavcan_node_mode.go +++ b/pkg/dialects/uavionix/enum_uavcan_node_mode.go @@ -7,7 +7,7 @@ import ( ) // Generalized UAVCAN node mode -type UAVCAN_NODE_MODE int +type UAVCAN_NODE_MODE uint32 const ( // The node is performing its primary functions. diff --git a/pkg/dialects/uavionix/enum_uavionix_adsb_emergency_status.go b/pkg/dialects/uavionix/enum_uavionix_adsb_emergency_status.go index f3622f439..7db72f147 100644 --- a/pkg/dialects/uavionix/enum_uavionix_adsb_emergency_status.go +++ b/pkg/dialects/uavionix/enum_uavionix_adsb_emergency_status.go @@ -7,7 +7,7 @@ import ( ) // Emergency status encoding -type UAVIONIX_ADSB_EMERGENCY_STATUS int +type UAVIONIX_ADSB_EMERGENCY_STATUS uint32 const ( UAVIONIX_ADSB_OUT_NO_EMERGENCY UAVIONIX_ADSB_EMERGENCY_STATUS = 0 diff --git a/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_aircraft_size.go b/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_aircraft_size.go index 8458a086c..bb2ab32ff 100644 --- a/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_aircraft_size.go +++ b/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_aircraft_size.go @@ -7,7 +7,7 @@ import ( ) // Definitions for aircraft size -type UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE int +type UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE uint32 const ( UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_NO_DATA UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE = 0 diff --git a/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_gps_offset_lat.go b/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_gps_offset_lat.go index 01f2fb494..a97b801cc 100644 --- a/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_gps_offset_lat.go +++ b/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_gps_offset_lat.go @@ -7,7 +7,7 @@ import ( ) // GPS lataral offset encoding -type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT int +type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT uint32 const ( UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_NO_DATA UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT = 0 diff --git a/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_gps_offset_lon.go b/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_gps_offset_lon.go index ab983a98b..d9fab00fd 100644 --- a/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_gps_offset_lon.go +++ b/pkg/dialects/uavionix/enum_uavionix_adsb_out_cfg_gps_offset_lon.go @@ -7,7 +7,7 @@ import ( ) // GPS longitudinal offset encoding -type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON int +type UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON uint32 const ( UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON_NO_DATA UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON = 0 diff --git a/pkg/dialects/uavionix/enum_uavionix_adsb_out_dynamic_gps_fix.go b/pkg/dialects/uavionix/enum_uavionix_adsb_out_dynamic_gps_fix.go index 747c103ca..29dddeeaa 100644 --- a/pkg/dialects/uavionix/enum_uavionix_adsb_out_dynamic_gps_fix.go +++ b/pkg/dialects/uavionix/enum_uavionix_adsb_out_dynamic_gps_fix.go @@ -7,7 +7,7 @@ import ( ) // Status for ADS-B transponder dynamic input -type UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX int +type UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX uint32 const ( UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_NONE_0 UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX = 0 diff --git a/pkg/dialects/uavionix/enum_uavionix_adsb_out_dynamic_state.go b/pkg/dialects/uavionix/enum_uavionix_adsb_out_dynamic_state.go index 88b600df3..6bd75d557 100644 --- a/pkg/dialects/uavionix/enum_uavionix_adsb_out_dynamic_state.go +++ b/pkg/dialects/uavionix/enum_uavionix_adsb_out_dynamic_state.go @@ -7,7 +7,7 @@ import ( ) // State flags for ADS-B transponder dynamic report -type UAVIONIX_ADSB_OUT_DYNAMIC_STATE int +type UAVIONIX_ADSB_OUT_DYNAMIC_STATE uint32 const ( UAVIONIX_ADSB_OUT_DYNAMIC_STATE_INTENT_CHANGE UAVIONIX_ADSB_OUT_DYNAMIC_STATE = 1 diff --git a/pkg/dialects/uavionix/enum_uavionix_adsb_out_rf_select.go b/pkg/dialects/uavionix/enum_uavionix_adsb_out_rf_select.go index 04bc322c9..f4b59a253 100644 --- a/pkg/dialects/uavionix/enum_uavionix_adsb_out_rf_select.go +++ b/pkg/dialects/uavionix/enum_uavionix_adsb_out_rf_select.go @@ -7,7 +7,7 @@ import ( ) // Transceiver RF control flags for ADS-B transponder dynamic reports -type UAVIONIX_ADSB_OUT_RF_SELECT int +type UAVIONIX_ADSB_OUT_RF_SELECT uint32 const ( UAVIONIX_ADSB_OUT_RF_SELECT_STANDBY UAVIONIX_ADSB_OUT_RF_SELECT = 0 diff --git a/pkg/dialects/uavionix/enum_uavionix_adsb_rf_health.go b/pkg/dialects/uavionix/enum_uavionix_adsb_rf_health.go index 4290f4ab0..244c3bc87 100644 --- a/pkg/dialects/uavionix/enum_uavionix_adsb_rf_health.go +++ b/pkg/dialects/uavionix/enum_uavionix_adsb_rf_health.go @@ -7,7 +7,7 @@ import ( ) // Status flags for ADS-B transponder dynamic output -type UAVIONIX_ADSB_RF_HEALTH int +type UAVIONIX_ADSB_RF_HEALTH uint32 const ( UAVIONIX_ADSB_RF_HEALTH_INITIALIZING UAVIONIX_ADSB_RF_HEALTH = 0 diff --git a/pkg/dialects/uavionix/enum_utm_data_avail_flags.go b/pkg/dialects/uavionix/enum_utm_data_avail_flags.go index 426366d40..7b423d440 100644 --- a/pkg/dialects/uavionix/enum_utm_data_avail_flags.go +++ b/pkg/dialects/uavionix/enum_utm_data_avail_flags.go @@ -7,7 +7,7 @@ import ( ) // Flags for the global position report. -type UTM_DATA_AVAIL_FLAGS int +type UTM_DATA_AVAIL_FLAGS uint32 const ( // The field time contains valid data. diff --git a/pkg/dialects/uavionix/enum_utm_flight_state.go b/pkg/dialects/uavionix/enum_utm_flight_state.go index eae59e9d5..c41220ae9 100644 --- a/pkg/dialects/uavionix/enum_utm_flight_state.go +++ b/pkg/dialects/uavionix/enum_utm_flight_state.go @@ -7,7 +7,7 @@ import ( ) // Airborne status of UAS. -type UTM_FLIGHT_STATE int +type UTM_FLIGHT_STATE uint32 const ( // The flight state can't be determined. diff --git a/pkg/dialects/uavionix/enum_video_stream_status_flags.go b/pkg/dialects/uavionix/enum_video_stream_status_flags.go index c512b374c..0332c4599 100644 --- a/pkg/dialects/uavionix/enum_video_stream_status_flags.go +++ b/pkg/dialects/uavionix/enum_video_stream_status_flags.go @@ -7,7 +7,7 @@ import ( ) // Stream status flags (Bitmap) -type VIDEO_STREAM_STATUS_FLAGS int +type VIDEO_STREAM_STATUS_FLAGS uint32 const ( // Stream is active (running) diff --git a/pkg/dialects/uavionix/enum_video_stream_type.go b/pkg/dialects/uavionix/enum_video_stream_type.go index a4c7a693b..60a368a35 100644 --- a/pkg/dialects/uavionix/enum_video_stream_type.go +++ b/pkg/dialects/uavionix/enum_video_stream_type.go @@ -7,7 +7,7 @@ import ( ) // Video stream types -type VIDEO_STREAM_TYPE int +type VIDEO_STREAM_TYPE uint32 const ( // Stream is RTSP diff --git a/pkg/dialects/uavionix/enum_vtol_transition_heading.go b/pkg/dialects/uavionix/enum_vtol_transition_heading.go index 575bd40e3..0b8977f6b 100644 --- a/pkg/dialects/uavionix/enum_vtol_transition_heading.go +++ b/pkg/dialects/uavionix/enum_vtol_transition_heading.go @@ -7,7 +7,7 @@ import ( ) // Direction of VTOL transition -type VTOL_TRANSITION_HEADING int +type VTOL_TRANSITION_HEADING uint32 const ( // Respect the heading configuration of the vehicle. diff --git a/pkg/dialects/uavionix/enum_wifi_config_ap_mode.go b/pkg/dialects/uavionix/enum_wifi_config_ap_mode.go index 66a9e973f..e5f99d1cf 100644 --- a/pkg/dialects/uavionix/enum_wifi_config_ap_mode.go +++ b/pkg/dialects/uavionix/enum_wifi_config_ap_mode.go @@ -7,7 +7,7 @@ import ( ) // WiFi Mode. -type WIFI_CONFIG_AP_MODE int +type WIFI_CONFIG_AP_MODE uint32 const ( // WiFi mode is undefined. diff --git a/pkg/dialects/uavionix/enum_wifi_config_ap_response.go b/pkg/dialects/uavionix/enum_wifi_config_ap_response.go index ab4e46b3d..2e18ae60a 100644 --- a/pkg/dialects/uavionix/enum_wifi_config_ap_response.go +++ b/pkg/dialects/uavionix/enum_wifi_config_ap_response.go @@ -7,7 +7,7 @@ import ( ) // Possible responses from a WIFI_CONFIG_AP message. -type WIFI_CONFIG_AP_RESPONSE int +type WIFI_CONFIG_AP_RESPONSE uint32 const ( // Undefined response. Likely an indicative of a system that doesn't support this request. diff --git a/pkg/dialects/uavionix/enum_winch_actions.go b/pkg/dialects/uavionix/enum_winch_actions.go index 40a44841d..813d070ec 100644 --- a/pkg/dialects/uavionix/enum_winch_actions.go +++ b/pkg/dialects/uavionix/enum_winch_actions.go @@ -7,7 +7,7 @@ import ( ) // Winch actions. -type WINCH_ACTIONS int +type WINCH_ACTIONS uint32 const ( // Allow motor to freewheel. diff --git a/pkg/msg/decencoder.go b/pkg/msg/decencoder.go index acadf0f96..d8825144d 100644 --- a/pkg/msg/decencoder.go +++ b/pkg/msg/decencoder.go @@ -134,8 +134,8 @@ func NewDecEncoder(msg Message) (*DecEncoder, error) { if field.Tag.Get("mavenum") != "" { isEnum = true - if goType.Kind() != reflect.Int { - return nil, fmt.Errorf("an enum must be an int") + if goType.Kind() != reflect.Uint32 { + return nil, fmt.Errorf("an enum must be an uint32") } tagEnum := field.Tag.Get("mavenum") @@ -360,27 +360,27 @@ func valueDecode(target reflect.Value, buf []byte, f *decEncoderField) int { if f.isEnum { switch f.ftype { case typeUint8: - target.SetInt(int64(buf[0])) + target.SetUint(uint64(buf[0])) return 1 case typeInt8: - target.SetInt(int64(buf[0])) + target.SetUint(uint64(buf[0])) return 1 case typeUint16: - target.SetInt(int64(binary.LittleEndian.Uint16(buf))) + target.SetUint(uint64(binary.LittleEndian.Uint16(buf))) return 2 case typeUint32: - target.SetInt(int64(binary.LittleEndian.Uint32(buf))) + target.SetUint(uint64(binary.LittleEndian.Uint32(buf))) return 4 case typeInt32: - target.SetInt(int64(binary.LittleEndian.Uint32(buf))) + target.SetUint(uint64(binary.LittleEndian.Uint32(buf))) return 4 case typeUint64: - target.SetInt(int64(binary.LittleEndian.Uint64(buf))) + target.SetUint(uint64(binary.LittleEndian.Uint64(buf))) return 8 default: @@ -447,27 +447,27 @@ func valueEncode(buf []byte, target reflect.Value, f *decEncoderField) int { if f.isEnum { switch f.ftype { case typeUint8: - buf[0] = byte(target.Int()) + buf[0] = byte(target.Uint()) return 1 case typeInt8: - buf[0] = byte(target.Int()) + buf[0] = byte(target.Uint()) return 1 case typeUint16: - binary.LittleEndian.PutUint16(buf, uint16(target.Int())) + binary.LittleEndian.PutUint16(buf, uint16(target.Uint())) return 2 case typeUint32: - binary.LittleEndian.PutUint32(buf, uint32(target.Int())) + binary.LittleEndian.PutUint32(buf, uint32(target.Uint())) return 4 case typeInt32: - binary.LittleEndian.PutUint32(buf, uint32(target.Int())) + binary.LittleEndian.PutUint32(buf, uint32(target.Uint())) return 4 case typeUint64: - binary.LittleEndian.PutUint64(buf, uint64(target.Int())) + binary.LittleEndian.PutUint64(buf, uint64(target.Uint())) return 8 default: diff --git a/pkg/msg/decencoder_test.go b/pkg/msg/decencoder_test.go index f912018fa..2620e0fac 100644 --- a/pkg/msg/decencoder_test.go +++ b/pkg/msg/decencoder_test.go @@ -8,12 +8,12 @@ import ( ) type ( - MAV_TYPE int //nolint:revive - MAV_AUTOPILOT int //nolint:revive - MAV_MODE_FLAG int //nolint:revive - MAV_STATE int //nolint:revive - MAV_SYS_STATUS_SENSOR int //nolint:revive - MAV_CMD int //nolint:revive + MAV_TYPE uint32 //nolint:revive + MAV_AUTOPILOT uint32 //nolint:revive + MAV_MODE_FLAG uint32 //nolint:revive + MAV_STATE uint32 //nolint:revive + MAV_SYS_STATUS_SENSOR uint32 //nolint:revive + MAV_CMD uint32 //nolint:revive ) type MessageHeartbeat struct { diff --git a/pkg/parser/reader_test.go b/pkg/parser/reader_test.go index 272dd64c9..bca653b6c 100644 --- a/pkg/parser/reader_test.go +++ b/pkg/parser/reader_test.go @@ -13,10 +13,10 @@ import ( ) type ( - MAV_TYPE int //nolint:revive - MAV_AUTOPILOT int //nolint:revive - MAV_MODE_FLAG int //nolint:revive - MAV_STATE int //nolint:revive + MAV_TYPE uint32 //nolint:revive + MAV_AUTOPILOT uint32 //nolint:revive + MAV_MODE_FLAG uint32 //nolint:revive + MAV_STATE uint32 //nolint:revive ) type MessageTest5 struct {