AutonomyAStarState.start constructor

AutonomyAStarState.start(
  1. {required AutonomyInterface collection,
  2. required GpsCoordinates goal}
)

Implementation

factory AutonomyAStarState.start({
  required AutonomyInterface collection,
  required GpsCoordinates goal,
}) => AutonomyAStarState(
  position: collection.gps.coordinates,
  goal: goal,
  collection: collection,
  direction: DriveDirection.stop,
  orientation: collection.imu.orientation!,
  depth: 0,
);