Skip to content

Instantly share code, notes, and snippets.

@madhephaestus
Last active May 17, 2018 18:20
Show Gist options
  • Save madhephaestus/0d9bd5d6fba5c526dd3b71e8b0d038d4 to your computer and use it in GitHub Desktop.
Save madhephaestus/0d9bd5d6fba5c526dd3b71e8b0d038d4 to your computer and use it in GitHub Desktop.
Testing the SimplePacketComms API for the Hephaestus Arm
@GrabResolver(name='sonatype', root='https://oss.sonatype.org/content/repositories/releases/')
@Grab(group='com.neuronrobotics', module='SimplePacketComsJava', version='0.1.2')
import edu.wpi.SimplePacketComs.device.hephaestus.HephaestusArm;
HephaestusArm arm = new HephaestusArm(0x3742,0x7);
arm.connect();
HephaestusArm slave = new HephaestusArm(0x3742,0x8);
slave.connect();
while(!Thread.interupted()){
Thread.sleep(10);
slave.setRawValues(arm.getRawValues())
}
slave.disconnect();
arm.disconnect();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment