Hello,
First off, thanks for setting up the new forum
trying to set up a plugin for the Contour Shuttle Xpresshttp://ergo.contourdesign.com/UK/product/shuttlexpress/ and then hopefully port it to the Shuttle Prohttp://ergo.contourdesign.com/UK/product/shuttlepro-v2/ (i've got both).
attached is the sourcecode and the current plugin
The problem I'm having is with the inner jog wheel, and I'm sure its me as I'm new to c sharp, done a bit of other coding but am by no means proficient in code (day job does not involve code).
Basically the usb outputs a byte array, and position 2 in the stack provides the output of the inner jog wheel which is output as a byte and increments for each position jog increment of the inner jog wheel from 0-254, as the inner jog wheel has 12 positions for 1 revolution, there are around 22 revolutions before the jog wheel rolls over. Hence I've been trying to deal with the rollover first. I've tried two approaches and the current bit of code seems to work ok, but if I jog the inner jog wheel fast uccnc crashes, but this may be because the byte array is increasing too quickly.
As can be seen from the code, I've used StreamReader / Writer to store the default 5 buttons within a text file which can be located in the plugins folder.
The button presses and the external rapid jog wheel work fine in my code, it was just the last but that was not at the moment, I've got a plan to change the outer code a little to allow for linear, squared and cubed rapid jog motion but I was just going to get the basic stuff sorted first.
I've not given up with it yet, but someone will probably see the error of my ways right away. Think we probably need a few more plugin examples included with the code as I'm sure that there are other ways of dealing with this.
Rob