02-23-2015 12:16 PM
Hello All,
Disclaimer: No proprietary information is indicated in the screenshots.
Here is a screen shot of the current logic ("JoystickLogic.jpg") which is embedded in a legacy (inherited) Pedestal while loop which does not have Wait ms function. The legacy Pedestal Loop has a case statement which handles different modes of moving the pedestal (point out, slewing, and now joystick) and also gets status (AZ/EL) from the pedestal. This joystick logic is very similar to LabVIEW's joystick example except for my Rate X,Y subvi which just scales the input to values which are in the acceptable ranges of the PED subvi. The problem with this logic, as stated, is that the data flow produced by the user's deflection of the joystick seems to prevent the joystick's 100 ms loop from exiting and allowing the outer loop to process pedestal status. With the actual hardware, this logic moves the pedestal just fine, but I am not updating the status (AZ/EL) processed in the outer loop.
The new logic ("NewJoystickLogic.jpg") uses the suggested producer/consumer architecture and works fine stand-alone. I now need to somehow integrate it into the outer loop.
02-23-2015 05:15 PM
A few small suggestions on NewJoyStickLogic.
With this simpler, more compact, code, you should be able to integrate it with the rest of your project.
BS