From ba81040797e972c5541635aace7b4eaad64fda53 Mon Sep 17 00:00:00 2001 From: OlivierDubois Date: Mon, 13 Feb 2023 19:41:48 -0500 Subject: [PATCH] Very good, cool and amazing commit --- bin/main/frc/robot/commands/BrakeFerme.class | Bin 635 -> 917 bytes bin/main/frc/robot/commands/BrakeOuvre.class | Bin 635 -> 964 bytes .../frc/robot/subsystems/BasePilotable.class | Bin 3529 -> 3529 bytes .../java/frc/robot/commands/BrakeFerme.java | 2 +- .../java/frc/robot/commands/BrakeOuvre.java | 22 ++++++++++++++---- 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/bin/main/frc/robot/commands/BrakeFerme.class b/bin/main/frc/robot/commands/BrakeFerme.class index c0d81dfbf14f0b6d5b12b19c4c10469581e3b547..86f59a11faa27ace64cf4218196acf7b82ca548e 100644 GIT binary patch literal 917 zcmb7CO>fgc5PcicI5jDufl|Ig-BPJ30xTgUB#Jn+BBuzD0+HI=+Mc%C+TLotE-ily z2_(4lqY$$VC_Y$xTxMrxXWqOwyWf9&{tDn30uK#={=SJrqa$s@SZA5clOo(U@|cEX zGV;(ActA-RemGI#zA}Y%UaF#_C%@~%ooU~;EJ$D>;^VDKwUtrI@%m^speUo_ys(t< zh-%fAKmnfwj8DINaggp%px-Hrt*6u9m{kgjdJm?WYfV4tW=cN?4GycyQL_Zs*k+M zOM}fx8#e`3|Ef&Dqce(2>)I$!cv*uzN6=TrkTHux;v56+acZnf6Vp(+*Xqum{;^Yt zRd5}D7l8)m&|+_neGhH6^Bg_p+XkQh7x=rq&L>>?#!&-{Y+GF8I(uw87ru{cxPFma z!i@@otD7P$*B~s{BHa29gnli;ZQQAFn5n4aaK9GeF8UROKdacNMYzYx8(8@X(9XeG literal 635 zcmah_yG{Z@6g>m0=mMfBsD&CkMB^qJW1+Etgo@Z`DClN)hcLJgGP|qBZ?ds6vG4=@ zDC3=71QLxl_i^T)bI+ZR&$o8~=h!MB$FMU{j-^67j4dbheIB@x)l&RUbcFIn0R}@; zxQX>JmexS3DAtuH?a|5iyw%QlEglJm#Y-8;_=+LlIOs7L?a&n_@>nim0gDWkt_;L= z;@d*qa@!+DwHrFz>v1J@KLL$+C?kfw?w|H97)-rRa!)>yR6#rnCyA-bi@>GrjlMQf zltC<%O2)Auko7ey>JTv+YJi+-=q5~*BRW!hs?5INc*O5H_Ca&>ZJ;ZdzJy|dx>L$b zqs><=y-<;ZNztSX6k(uD5h!Itl*`mHtV{(C)1I&yS!)Apb3`^JR{kf}ekHDwU}pJ@ w#I?I08@E$pJ$syN)Ml$#r^v8@+C<_g?MWv8oQmm_GuOLw%X3rL^>k|U3l@80N&o-= diff --git a/bin/main/frc/robot/commands/BrakeOuvre.class b/bin/main/frc/robot/commands/BrakeOuvre.class index fe20788d362a4eeadac4d305a312117cdd7fdc3d..a00f718e2b8815537c33e71a8a111a052e3f8d1f 100644 GIT binary patch literal 964 zcmb7CO>Yx15Pe?KY`UZb0;PO~ZVOUV1gwORkSOBNik>1s3Phqe@2=ar-Po1w4J{J< zEhLcO&W}Qj8&LMJRB*9p#xu|FJ^RPcFW&$>K^!7r=c4)}y81y_5?3uCltVS(Y(TV;gR#YE&W zDI?O{Nv+}|5?c_3r*SktJW-Ax$HEWAbmsJ-Q1R-6)%$TS3gJZT_NASc|JwbrwmU+E zP8%UEGA#B7GloNFq}to?3OWO+#LIG=3iD>_R(GH?UW~YrKL1^8coGcD6=Q0iicE~W zhmsfa0~vp=zdmZ=8pF!jMvxB-p*R*<>HL^bIeFXP@dP7jw+Ykk3#t*|4wZ(wG@00z z{&73ApYqTv#0sd7eiuW4IW#Gnqc}v1)_KYv(`i6^^cB&&Zu>JXe5WkHC0d)*<0rec zwol^-mvQB^wuq}01m8DBSgJu-sztc|9|*l#gd4b7;V@HC$Kg&b!Y%YF2xqHUt3|j? I$^$I_0zq8TJOBUy literal 635 zcmah_O;5r=6r81%Y5`Fc)PovtipC}y<3ZyA5>7-98V=l+vV_Ibl5LB|-{i%Ui3fjx zKg#&FMIh1W<$cV)nKy4gKHuH}oMY2MhGDy>Tt@|+AadMbIOKjebZUy7^P<5a<9de)cpiBqrMCocAJ0NyI`>OI>|lxL{gS`6mA?*WeC4Z+xOer zL{9pVP%0ipfq;`U@deA2W3T`K diff --git a/bin/main/frc/robot/subsystems/BasePilotable.class b/bin/main/frc/robot/subsystems/BasePilotable.class index 96315e44e0c344eeb149130e8f604a849648fba6..a1ecf8d0e5dc7b0fe12ec67cf110faf2ead1688a 100644 GIT binary patch delta 360 zcmXX?OG^S_6g}eu=No5orcugQ;v!R%(i+Voiy#sq3R(nWi&hcQCi(#_+V!xwa{|0;f3l;EdK>L0XjkZWVQ0P*^URS1Nq46x2W}c5ovhM+cr^b_L8zCABHA zho%bS&lAEfJ;*(w18{)PQB&kdR#f^Dc_~gpS#pm;AVKR&J)VSy6oN?dUK$C;F^prH z(PErIl8(FqGQBlp0t1*t1X=dwP{b5ZR)qxxdH7MFZ)Qbiv&`lwrM^{a)fP@#xa6{N z-N8os9sgRRg+^c7W-U~;aofRA`US_XSKK}KlaFvOa5`X~GFr@t;2u%fh~Wbzd}4vN Kv?4#Yp;^DagiYfB delta 350 zcmYL@OG^TA6vfZqNBSRUs+qBeP9{-IDOOs8N)M=rB#44`VvAPMqD^0*7VWa^anqs? z&?=(FOsHL}Y#sCw{2E={1ebI9oqOS&mesPJ3xdibMFp`+O%e0QtYZW>i1tr|5*h5tyLx+Ju{)%6us9Beuc z^^qAW=_zz$5<{3m64S^d&6f>11BJiCocP0(Wy&$-DWSfvM~h9IHZYLb->bQ(b-dl=D^7fGxO?gJ9%jvQJ7A7dT3okq&*@Ky;S=-t#sckVd9gxO&G`cv Ca7-Hj diff --git a/src/main/java/frc/robot/commands/BrakeFerme.java b/src/main/java/frc/robot/commands/BrakeFerme.java index d8dceff..1f0493a 100644 --- a/src/main/java/frc/robot/commands/BrakeFerme.java +++ b/src/main/java/frc/robot/commands/BrakeFerme.java @@ -21,7 +21,7 @@ public class BrakeFerme extends CommandBase { // Called when the command is initially scheduled. @Override public void initialize() { - .fermer(); + basePilotable.BrakeFerme(); } // Called every time the scheduler runs while the command is scheduled. diff --git a/src/main/java/frc/robot/commands/BrakeOuvre.java b/src/main/java/frc/robot/commands/BrakeOuvre.java index f2a2389..9198398 100644 --- a/src/main/java/frc/robot/commands/BrakeOuvre.java +++ b/src/main/java/frc/robot/commands/BrakeOuvre.java @@ -1,24 +1,34 @@ -// Copyright (c) FIRST and other WPILib contributors. +-// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.commands; import edu.wpi.first.wpilibj2.command.CommandBase; +import frc.robot.subsystems.BasePilotable; public class BrakeOuvre extends CommandBase { - /** Creates a new BrakeOuvre. */ - public BrakeOuvre() { + + private BasePilotable basePilotable; + + /** Creates a new BrakeFerme. */ + public BrakeOuvre(BasePilotable basePilotable) { + this.basePilotable = basePilotable; // Use addRequirements() here to declare subsystem dependencies. + addRequirements(basePilotable); } // Called when the command is initially scheduled. @Override - public void initialize() {} + public void initialize() { + basePilotable.BrakeOuvre(); + } // Called every time the scheduler runs while the command is scheduled. @Override - public void execute() {} + public void execute() { + + } // Called once the command ends or is interrupted. @Override @@ -30,3 +40,5 @@ public class BrakeOuvre extends CommandBase { return false; } } + +}