Last active
May 17, 2018 18:20
-
-
Save madhephaestus/0d9bd5d6fba5c526dd3b71e8b0d038d4 to your computer and use it in GitHub Desktop.
Testing the SimplePacketComms API for the Hephaestus Arm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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