Skip to content

Instantly share code, notes, and snippets.

@madhephaestus
Last active August 29, 2015 14:11
Show Gist options
  • Save madhephaestus/2c76b371244036e16b25 to your computer and use it in GitHub Desktop.
Save madhephaestus/2c76b371244036e16b25 to your computer and use it in GitHub Desktop.
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