Turn Task
Construct a new TurnTask that will turn the robot to the given angle.
Parameters
the drive instance to use, this subsystem will be automatically attached to the task if it is a BunyipsSubsystem
the angle to turn to, if this is a delta angle this will be counter-clockwise
if this angle is a delta from the current drive rotation at runtime
Construct a new TurnTask that will turn the robot to the given angle.
Parameters
the consumer to set the power of the robot, can ignore the x and y values if not needed
the supplier to get the current pose of the robot, can ignore the x and y values if not needed
the angle to turn to, if this is a delta angle this will be counter-clockwise
if this angle is a delta from the current drive rotation at runtime
Construct a new TurnTask that will turn the robot to the given global angle.
Parameters
the RoadRunner drive instance to use, this subsystem will be automatically attached to the task if it is a BunyipsSubsystem, note RoadRunner methods are not used in this task and are only for localisation purposes
the angle to turn to in a global coordinate frame
Construct a new TurnTask that will turn the robot to the given global angle.
Parameters
the consumer to set the power of the robot, can ignore the x and y values if not needed
the supplier to get the current pose of the robot, can ignore the x and y values if not needed
the angle to turn to in a global coordinate frame