Skip to content

Commit

Permalink
more robust opmode init
Browse files Browse the repository at this point in the history
Former-commit-id: 7ef1b1c
Former-commit-id: 2e62c15
  • Loading branch information
rgatkinson committed Mar 15, 2016
1 parent 095ad57 commit f09b825
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
Binary file modified FtcRobotController/libs/FtcCommon-release.aar
Binary file not shown.
Binary file modified FtcRobotController/libs/Hardware-release.aar
Binary file not shown.
Binary file modified FtcRobotController/libs/RobotCore-release.aar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package org.swerverobotics.library.internal.tests;

import com.qualcomm.robotcore.eventloop.opmode.OpMode;

import org.swerverobotics.library.interfaces.Disabled;
import org.swerverobotics.library.interfaces.TeleOp;

@TeleOp(name="Long Init Test (Loop)", group="Swerve Tests")
@Disabled
public class LongInitTest extends OpMode
{
int counter = 0;

@Override
public void init()
{
try {
Thread.sleep(3000);
}
catch (InterruptedException ignored)
{
}
}

@Override
public void loop()
{
telemetry.addData("counter", counter++);
}
}

0 comments on commit f09b825

Please sign in to comment.