Skip to content

Commit

Permalink
Update ProtocolDefinitions
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 30, 2024
1 parent b74a9f5 commit c40be32
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
4 changes: 4 additions & 0 deletions blueye/protocol/protos.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
from .types.message_formats import Battery
from .types.message_formats import BatteryBQ40Z50
from .types.message_formats import BinlogRecord
from .types.message_formats import CPUInfo
from .types.message_formats import CPUTemperature
from .types.message_formats import CalibrationState
from .types.message_formats import Camera
Expand Down Expand Up @@ -229,6 +230,7 @@
from .types.telemetry import AttitudeTel
from .types.telemetry import BatteryBQ40Z50Tel
from .types.telemetry import BatteryTel
from .types.telemetry import CPUInfoTel
from .types.telemetry import CPUTemperatureTel
from .types.telemetry import CalibratedImuTel
from .types.telemetry import CalibrationStateTel
Expand Down Expand Up @@ -314,6 +316,8 @@
'BatteryBQ40Z50',
'BatteryBQ40Z50Tel',
'BatteryTel',
'CPUInfo',
'CPUInfoTel',
'CPUTemperature',
'CPUTemperatureTel',
'CalibrateDvlGyroCtrl',
Expand Down
4 changes: 4 additions & 0 deletions blueye/protocol/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
MultibeamFrameOffset,
MutltibeamRecordingIndex,
PersistentStorageSettings,
CPUInfo,
IntervalType,
HeadingSource,
ResetCoordinateSource,
Expand Down Expand Up @@ -250,6 +251,7 @@
MultibeamPingTel,
MultibeamConfigTel,
MultibeamDiscoveryTel,
CPUInfoTel,
)
from .req_rep import (
SetOverlayParametersReq,
Expand Down Expand Up @@ -360,6 +362,7 @@
'MultibeamFrameOffset',
'MutltibeamRecordingIndex',
'PersistentStorageSettings',
'CPUInfo',
'IntervalType',
'HeadingSource',
'ResetCoordinateSource',
Expand Down Expand Up @@ -515,6 +518,7 @@
'MultibeamPingTel',
'MultibeamConfigTel',
'MultibeamDiscoveryTel',
'CPUInfoTel',
'SetOverlayParametersReq',
'SetOverlayParametersRep',
'GetOverlayParametersReq',
Expand Down
18 changes: 18 additions & 0 deletions blueye/protocol/types/message_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
'MultibeamFrameOffset',
'MutltibeamRecordingIndex',
'PersistentStorageSettings',
'CPUInfo',
},
)

Expand Down Expand Up @@ -2755,4 +2756,21 @@ class PersistentStorageSettings(proto.Message):
acc_calibration = proto.Field(proto.BOOL, number=9)


class CPUInfo(proto.Message):
r"""CPU information
Contains information about the CPU load and memory usage of the
drone.
Attributes:
cpu_load (float):
CPU load in percent (0..100)
memory_bus_load (float):
Memory bus load in percent (0..100)
"""

cpu_load = proto.Field(proto.FLOAT, number=1)

memory_bus_load = proto.Field(proto.FLOAT, number=2)


__all__ = tuple(sorted(__protobuf__.manifest))
14 changes: 14 additions & 0 deletions blueye/protocol/types/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
'MultibeamPingTel',
'MultibeamConfigTel',
'MultibeamDiscoveryTel',
'CPUInfoTel',
},
)

Expand Down Expand Up @@ -791,4 +792,17 @@ class MultibeamDiscoveryTel(proto.Message):
)


class CPUInfoTel(proto.Message):
r"""
Attributes:
cpu_info (blueye.protocol.types.CPUInfo):
"""

cpu_info = proto.Field(proto.MESSAGE, number=1,
message=message_formats.CPUInfo,
)


__all__ = tuple(sorted(__protobuf__.manifest))

0 comments on commit c40be32

Please sign in to comment.