FIRST Robotics Competition Code

RoboRio – FRC Controller [2015 – 2020?]

[java]
void newController() {
Watts = PDPcalcpowerusage();
}

public static int PDPcalcpowerusage() {
return (VoltageIn * AmperageIn);
}
[/java]

[java]
public void TeamCode() {
if ( Year == 2015 ) "Java – Perfect No Issues";
}
[/java]

Git Hub [2015]

cRio – FRC Controller [2011 – 2014]

[java]
void oldController() {
for(int i = 0; i < (digitalInputs); i++) {
countNumberOfInput++;
}
}
[/java]

[java]
public void TeamCode() {
if ( Year == 2013 | 2014 ) "Java – Perfect No Issues";
if ( Year == 2012 ) "Labview – Simple Coding Issues &amp; Camera Lag";
if ( Year == 2011 ) "C – Robot Drive Lag &amp; Large Amounts of Camera Lag";
}
[/java]

Git Hub [2014]

Git Hub [2013]

Git Hub [2012]

Git Hub [2011]

[java]
for(int i = 0; i < 10; i++) {
i = i – 2;
}
[/java]