Skip to content

Instantly share code, notes, and snippets.

@techieji
Created January 31, 2022 21:18
Show Gist options
  • Save techieji/e3d1355edb8db09a4cd774f475218eef to your computer and use it in GitHub Desktop.
Save techieji/e3d1355edb8db09a4cd774f475218eef to your computer and use it in GitHub Desktop.
import com.ctre.phoenix.motorcotrol.can.WPI_TalonSRX;
import java.util.concurrent.TimeUnit;
class Main {
public static int LEFT_MOTOR1 = 9;
public static void main(String... args) {
WPI_TalonSRX m = new WPI_TalonSRX(LEFT_MOTOR1);
m.set(0.5);
TimeUnit.SECONDS.sleep(2);
m.set(0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment