turnRight method

  1. @override
Future<void> turnRight()
override

Implementation

@override
Future<void> turnRight() async  {
  collection.logger.debug("Turning right");
  final heading = collection.imu.heading;
  final orientation = Orientation(z: heading - 90);
  collection.imu.update(orientation);
  if (shouldDelay) await Future<void>.delayed(const Duration(milliseconds: 500));
}