From f57a481554e3722975989f6ff436261656df1043 Mon Sep 17 00:00:00 2001 From: Antoine PerreaultE Date: Wed, 15 Feb 2023 18:35:35 -0500 Subject: [PATCH] fhghj --- .../frc/robot/subsystems/BasePilotable.class | Bin 3529 -> 3591 bytes src/main/java/frc/robot/RobotContainer.java | 5 +++-- .../frc/robot/subsystems/BasePilotable.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/main/frc/robot/subsystems/BasePilotable.class b/bin/main/frc/robot/subsystems/BasePilotable.class index 20fa95de559406b9cb9fb8c40403e23dadb6ccea..4fa115f0f2e85cfa728212880d73812a328be609 100644 GIT binary patch delta 1111 zcmZ`&Yf}?f7=8}B*-bVF8>>JCW)RyMAdE6)5KW=VJvdN{L7_2f31Ni3c{5elfF?eV*q%@3ZH5&+dzg#Y*Gl z>K{)5?7=U;8|R8NZ*5msSO1b{2Wt^mi{|Q!N5hsm5S>ce;n69R!8sPS>~JDty1=l9 z!vW2J4=p<06Sc~Ar4{dsK4rISKiYM)F;s~YN>zZP10@XZanl}1T2VWiOvwH&4jr0A zJsi#)>g8}j)7m_=Df%%u0;Xl!3`%X?kQ@7PkmExPi2sz1&4V0oz~jOZ4C@$T@QP>Z zJK|SWb8viwpg5zpY9SogaZEf_>y#7tSp2KD#=;z%;bAa3QsGIn$4td3%@K@omU;QpwSz-O!m#$eGxd97mji9dIFu zX&tA;HAkb8f+e0i+MPapB0XlrCT;JI7(SKZTSy=4iH*rF7}=a(rUd^_=0If(@11t zXV9D%P8WpEyzp5;=*|mY6a+sBvq9QSv-&5_1{FfxgIS!B!UaFh=__Cwy3DM ze}D!<3M{SiQT+p-eDEiDvFs)ZJXtkUea^YdoZH+yW2kK^r36Pb)Z-}47ENJI8p08wM++=6j?po3x6q0< z`avw#x1&SGae`DjDW>W)oIoc{))kkZ)UX8+1gdGMyWdt}8ya95)x>d6v;ky9z%3Z zR~A+PH?O-uus@@^E|9QwXQqWW8sQTUvhyoi@P%Ju+562 zP9=)@y@&g>Mk$K5V~+2qLq$6%FMdR@H&E8zS55aiHrYIIKSGV)h&kYL3438oqc9%om@Z<3_3ljSCV8htoz{EPyt2WLDO z@WJIpZa^3g3Z{T?F({Y=!sVb)!Guw6Em!=4F{{9kx!H#aFQ$SKlh_#yRro{GER@BI zrrA5?!;BXhOloIdZhP>6Jw812qH$B3_h5cq>tb5G)rTiu#PVWs8BeJ-)FQk-jH?RZxj_YW!8_=Ere diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 715aa36..a7c9738 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -55,8 +55,9 @@ public RobotContainer() { configureBindings(); basePilotable.setDefaultCommand(brakeOuvre); - new RunCommand(basePilotable.drive(-manette1.getLeftY(), manette1.getLeftX(), -manette1.getLeftTriggerAxis()+manette.getRightTriggerAxis()), basePilotable), null)); - } + basePilotable.drive(-manette1.getLeftY(), manette1.getLeftX(), -manette1.getLeftTriggerAxis()+manette1.getRightTriggerAxis(), basePilotable); +} + private void configureBindings() {} diff --git a/src/main/java/frc/robot/subsystems/BasePilotable.java b/src/main/java/frc/robot/subsystems/BasePilotable.java index 4ed9d06..2156046 100644 --- a/src/main/java/frc/robot/subsystems/BasePilotable.java +++ b/src/main/java/frc/robot/subsystems/BasePilotable.java @@ -32,7 +32,7 @@ public class BasePilotable extends SubsystemBase { return gyroscope.getPitch(); } - public void drive(double xSpeed, double zRotation, double d){ + public void drive(double xSpeed, double zRotation, double d, BasePilotable basePilotable){ drive.arcadeDrive(xSpeed, zRotation); } public double distance(){