submit method
Sends this command to the rover using Sockets.autonomy.
Implementation
Future<void> submit() async {
_handshake = null;
isLoading = true;
notifyListeners();
models.sockets.autonomy.sendMessage(value);
models.home.setMessage(severity: Severity.info, text: "Submitting autonomy command...");
await Future<void>.delayed(const Duration(seconds: 1));
if (_handshake != null) {
models.home.setMessage(severity: Severity.info, text: "Command received");
} else {
models.home.setMessage(severity: Severity.error, text: "Command not received");
}
isLoading = false;
notifyListeners();
}