save method

Future<void> save()

Saves the throttle to the rover. Does not perform a handshake.

Implementation

Future<void> save() async {
  isLoading = true;
  notifyListeners();
  final throttle = controller.value;
  final command = DriveCommand(setThrottle: true, throttle: throttle);
  models.messages.sendMessage(command);
  await Future<void>.delayed(const Duration(milliseconds: 200));
  isLoading = false;
  notifyListeners();
}