Merge branch 'main' of https://demerso.net/pls5618/2023/robot
This commit is contained in:
commit
919409e4ff
@ -26,11 +26,11 @@ public class Gyro extends CommandBase {
|
||||
public void execute() {
|
||||
if(basePilotable.getpitch()>6)
|
||||
{
|
||||
basePilotable.drive(0.4*basePilotable.getpitch()/12, 0);
|
||||
basePilotable.drive(0.3*basePilotable.getpitch()/12, 0);
|
||||
}
|
||||
else if(basePilotable.getpitch()<-6)
|
||||
{
|
||||
basePilotable.drive(0.4*basePilotable.getpitch()/12, 0);
|
||||
basePilotable.drive(0.3*basePilotable.getpitch()/12, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user