I hereby claim:
- I am carneeki on github.
- I am carneeki (https://keybase.io/carneeki) on keybase.
- I have a public key whose fingerprint is D7D0 B442 AA63 ECBC F940 44DD 0156 19DB FBFE F9A8
To claim this, I am signing this object:
class LoopFor | |
{ | |
public static void main (String[] args) | |
{ | |
for(int i=1; i<=10; i++) // here we create our counter, then set the condition, | |
// and finally increment the counter all in one line | |
{ | |
System.out.println(i); // this is where we do our stuff | |
} | |
} |
class HelloWorld | |
{ | |
public static void main (String[] args) | |
{ | |
System.out.println("Hello World!"); | |
} | |
} |
package first.frc.landownunder.components; | |
import edu.wpi.first.wpilibj.Counter; | |
import edu.wpi.first.wpilibj.DigitalInput; | |
import edu.wpi.first.wpilibj.PIDSource; | |
/** | |
* A tachometer using DigitalInput high pulses. | |
* @author carneeki | |
* @since 2012-02-03 05:05AEDT |
I hereby claim:
To claim this, I am signing this object:
/* | |
* Autonomous Board Test | |
* | |
* Test an individual switch for Autonomous on the RoboRIO for BGHS/4802 in the | |
* 2016 FRC game. | |
*/ | |
void setup() | |
{ | |
// send serial to the PC |
import java.util.ArrayList; | |
public class FSM | |
{ | |
public class State | |
{ | |
final boolean acceptor; | |
private final int num; | |
final int r0; // what to return if given zero | |
final int r1; // what to return if given one |
// RGB flasher for Darius :D | |
int red = 3; | |
int blu = 5; | |
int grn = 9; | |
void setup() { | |
pinMode(red, OUTPUT); | |
pinMode(grn, OUTPUT); | |
pinMode(blu, OUTPUT); | |
digitalWrite(red, LOW); |
public class Kiwi | |
{ | |
SafePWM s1 = new SafePWM(0); // motor 1 pwm port 0 | |
SafePWM s2 = new SafePWM(1); // motor 2 | |
SafePWM s3 = new SafePWM(2); // motor 3 | |
private final double[][] inversion = { {2/3, 0, 1/3}, {-1/3, 1/sqrt(3), 1/3}, {-1/3, -1/sqrt(3), 1/3}}; | |
public Kiwi() | |
{ |
# Add a function to get weather refreshed every ten minutes to terminal | |
# using wttr.in. Can be used as follows: | |
# wttr Arlen # Fictional town in Texas | |
# wttr KSGF # ICAO code for Springfield, Missouri | |
# wttr # Use a default location in code below | |
# | |
# See wttr.in/:help for more details | |
wttr() | |
{ | |
tmpfile=$(mktemp /tmp/wttr.XXXXXX) |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
/* | |
* Simple C program to give test parameters for Kiwi Drive robot: x, y, p | |
* Two joysticks required: | |
* one provides vector of robot direction ('x' + 'y' components), | |
* the other provides pivot component (one axis only, called 'p') | |
* Values are input on command line as space separated values: x y p |