This commit is contained in:
EdwardFaucher
2023-03-07 19:13:16 -05:00
parent f8b7d9c61d
commit de668cfe2e
5 changed files with 43 additions and 62 deletions

View File

@ -23,13 +23,13 @@ public class Gyro extends CommandBase {
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {
if(basePilotable.getpitch()<10)
if(basePilotable.getpitch()>4)
{
basePilotable.drive(0.4, 0);
basePilotable.drive(0.3, 0);
}
else if(basePilotable.getpitch()>-10)
else if(basePilotable.getpitch()<-4)
{
basePilotable.drive(-0.4, 0);
basePilotable.drive(-0.3, 0);
}
else
{