init method
Initializes the view model.
Implementation
Future<void> init() async {
recenterRover();
await Future<void>.delayed(const Duration(seconds: 1));
_subscription = models.messages.stream.onMessage<AutonomyData>(
name: AutonomyData().messageName,
constructor: AutonomyData.fromBuffer,
callback: onNewData,
);
models.rover.metrics.position.addListener(recenterRover);
models.settings.addListener(notifyListeners);
// Force the initial update, even with no new data.
recenterRover();
onNewData(AutonomyData());
}