Skip to content

Commit aff470e

Browse files
Update Literal Actual Program
1 parent 0dafe4a commit aff470e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Literal Actual Program

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Robot : public frc::TimedRobot {
2020
Robot() {}
2121

2222
void RobotInit() override {
23-
compressor.Start();
23+
compressor.Stop();
2424
};
2525
void RobotPeriodic() override {}
2626
void AutonomousInit() override {
@@ -43,11 +43,11 @@ class Robot : public frc::TimedRobot {
4343
//the else if statments is mostly likely unneeded, will test with and without so see if it is needed
4444
// 3 = A button
4545
if (xbox.GetRawButton(3) == 1) {
46-
Drive.ArcadeDrive(xbox.GetRawAxis(1) * -1 / 2, xbox.GetRawAxis(0) / 2);
46+
Drive.ArcadeDrive(sqrt(xbox.GetRawAxis(1)) * -.5, sqrt(xbox.GetRawAxis(0)) * .5);
4747
} else if (xbox.GetRawButton(3) == 0) {
48-
Drive.ArcadeDrive(xbox.GetRawAxis(1) * -1 * .7, xbox.GetRawAxis(0) / 2);
48+
Drive.ArcadeDrive(sqrt(xbox.GetRawAxis(1)) * -.7, sqrt(xbox.GetRawAxis(0)) * .5);
4949
} else {
50-
Drive.ArcadeDrive(xbox.GetRawAxis(1) * -1 * .7, xbox.GetRawAxis(0) / 2);
50+
Drive.ArcadeDrive(sqrt(xbox.GetRawAxis(1)) * -.7, sqrt(xbox.GetRawAxis(0)) * .5);
5151
}
5252
//HAB Lift(Untested)
5353
//HAB lift

0 commit comments

Comments
 (0)