From abe57eaa225ef11ae0063891ac4d96ff47e25f24 Mon Sep 17 00:00:00 2001 From: gomavlib-bot Date: Thu, 14 Nov 2024 05:18:52 +0000 Subject: [PATCH] (automatic) update dialects to rev https://github.com/mavlink/mavlink/tree/01e0cc2f42c1b9d4e50da0f06b07e0cacda106f2 --- pkg/dialects/all/dialect.go | 1 + .../all/message_smart_battery_info.go | 10 ++++ pkg/dialects/ardupilotmega/dialect.go | 1 + .../message_smart_battery_info.go | 10 ++++ pkg/dialects/asluav/dialect.go | 1 + .../asluav/message_smart_battery_info.go | 10 ++++ pkg/dialects/avssuas/dialect.go | 1 + .../avssuas/message_smart_battery_info.go | 10 ++++ pkg/dialects/common/dialect.go | 1 + pkg/dialects/common/message_battery_info.go | 2 +- .../common/message_smart_battery_info.go | 46 +++++++++++++++++++ pkg/dialects/cubepilot/dialect.go | 1 + .../cubepilot/message_smart_battery_info.go | 10 ++++ pkg/dialects/development/dialect.go | 1 + .../development/message_smart_battery_info.go | 10 ++++ pkg/dialects/matrixpilot/dialect.go | 1 + .../matrixpilot/message_smart_battery_info.go | 10 ++++ pkg/dialects/paparazzi/dialect.go | 1 + .../paparazzi/message_smart_battery_info.go | 10 ++++ pkg/dialects/pythonarraytest/dialect.go | 1 + .../message_smart_battery_info.go | 10 ++++ pkg/dialects/storm32/dialect.go | 1 + .../storm32/message_smart_battery_info.go | 10 ++++ pkg/dialects/ualberta/dialect.go | 1 + .../ualberta/message_smart_battery_info.go | 10 ++++ pkg/dialects/uavionix/dialect.go | 1 + .../uavionix/message_smart_battery_info.go | 10 ++++ 27 files changed, 180 insertions(+), 1 deletion(-) create mode 100644 pkg/dialects/all/message_smart_battery_info.go create mode 100644 pkg/dialects/ardupilotmega/message_smart_battery_info.go create mode 100644 pkg/dialects/asluav/message_smart_battery_info.go create mode 100644 pkg/dialects/avssuas/message_smart_battery_info.go create mode 100644 pkg/dialects/common/message_smart_battery_info.go create mode 100644 pkg/dialects/cubepilot/message_smart_battery_info.go create mode 100644 pkg/dialects/development/message_smart_battery_info.go create mode 100644 pkg/dialects/matrixpilot/message_smart_battery_info.go create mode 100644 pkg/dialects/paparazzi/message_smart_battery_info.go create mode 100644 pkg/dialects/pythonarraytest/message_smart_battery_info.go create mode 100644 pkg/dialects/storm32/message_smart_battery_info.go create mode 100644 pkg/dialects/ualberta/message_smart_battery_info.go create mode 100644 pkg/dialects/uavionix/message_smart_battery_info.go diff --git a/pkg/dialects/all/dialect.go b/pkg/dialects/all/dialect.go index 020fff877..e6a7eda72 100644 --- a/pkg/dialects/all/dialect.go +++ b/pkg/dialects/all/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/all/message_smart_battery_info.go b/pkg/dialects/all/message_smart_battery_info.go new file mode 100644 index 000000000..9768fd371 --- /dev/null +++ b/pkg/dialects/all/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package all + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo diff --git a/pkg/dialects/ardupilotmega/dialect.go b/pkg/dialects/ardupilotmega/dialect.go index 7afb3e499..7539e809c 100644 --- a/pkg/dialects/ardupilotmega/dialect.go +++ b/pkg/dialects/ardupilotmega/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/ardupilotmega/message_smart_battery_info.go b/pkg/dialects/ardupilotmega/message_smart_battery_info.go new file mode 100644 index 000000000..b1d320a42 --- /dev/null +++ b/pkg/dialects/ardupilotmega/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package ardupilotmega + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo diff --git a/pkg/dialects/asluav/dialect.go b/pkg/dialects/asluav/dialect.go index 65ef925c1..8f6e7f5dc 100644 --- a/pkg/dialects/asluav/dialect.go +++ b/pkg/dialects/asluav/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/asluav/message_smart_battery_info.go b/pkg/dialects/asluav/message_smart_battery_info.go new file mode 100644 index 000000000..d2f62e8c2 --- /dev/null +++ b/pkg/dialects/asluav/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package asluav + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo diff --git a/pkg/dialects/avssuas/dialect.go b/pkg/dialects/avssuas/dialect.go index d6f356a42..ff0934501 100644 --- a/pkg/dialects/avssuas/dialect.go +++ b/pkg/dialects/avssuas/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/avssuas/message_smart_battery_info.go b/pkg/dialects/avssuas/message_smart_battery_info.go new file mode 100644 index 000000000..b65e7e6c4 --- /dev/null +++ b/pkg/dialects/avssuas/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package avssuas + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo diff --git a/pkg/dialects/common/dialect.go b/pkg/dialects/common/dialect.go index e67623be9..e663d58d0 100644 --- a/pkg/dialects/common/dialect.go +++ b/pkg/dialects/common/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/common/message_battery_info.go b/pkg/dialects/common/message_battery_info.go index e97effa4d..ca69ec292 100644 --- a/pkg/dialects/common/message_battery_info.go +++ b/pkg/dialects/common/message_battery_info.go @@ -50,5 +50,5 @@ type MessageBatteryInfo struct { // GetID implements the message.Message interface. func (*MessageBatteryInfo) GetID() uint32 { - return 370 + return 372 } diff --git a/pkg/dialects/common/message_smart_battery_info.go b/pkg/dialects/common/message_smart_battery_info.go new file mode 100644 index 000000000..aca45826e --- /dev/null +++ b/pkg/dialects/common/message_smart_battery_info.go @@ -0,0 +1,46 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package common + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo struct { + // Battery ID + Id uint8 + // Function of the battery + BatteryFunction MAV_BATTERY_FUNCTION `mavenum:"uint8"` + // Type (chemistry) of the battery + Type MAV_BATTERY_TYPE `mavenum:"uint8"` + // Capacity when full according to manufacturer, -1: field not provided. + CapacityFullSpecification int32 + // Capacity when full (accounting for battery degradation), -1: field not provided. + CapacityFull int32 + // Charge/discharge cycle count. UINT16_MAX: field not provided. + CycleCount uint16 + // Serial number in ASCII characters, 0 terminated. All 0: field not provided. + SerialNumber string `mavlen:"16"` + // Static device name in ASCII characters, 0 terminated. All 0: field not provided. Encode as manufacturer name then product name separated using an underscore. + DeviceName string `mavlen:"50"` + // Battery weight. 0: field not provided. + Weight uint16 + // Minimum per-cell voltage when discharging. If not supplied set to UINT16_MAX value. + DischargeMinimumVoltage uint16 + // Minimum per-cell voltage when charging. If not supplied set to UINT16_MAX value. + ChargingMinimumVoltage uint16 + // Minimum per-cell voltage when resting. If not supplied set to UINT16_MAX value. + RestingMinimumVoltage uint16 + // Maximum per-cell voltage when charged. 0: field not provided. + ChargingMaximumVoltage uint16 `mavext:"true"` + // Number of battery cells in series. 0: field not provided. + CellsInSeries uint8 `mavext:"true"` + // Maximum pack discharge current. 0: field not provided. + DischargeMaximumCurrent uint32 `mavext:"true"` + // Maximum pack discharge burst current. 0: field not provided. + DischargeMaximumBurstCurrent uint32 `mavext:"true"` + // Manufacture date (DD/MM/YYYY) in ASCII characters, 0 terminated. All 0: field not provided. + ManufactureDate string `mavext:"true" mavlen:"11"` +} + +// GetID implements the message.Message interface. +func (*MessageSmartBatteryInfo) GetID() uint32 { + return 370 +} diff --git a/pkg/dialects/cubepilot/dialect.go b/pkg/dialects/cubepilot/dialect.go index e90181b45..65c812205 100644 --- a/pkg/dialects/cubepilot/dialect.go +++ b/pkg/dialects/cubepilot/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/cubepilot/message_smart_battery_info.go b/pkg/dialects/cubepilot/message_smart_battery_info.go new file mode 100644 index 000000000..40c3996e2 --- /dev/null +++ b/pkg/dialects/cubepilot/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package cubepilot + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo diff --git a/pkg/dialects/development/dialect.go b/pkg/dialects/development/dialect.go index f4acc15f3..6b3548426 100644 --- a/pkg/dialects/development/dialect.go +++ b/pkg/dialects/development/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/development/message_smart_battery_info.go b/pkg/dialects/development/message_smart_battery_info.go new file mode 100644 index 000000000..be0278732 --- /dev/null +++ b/pkg/dialects/development/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package development + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo diff --git a/pkg/dialects/matrixpilot/dialect.go b/pkg/dialects/matrixpilot/dialect.go index 4aa94b2fa..6b2ccf192 100644 --- a/pkg/dialects/matrixpilot/dialect.go +++ b/pkg/dialects/matrixpilot/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/matrixpilot/message_smart_battery_info.go b/pkg/dialects/matrixpilot/message_smart_battery_info.go new file mode 100644 index 000000000..13449d3d6 --- /dev/null +++ b/pkg/dialects/matrixpilot/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package matrixpilot + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo diff --git a/pkg/dialects/paparazzi/dialect.go b/pkg/dialects/paparazzi/dialect.go index b5e3035df..7b4d21393 100644 --- a/pkg/dialects/paparazzi/dialect.go +++ b/pkg/dialects/paparazzi/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/paparazzi/message_smart_battery_info.go b/pkg/dialects/paparazzi/message_smart_battery_info.go new file mode 100644 index 000000000..1c3b9ab38 --- /dev/null +++ b/pkg/dialects/paparazzi/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package paparazzi + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo diff --git a/pkg/dialects/pythonarraytest/dialect.go b/pkg/dialects/pythonarraytest/dialect.go index c903e608d..3ba85d325 100644 --- a/pkg/dialects/pythonarraytest/dialect.go +++ b/pkg/dialects/pythonarraytest/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/pythonarraytest/message_smart_battery_info.go b/pkg/dialects/pythonarraytest/message_smart_battery_info.go new file mode 100644 index 000000000..782f321de --- /dev/null +++ b/pkg/dialects/pythonarraytest/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package pythonarraytest + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo diff --git a/pkg/dialects/storm32/dialect.go b/pkg/dialects/storm32/dialect.go index a17f15e17..0ed32d116 100644 --- a/pkg/dialects/storm32/dialect.go +++ b/pkg/dialects/storm32/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/storm32/message_smart_battery_info.go b/pkg/dialects/storm32/message_smart_battery_info.go new file mode 100644 index 000000000..eaf88bc5a --- /dev/null +++ b/pkg/dialects/storm32/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package storm32 + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo diff --git a/pkg/dialects/ualberta/dialect.go b/pkg/dialects/ualberta/dialect.go index 3c9d904dc..fb4396651 100644 --- a/pkg/dialects/ualberta/dialect.go +++ b/pkg/dialects/ualberta/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/ualberta/message_smart_battery_info.go b/pkg/dialects/ualberta/message_smart_battery_info.go new file mode 100644 index 000000000..9b74da38d --- /dev/null +++ b/pkg/dialects/ualberta/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package ualberta + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo diff --git a/pkg/dialects/uavionix/dialect.go b/pkg/dialects/uavionix/dialect.go index d4be960cc..3c135d70f 100644 --- a/pkg/dialects/uavionix/dialect.go +++ b/pkg/dialects/uavionix/dialect.go @@ -211,6 +211,7 @@ var dial = &dialect.Dialect{ &MessageUtmGlobalPosition{}, &MessageDebugFloatArray{}, &MessageOrbitExecutionStatus{}, + &MessageSmartBatteryInfo{}, &MessageBatteryInfo{}, &MessageGeneratorStatus{}, &MessageActuatorOutputStatus{}, diff --git a/pkg/dialects/uavionix/message_smart_battery_info.go b/pkg/dialects/uavionix/message_smart_battery_info.go new file mode 100644 index 000000000..3aba7305b --- /dev/null +++ b/pkg/dialects/uavionix/message_smart_battery_info.go @@ -0,0 +1,10 @@ +//autogenerated:yes +//nolint:revive,misspell,govet,lll +package uavionix + +import ( + "github.com/bluenviron/gomavlib/v3/pkg/dialects/common" +) + +// Smart Battery information (static/infrequent update). Use for updates from: smart battery to flight stack, flight stack to GCS. Use BATTERY_STATUS for the frequent battery updates. +type MessageSmartBatteryInfo = common.MessageSmartBatteryInfo