Skip to content

Commit

Permalink
fixed wierd teleop controls
Browse files Browse the repository at this point in the history
  • Loading branch information
r4stered committed Oct 28, 2024
1 parent 14920fe commit ef5fe55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/cpp/str/SwerveDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void SwerveDrive::Drive(units::meters_per_second_t xVel,
frc::Rotation2d rot = poseEstimator.GetEstimatedPosition().Rotation();

if(frc::DriverStation::IsTeleop()) {
rot = frc::Rotation2d{GetYawFromImu()};
rot = odom.GetPose().Rotation();
}

if (fieldRelative) {
Expand Down

0 comments on commit ef5fe55

Please sign in to comment.