Skip to content

Commit

Permalink
Changed ports to work with dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Lesches committed Sep 20, 2023
1 parent 1226d7b commit a6fec0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/collection.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final subsystemsAddress = InternetAddress("192.168.1.20");
/// A collection of all the different services used by the autonomy program.
class AutonomyCollection {
/// A server to communicate with the dashboard.
final AutonomyServer dashboard = AutonomyServer(port: 8004);
final AutonomyServer dashboard = AutonomyServer(port: 8003);
/// A server to communicate with the subsystems.
late final SubsystemsServer subsystems;
/// A helper class to handle driving the rover.
Expand All @@ -19,7 +19,7 @@ class AutonomyCollection {
/// Initializes the rover, overriding the [subsystems] server if [tankMode] is true.
Future<void> init({required bool tankMode}) async {
subsystems = SubsystemsServer(
port: 8003,
port: 8004,
address: tankMode ? InternetAddress.loopbackIPv4 : subsystemsAddress,
);
await subsystems.init();
Expand Down

0 comments on commit a6fec0f

Please sign in to comment.