r
This commit is contained in:
parent
de668cfe2e
commit
286ea352ff
@ -25,11 +25,11 @@ public class Gyro extends CommandBase {
|
|||||||
public void execute() {
|
public void execute() {
|
||||||
if(basePilotable.getpitch()>4)
|
if(basePilotable.getpitch()>4)
|
||||||
{
|
{
|
||||||
basePilotable.drive(0.3, 0);
|
basePilotable.drive(0.3*basePilotable.getpitch()/12, 0);
|
||||||
}
|
}
|
||||||
else if(basePilotable.getpitch()<-4)
|
else if(basePilotable.getpitch()<-4)
|
||||||
{
|
{
|
||||||
basePilotable.drive(-0.3, 0);
|
basePilotable.drive(0.3*basePilotable.getpitch()/12, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user