Skip to content

Commit

Permalink
Small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Lesches committed Jan 30, 2024
1 parent debca80 commit ed472e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/src/collection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class Collection {
Future<void> dispose() async {
parent.stopAll();
parent.killAll();
parent.isolates.clear();
await videoServer.dispose();
}

Expand Down
1 change: 1 addition & 0 deletions lib/src/isolates/parent.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class VideoController extends IsolateParent<VideoCommand, IsolatePayload>{
final command = VideoCommand(details: CameraDetails(status: CameraStatus.CAMERA_DISABLED));
for (final name in CameraName.values) {
if (name == CameraName.CAMERA_NAME_UNDEFINED) continue;
if (name == CameraName.ROVER_FRONT) continue;
send(data: command, id: name);
}
}
Expand Down
6 changes: 3 additions & 3 deletions lib/src/utils/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Map<CameraName, String> cameraNames = {

/// Map for WINDOWS devices
Map<CameraName, int> cameraIndexes = {
CameraName.ROVER_FRONT: 0,
CameraName.ROVER_REAR: 1,
CameraName.AUTONOMY_DEPTH: 2,
CameraName.ROVER_REAR: 0,
CameraName.AUTONOMY_DEPTH: 1,
CameraName.ROVER_FRONT: 2,
CameraName.SUBSYSTEM1: 3,
CameraName.SUBSYSTEM2: 4,
CameraName.SUBSYSTEM3: 5,
Expand Down

0 comments on commit ed472e3

Please sign in to comment.