Hello Guest it is March 29, 2024, 03:25:59 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Hellhound

Pages: 1
1
I purchased a powermate before I read the posts of the plug-in being broken. However, since I had the device, I decided it was a good time to get back into programming and also to try my hand at the Mach SDK. I decided to start from scratch with a new plug-in.

I have written a driver for the device using another project as a template that I located on the web. I have the device working in a test app and movement simulated by progress bars using C and I am now ready to move it into a plug-in enviornment.

I have decided to have the following functions:
Pressing the button down with a quick release cycles the axis.
Rotating the knob jogs the selected axis.
Pushing the knob down and rotating adjusts the Jog%.
The LED will pulse at the jog % rate. i.e.- faster if moving faster.

The question I have is what would be the best way to jog the axis based on the knob rotation? Do I read the DRO and save as the start point, take the knob input, add it to the start point and store it as the end point, then jogon until Mach's DRO reaches the value of my end point variable? At this point simple issue a Jogoff? Is there a better way? Let me know.

Pages: 1