Skip to content

Instantly share code, notes, and snippets.

@joelgallant
joelgallant / Gordian commands
Created March 10, 2013 20:40
Autonomous commands for gordian
encoderDistance() - Returns the current distance of the left side (resets to 0 at beginning of autonomous and when moving commands are run) (double)
isPastSetpoint() - Returns whether the shooter is at the setpoint RPM (boolean)
gyro() - Returns the angle of the gyro (double)
isEnabled() - Returns whether the driverstation is actually enabled (boolean)
print(Value) - Prints the value to the console
log(Value) - Prints the value to the drivestation, log file and console
arcade(Double, Double) - Drives using speed value and turn value respectively
tank(Double, Double) - Drives using left speed value and right speed value respectively
stop() - Stops the drivetrain
shiftGear() - Switches gear of the drivetrain