turnLeft method

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

Implementation

@override
Future<void> turnLeft() async  {
  collection.logger.debug("Turning left");
  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));
}