init method

Future<void> init()

Listens for incoming confirmations from the rover that it received the command.

Implementation

Future<void> init() async {
    await Future<void>.delayed(const Duration(seconds: 1));
	_subscription = models.messages.stream.onMessage(
		name: AutonomyCommand().messageName,
		constructor: AutonomyCommand.fromBuffer,
		callback: (data) => _handshake = data,
	);
}