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 18, 2024
1 parent 216cfae commit c8bfa1a
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 118 deletions.
2 changes: 1 addition & 1 deletion ProtocolDefinitions
234 changes: 117 additions & 117 deletions blueye/protocol/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,31 +109,6 @@
GuestPortError,
MultibeamFrequencyMode,
)
from .mission_planning import (
Mission,
Instruction,
DepthSetPoint,
Waypoint,
ControlModeCommand,
WaypointCommand,
DepthSetPointCommand,
TiltMainCameraCommand,
TiltMultibeamCommand,
WaitForCommand,
CameraCommand,
GoToSurfaceCommand,
GoToSeabedCommand,
GoToHomeCommand,
PathSegment,
ReferenceAutoPilot,
MissionStatus,
DepthZeroReference,
ControlModeVertical,
ControlModeHorizontal,
CameraAction,
InstructionType,
MissionState,
)
from .aquatroll import (
AquaTrollParameterBlock,
AquaTrollSensorMetadata,
Expand Down Expand Up @@ -196,41 +171,30 @@
StartDiveCtrl,
EndDiveCtrl,
)
from .req_rep import (
SetOverlayParametersReq,
SetOverlayParametersRep,
GetOverlayParametersReq,
GetOverlayParametersRep,
SetCameraParametersReq,
SetCameraParametersRep,
GetCameraParametersReq,
GetCameraParametersRep,
SyncTimeReq,
SyncTimeRep,
PingReq,
PingRep,
SetThicknessGaugeParametersReq,
SetThicknessGaugeParametersRep,
ConnectClientReq,
ConnectClientRep,
DisconnectClientReq,
DisconnectClientRep,
GetBatteryReq,
GetBatteryRep,
SetMissionReq,
SetMissionRep,
GetMissionReq,
GetMissionRep,
SetInstructionUpdateReq,
SetInstructionUpdateRep,
SetPubFrequencyReq,
SetPubFrequencyRep,
GetTelemetryReq,
GetTelemetryRep,
SetPersistentStorageSettingsReq,
SetPersistentStorageSettingsRep,
GetPersistentStorageSettingsReq,
GetPersistentStorageSettingsRep,
from .mission_planning import (
Mission,
Instruction,
DepthSetPoint,
Waypoint,
ControlModeCommand,
WaypointCommand,
DepthSetPointCommand,
TiltMainCameraCommand,
TiltMultibeamCommand,
WaitForCommand,
CameraCommand,
GoToSurfaceCommand,
GoToSeabedCommand,
GoToHomeCommand,
PathSegment,
ReferenceAutoPilot,
MissionStatus,
DepthZeroReference,
ControlModeVertical,
ControlModeHorizontal,
CameraAction,
InstructionType,
MissionState,
)
from .telemetry import (
AttitudeTel,
Expand Down Expand Up @@ -287,6 +251,42 @@
MultibeamConfigTel,
MultibeamDiscoveryTel,
)
from .req_rep import (
SetOverlayParametersReq,
SetOverlayParametersRep,
GetOverlayParametersReq,
GetOverlayParametersRep,
SetCameraParametersReq,
SetCameraParametersRep,
GetCameraParametersReq,
GetCameraParametersRep,
SyncTimeReq,
SyncTimeRep,
PingReq,
PingRep,
SetThicknessGaugeParametersReq,
SetThicknessGaugeParametersRep,
ConnectClientReq,
ConnectClientRep,
DisconnectClientReq,
DisconnectClientRep,
GetBatteryReq,
GetBatteryRep,
SetMissionReq,
SetMissionRep,
GetMissionReq,
GetMissionRep,
SetInstructionUpdateReq,
SetInstructionUpdateRep,
SetPubFrequencyReq,
SetPubFrequencyRep,
GetTelemetryReq,
GetTelemetryRep,
SetPersistentStorageSettingsReq,
SetPersistentStorageSettingsRep,
GetPersistentStorageSettingsReq,
GetPersistentStorageSettingsRep,
)

__all__ = (
'BinlogRecord',
Expand Down Expand Up @@ -381,29 +381,6 @@
'GuestPortDetachStatus',
'GuestPortError',
'MultibeamFrequencyMode',
'Mission',
'Instruction',
'DepthSetPoint',
'Waypoint',
'ControlModeCommand',
'WaypointCommand',
'DepthSetPointCommand',
'TiltMainCameraCommand',
'TiltMultibeamCommand',
'WaitForCommand',
'CameraCommand',
'GoToSurfaceCommand',
'GoToSeabedCommand',
'GoToHomeCommand',
'PathSegment',
'ReferenceAutoPilot',
'MissionStatus',
'DepthZeroReference',
'ControlModeVertical',
'ControlModeHorizontal',
'CameraAction',
'InstructionType',
'MissionState',
'AquaTrollParameterBlock',
'AquaTrollSensorMetadata',
'AquaTrollSensorMetadataArray',
Expand Down Expand Up @@ -462,40 +439,29 @@
'DeactivateMultibeamCtrl',
'StartDiveCtrl',
'EndDiveCtrl',
'SetOverlayParametersReq',
'SetOverlayParametersRep',
'GetOverlayParametersReq',
'GetOverlayParametersRep',
'SetCameraParametersReq',
'SetCameraParametersRep',
'GetCameraParametersReq',
'GetCameraParametersRep',
'SyncTimeReq',
'SyncTimeRep',
'PingReq',
'PingRep',
'SetThicknessGaugeParametersReq',
'SetThicknessGaugeParametersRep',
'ConnectClientReq',
'ConnectClientRep',
'DisconnectClientReq',
'DisconnectClientRep',
'GetBatteryReq',
'GetBatteryRep',
'SetMissionReq',
'SetMissionRep',
'GetMissionReq',
'GetMissionRep',
'SetInstructionUpdateReq',
'SetInstructionUpdateRep',
'SetPubFrequencyReq',
'SetPubFrequencyRep',
'GetTelemetryReq',
'GetTelemetryRep',
'SetPersistentStorageSettingsReq',
'SetPersistentStorageSettingsRep',
'GetPersistentStorageSettingsReq',
'GetPersistentStorageSettingsRep',
'Mission',
'Instruction',
'DepthSetPoint',
'Waypoint',
'ControlModeCommand',
'WaypointCommand',
'DepthSetPointCommand',
'TiltMainCameraCommand',
'TiltMultibeamCommand',
'WaitForCommand',
'CameraCommand',
'GoToSurfaceCommand',
'GoToSeabedCommand',
'GoToHomeCommand',
'PathSegment',
'ReferenceAutoPilot',
'MissionStatus',
'DepthZeroReference',
'ControlModeVertical',
'ControlModeHorizontal',
'CameraAction',
'InstructionType',
'MissionState',
'AttitudeTel',
'AltitudeTel',
'ForwardDistanceTel',
Expand Down Expand Up @@ -549,4 +515,38 @@
'MultibeamPingTel',
'MultibeamConfigTel',
'MultibeamDiscoveryTel',
'SetOverlayParametersReq',
'SetOverlayParametersRep',
'GetOverlayParametersReq',
'GetOverlayParametersRep',
'SetCameraParametersReq',
'SetCameraParametersRep',
'GetCameraParametersReq',
'GetCameraParametersRep',
'SyncTimeReq',
'SyncTimeRep',
'PingReq',
'PingRep',
'SetThicknessGaugeParametersReq',
'SetThicknessGaugeParametersRep',
'ConnectClientReq',
'ConnectClientRep',
'DisconnectClientReq',
'DisconnectClientRep',
'GetBatteryReq',
'GetBatteryRep',
'SetMissionReq',
'SetMissionRep',
'GetMissionReq',
'GetMissionRep',
'SetInstructionUpdateReq',
'SetInstructionUpdateRep',
'SetPubFrequencyReq',
'SetPubFrequencyRep',
'GetTelemetryReq',
'GetTelemetryRep',
'SetPersistentStorageSettingsReq',
'SetPersistentStorageSettingsRep',
'GetPersistentStorageSettingsReq',
'GetPersistentStorageSettingsRep',
)
12 changes: 12 additions & 0 deletions blueye/protocol/types/message_formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -711,28 +711,40 @@ class RecordState(proto.Message):
If the main camera is recording
main_seconds (int):
Main record time (s)
main_fps (float):
Main record fps
guestport_is_recording (bool):
If the guestport camera is recording
guestport_seconds (int):
Guestport record time (s)
guestport_fps (float):
Guestport record fps
multibeam_is_recording (bool):
If the multibeam is recording
multibeam_seconds (int):
Multibeam record time (s)
multibeam_fps (float):
Multibeam record fps
"""

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

main_seconds = proto.Field(proto.INT32, number=2)

main_fps = proto.Field(proto.FLOAT, number=7)

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

guestport_seconds = proto.Field(proto.INT32, number=4)

guestport_fps = proto.Field(proto.FLOAT, number=8)

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

multibeam_seconds = proto.Field(proto.INT32, number=6)

multibeam_fps = proto.Field(proto.FLOAT, number=9)


class TimeLapseState(proto.Message):
r"""Time-lapse state published if time-lapse mission is running.
Expand Down

0 comments on commit c8bfa1a

Please sign in to comment.