Skip to content

Instantly share code, notes, and snippets.

View pjtnt11's full-sized avatar

Patrick Stephen Jr. pjtnt11

View GitHub Profile
@pjtnt11
pjtnt11 / GyroExample.java
Created February 20, 2017 02:15
Example code for using the modern robotics gyro.
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.GyroSensor;
public class GyroExample extends LinearOpMode
{
private DcMotor rightMotor;
private DcMotor leftMotor;