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 Aug 1, 2024
1 parent b8b2b0d commit 4bc76d3
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ProtocolDefinitions
10 changes: 10 additions & 0 deletions blueye/protocol/protos.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
from .types.message_formats import NotificationLevel
from .types.message_formats import NotificationType
from .types.message_formats import OverlayParameters
from .types.message_formats import PersistentStorageSettings
from .types.message_formats import PingerConfiguration
from .types.message_formats import PositionEstimate
from .types.message_formats import PressureSensorType
Expand Down Expand Up @@ -197,6 +198,8 @@
from .types.req_rep import GetMissionReq
from .types.req_rep import GetOverlayParametersRep
from .types.req_rep import GetOverlayParametersReq
from .types.req_rep import GetPersistentStorageSettingsRep
from .types.req_rep import GetPersistentStorageSettingsReq
from .types.req_rep import GetTelemetryRep
from .types.req_rep import GetTelemetryReq
from .types.req_rep import PingRep
Expand All @@ -209,6 +212,8 @@
from .types.req_rep import SetMissionReq
from .types.req_rep import SetOverlayParametersRep
from .types.req_rep import SetOverlayParametersReq
from .types.req_rep import SetPersistentStorageSettingsRep
from .types.req_rep import SetPersistentStorageSettingsReq
from .types.req_rep import SetPubFrequencyRep
from .types.req_rep import SetPubFrequencyReq
from .types.req_rep import SetThicknessGaugeParametersRep
Expand Down Expand Up @@ -377,6 +382,8 @@
'GetMissionReq',
'GetOverlayParametersRep',
'GetOverlayParametersReq',
'GetPersistentStorageSettingsRep',
'GetPersistentStorageSettingsReq',
'GetTelemetryRep',
'GetTelemetryReq',
'GoToHomeCommand',
Expand Down Expand Up @@ -444,6 +451,7 @@
'OverlayParameters',
'PathSegment',
'PauseMissionCtrl',
'PersistentStorageSettings',
'PilotGPSPositionCtrl',
'PilotGPSPositionTel',
'PingRep',
Expand Down Expand Up @@ -481,6 +489,8 @@
'SetMultibeamConfigCtrl',
'SetOverlayParametersRep',
'SetOverlayParametersReq',
'SetPersistentStorageSettingsRep',
'SetPersistentStorageSettingsReq',
'SetPubFrequencyRep',
'SetPubFrequencyReq',
'SetThicknessGaugeParametersRep',
Expand Down
10 changes: 10 additions & 0 deletions blueye/protocol/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
MultibeamPing,
MultibeamConfig,
MultibeamDiscovery,
PersistentStorageSettings,
IntervalType,
HeadingSource,
ResetCoordinateSource,
Expand Down Expand Up @@ -235,6 +236,10 @@
SetPubFrequencyRep,
GetTelemetryReq,
GetTelemetryRep,
SetPersistentStorageSettingsReq,
SetPersistentStorageSettingsRep,
GetPersistentStorageSettingsReq,
GetPersistentStorageSettingsRep,
)
from .control import (
MotionInputCtrl,
Expand Down Expand Up @@ -366,6 +371,7 @@
'MultibeamPing',
'MultibeamConfig',
'MultibeamDiscovery',
'PersistentStorageSettings',
'IntervalType',
'HeadingSource',
'ResetCoordinateSource',
Expand Down Expand Up @@ -493,6 +499,10 @@
'SetPubFrequencyRep',
'GetTelemetryReq',
'GetTelemetryRep',
'SetPersistentStorageSettingsReq',
'SetPersistentStorageSettingsRep',
'GetPersistentStorageSettingsReq',
'GetPersistentStorageSettingsRep',
'MotionInputCtrl',
'TiltVelocityCtrl',
'LightsCtrl',
Expand Down
57 changes: 57 additions & 0 deletions blueye/protocol/types/message_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
'MultibeamPing',
'MultibeamConfig',
'MultibeamDiscovery',
'PersistentStorageSettings',
},
)

Expand Down Expand Up @@ -2635,4 +2636,60 @@ class MultibeamDiscovery(proto.Message):
)


class PersistentStorageSettings(proto.Message):
r"""PersistentStorageSettings defines settings for writing
various types of data in the persistent storage on the drone
Some of the data is written during factory calibration (acc
calibration), while other data is written during user
calubration or during normal operation.
Attributes:
videos (bool):
Indicates if videos should be written to the
video partition.
images (bool):
Indicates if images should be written to the
video partition.
binlog (bool):
Indicates if binary logs with telemetry data
should be written to the data partition.
multibeam (bool):
Indicates if multibeam data should be written
to the video partition.
webserver_log (bool):
Indicates if webserver logs should be written
to the data partition.
control_system_log (bool):
Indicates if control system logs should be
written to the data partition.
gyro_calibration (bool):
Indicates if gyro calibration data should be
written to the data partition.
compass_calibration (bool):
Indicates if compass calibration data should
be written to the data partition.
acc_calibration (bool):
Indicates if accelerometer calibration data
should be written to the data partition.
"""

videos = proto.Field(proto.BOOL, number=1)

images = proto.Field(proto.BOOL, number=2)

binlog = proto.Field(proto.BOOL, number=3)

multibeam = proto.Field(proto.BOOL, number=4)

webserver_log = proto.Field(proto.BOOL, number=5)

control_system_log = proto.Field(proto.BOOL, number=6)

gyro_calibration = proto.Field(proto.BOOL, number=7)

compass_calibration = proto.Field(proto.BOOL, number=8)

acc_calibration = proto.Field(proto.BOOL, number=9)


__all__ = tuple(sorted(__protobuf__.manifest))
39 changes: 39 additions & 0 deletions blueye/protocol/types/req_rep.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
'SetPubFrequencyRep',
'GetTelemetryReq',
'GetTelemetryRep',
'SetPersistentStorageSettingsReq',
'SetPersistentStorageSettingsRep',
'GetPersistentStorageSettingsReq',
'GetPersistentStorageSettingsRep',
},
)

Expand Down Expand Up @@ -392,4 +396,39 @@ class GetTelemetryRep(proto.Message):
)


class SetPersistentStorageSettingsReq(proto.Message):
r"""Request to set persistent storage settings.
Attributes:
persistent_storage_settings (blueye.protocol.types.PersistentStorageSettings):
The persistent storage settings to apply.
"""

persistent_storage_settings = proto.Field(proto.MESSAGE, number=1,
message=message_formats.PersistentStorageSettings,
)


class SetPersistentStorageSettingsRep(proto.Message):
r"""Response after setting persistent storage settings."""


class GetPersistentStorageSettingsReq(proto.Message):
r"""Request to get currently set persistent storage settings."""


class GetPersistentStorageSettingsRep(proto.Message):
r"""Response with the currently set persistent storage settings.
Attributes:
persistent_storage_settings (blueye.protocol.types.PersistentStorageSettings):
The currently set persistent storage
settings.
"""

persistent_storage_settings = proto.Field(proto.MESSAGE, number=1,
message=message_formats.PersistentStorageSettings,
)


__all__ = tuple(sorted(__protobuf__.manifest))

0 comments on commit 4bc76d3

Please sign in to comment.