Skip to content

Commit 21be97d

Browse files
Update ProtocolDefinitions
1 parent 3e09321 commit 21be97d

5 files changed

Lines changed: 39 additions & 1 deletion

File tree

protocol/blueye/protocol/protos.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
from .types.message_formats import NStreamers
139139
from .types.message_formats import ObjectDetection
140140
from .types.message_formats import ObjectDetections
141+
from .types.message_formats import OperatorInfo
141142
from .types.message_formats import OverlayParameters
142143
from .types.message_formats import PersistentStorageSettings
143144
from .types.message_formats import PingerConfiguration
@@ -519,6 +520,7 @@
519520
'ObjectDetection',
520521
'ObjectDetections',
521522
'ObjectDetectionsTel',
523+
'OperatorInfo',
522524
'OverlayParameters',
523525
'PathSegment',
524526
'PauseMissionCtrl',

protocol/blueye/protocol/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
NStreamers,
143143
ObjectDetection,
144144
ObjectDetections,
145+
OperatorInfo,
145146
OverlayParameters,
146147
PersistentStorageSettings,
147148
PingerConfiguration,
@@ -453,6 +454,7 @@
453454
'NStreamers',
454455
'ObjectDetection',
455456
'ObjectDetections',
457+
'OperatorInfo',
456458
'OverlayParameters',
457459
'PersistentStorageSettings',
458460
'PingerConfiguration',

protocol/blueye/protocol/types/control.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,18 @@ class StartDiveCtrl(proto.Message):
603603
files so we can see at which point the user entered the dive
604604
view.
605605
606+
Attributes:
607+
operator_info (blueye.protocol.types.OperatorInfo):
608+
Optional information about the operator who
609+
started the dive.
606610
"""
607611

612+
operator_info: message_formats.OperatorInfo = proto.Field(
613+
proto.MESSAGE,
614+
number=1,
615+
message=message_formats.OperatorInfo,
616+
)
617+
608618

609619
class EndDiveCtrl(proto.Message):
610620
r"""Message sent when the user hits the end dive button in the

protocol/blueye/protocol/types/message_formats.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
'ObjectDetections',
141141
'FilterMessage',
142142
'CameraPanTiltZoom',
143+
'OperatorInfo',
143144
},
144145
)
145146

@@ -5396,4 +5397,27 @@ class CameraPanTiltZoom(proto.Message):
53965397
)
53975398

53985399

5400+
class OperatorInfo(proto.Message):
5401+
r"""Information about the operator controlling the drone.
5402+
5403+
Used to identify who started a dive, for reporting and when
5404+
importing dives to Blueye Cloud.
5405+
5406+
Attributes:
5407+
name (str):
5408+
Full name of the operator.
5409+
email (str):
5410+
E-mail address of the operator.
5411+
"""
5412+
5413+
name: str = proto.Field(
5414+
proto.STRING,
5415+
number=1,
5416+
)
5417+
email: str = proto.Field(
5418+
proto.STRING,
5419+
number=2,
5420+
)
5421+
5422+
53995423
__all__ = tuple(sorted(__protobuf__.manifest))

0 commit comments

Comments
 (0)