Skip to content

Commit

Permalink
fix choreo.h
Browse files Browse the repository at this point in the history
  • Loading branch information
shueja committed Jan 8, 2024
1 parent 13db51b commit 552ea84
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions choreolib/src/main/native/include/choreo/lib/Choreo.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ class Choreo {
* global heading of the robot
* @param outputChassisSpeeds a function that consuming the calculated robot
* relative ChassisSpeeds
* @param useAllianceColor if true, mirror the trajectory along the midline of
* the field
* @param mirrorTrajectory If this returns true, the path will be mirrored to
* the opposite side, while keeping the same coordinate system origin. This
* will be called every loop during the command.
* @param requirements the frc2::Requirements of the command
* @return an frc2::CommandPtr containing the command that will command your
* drivebase to follow a trajectory
Expand All @@ -60,7 +61,7 @@ class Choreo {
frc::PIDController xController, frc::PIDController yController,
frc::PIDController rotationController,
std::function<void(frc::ChassisSpeeds)> outputChassisSpeeds,
bool useAllianceColor, frc2::Requirements requirements = {});
std::function<bool(void)> mirrorTrajectory, frc2::Requirements requirements = {});

/**
* Creates a CommandPtr that commands your drivebase to follow a Choreo
Expand All @@ -73,8 +74,9 @@ class Choreo {
* the robots position
* @param outputChassisSpeeds a function that consuming the calculated robot
* relative ChassisSpeeds
* @param useAllianceColor if true, mirror the trajectory along the midline of
* the field
* @param mirrorTrajectory If this returns true, the path will be mirrored to
* the opposite side, while keeping the same coordinate system origin. This
* will be called every loop during the command.
* @param requirements the frc2::Requirements of the command
* @return an frc2::CommandPtr containing the command that will command your
* drivebase to follow a trajectory
Expand All @@ -83,7 +85,7 @@ class Choreo {
ChoreoTrajectory trajectory, std::function<frc::Pose2d()> poseSupplier,
ChoreoControllerFunction controller,
std::function<void(frc::ChassisSpeeds)> outputChassisSpeeds,
bool useAllianceColor, frc2::Requirements requirements = {});
std::function<bool(void)> mirrorTrajectory, frc2::Requirements requirements = {});

/**
* Creates a ChoreoControllerFunction handles the feedback of the drivebase
Expand Down

0 comments on commit 552ea84

Please sign in to comment.