Last active
August 29, 2015 14:11
-
-
Save madhephaestus/2c76b371244036e16b25 to your computer and use it in GitHub Desktop.
This file contains 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
PPMReaderChannel ppm = new PPMReaderChannel(dyio.getChannel(23)); | |
int servoChan = 4; | |
new ServoChannel(dyio.getChannel(servoChan));//Sets up the output channel for PPM cross link | |
ppm.stopAllCrossLinks(); | |
int [] cross = ppm.getCrossLink(); | |
//cross[0]=PPMReaderChannel.NO_CROSSLINK;//shut off the cross link for a channel | |
cross[0]=servoChan;//link ppm signal 0 to DyIO channel servoChan | |
ppm.setCrossLink(cross); | |
while (!Thread.interrupted()){ | |
Thread.sleep(100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment