updateSockets method

Future<void> updateSockets()

Set the right IP addresses for the rover or tank.

Implementation

Future<void> updateSockets() async {
  final settings = models.settings.network;
  data.destination = settings.subsystemsSocket.copyWith(address: addressOverride);
  video.destination = settings.videoSocket.copyWith(address: addressOverride);
  autonomy.destination = settings.autonomySocket.copyWith(address: addressOverride);
}