mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Add RamseteCommand (#1951)
This commit is contained in:
@@ -47,7 +47,7 @@ void DriveSubsystem::SetMaxOutput(double maxOutput) {
|
||||
}
|
||||
|
||||
double DriveSubsystem::GetHeading() {
|
||||
return std::remainder(m_gyro.GetAngle(), 360);
|
||||
return std::remainder(m_gyro.GetAngle(), 360) * (kGyroReversed ? -1. : 1.);
|
||||
}
|
||||
|
||||
double DriveSubsystem::GetTurnRate() {
|
||||
|
||||
@@ -33,7 +33,7 @@ const double kEncoderDistancePerPulse =
|
||||
// Assumes the encoders are directly mounted on the wheel shafts
|
||||
(kWheelDiameterInches * 3.142) / static_cast<double>(kEncoderCPR);
|
||||
|
||||
const bool kGyroReversed = false;
|
||||
const bool kGyroReversed = true;
|
||||
|
||||
const double kStabilizationP = 1;
|
||||
const double kStabilizationI = .5;
|
||||
|
||||
Reference in New Issue
Block a user