diff --git a/ProtocolDefinitions b/ProtocolDefinitions index bca58e7..dc0e9c8 160000 --- a/ProtocolDefinitions +++ b/ProtocolDefinitions @@ -1 +1 @@ -Subproject commit bca58e73ff5ee164e2825291907967aee408517c +Subproject commit dc0e9c8c28b6136cf72977aa4a10a2888b78c145 diff --git a/blueye/protocol/protos.py b/blueye/protocol/protos.py index eed3c27..a6782b0 100644 --- a/blueye/protocol/protos.py +++ b/blueye/protocol/protos.py @@ -43,6 +43,7 @@ from .types.control import ClearMissionCtrl from .types.control import DeactivateGuestPortsCtrl from .types.control import DeactivateMultibeamCtrl +from .types.control import EndDiveCtrl from .types.control import FinishCalibrationCtrl from .types.control import GenericServoCtrl from .types.control import GripperCtrl @@ -63,6 +64,7 @@ from .types.control import SetAquaTrollParameterUnitCtrl from .types.control import SetMultibeamConfigCtrl from .types.control import StartCalibrationCtrl +from .types.control import StartDiveCtrl from .types.control import StationKeepingCtrl from .types.control import SystemTimeCtrl from .types.control import TakePictureCtrl @@ -356,6 +358,7 @@ 'DroneInfo', 'DroneInfoTel', 'DroneTimeTel', + 'EndDiveCtrl', 'ErrorFlags', 'ErrorFlagsTel', 'FinishCalibrationCtrl', @@ -483,6 +486,7 @@ 'SetThicknessGaugeParametersRep', 'SetThicknessGaugeParametersReq', 'StartCalibrationCtrl', + 'StartDiveCtrl', 'StationKeepingCtrl', 'StationKeepingState', 'StorageSpace', diff --git a/blueye/protocol/types/__init__.py b/blueye/protocol/types/__init__.py index 4b95c39..c078e0c 100644 --- a/blueye/protocol/types/__init__.py +++ b/blueye/protocol/types/__init__.py @@ -277,6 +277,8 @@ SetMultibeamConfigCtrl, ActivateMultibeamCtrl, DeactivateMultibeamCtrl, + StartDiveCtrl, + EndDiveCtrl, ) __all__ = ( @@ -531,4 +533,6 @@ 'SetMultibeamConfigCtrl', 'ActivateMultibeamCtrl', 'DeactivateMultibeamCtrl', + 'StartDiveCtrl', + 'EndDiveCtrl', ) diff --git a/blueye/protocol/types/control.py b/blueye/protocol/types/control.py index ac996a9..683db62 100644 --- a/blueye/protocol/types/control.py +++ b/blueye/protocol/types/control.py @@ -65,6 +65,8 @@ 'SetMultibeamConfigCtrl', 'ActivateMultibeamCtrl', 'DeactivateMultibeamCtrl', + 'StartDiveCtrl', + 'EndDiveCtrl', }, ) @@ -503,4 +505,22 @@ class DeactivateMultibeamCtrl(proto.Message): r"""Deactivate multibeam""" +class StartDiveCtrl(proto.Message): + r"""Message sent when the user hits the start dive button in the + app. + The message does not do anything, but is included in the log + files so we can see at which point the user entered the dive + view. + """ + + +class EndDiveCtrl(proto.Message): + r"""Message sent when the user hits the end dive button in the + app. + The message does not do anything, but is included in the log + files so we can see at which point the user exited the dive + view. + """ + + __all__ = tuple(sorted(__protobuf__.manifest))