This commit is contained in:
2024-11-25 18:35:18 -05:00
6 changed files with 334 additions and 37 deletions

View File

@ -27,16 +27,12 @@ public class FollowAprilTag extends Command {
@Override
public void execute() {
if (lanceur.limitswitch1()){
}
else if(lanceur.limitswitch2()){
}
else if (enlignement.getv()==1)
{
lanceur.tourelRotation(0,0, enlignement.getx()/30);
}
if (enlignement.getv()==1)
{
lanceur.tourelRotation(0,0, enlignement.getx()/30);
}
else
{
lanceur.tourelRotation(0, 0, 0);