I have been playing around with this driver as an exercise in learning pdl and also to add a couple of features to it. I hope I'm not treading on anyones toes with this, I'm not sure what the protocol is for altering other people's code.
Anyway to date I have done the following:
1. Made the driver two way so that is can return the status from the controller, the version number and how many outputs there are.
2. As a result of point one the driver now detects if the controller is attached, polls it constantly to detect the same and will reconnect.
3. I have added a new field "channel" which will allow you to enter an integer between 101 and 999 to change to that channel automatically.
4. Finally my controller can attach to more than one device so I wanted to make it so that you could load more than one instance of the driver to control multiple devices. Firstly I tried to pass a variable from the manifest to the driver but I discovered that this is not possible in pdl. To overcome this I have set up a variable and field(CurrentOutput and ControllerCurrentOutput respectively) which defaults to "0" but which you can change to alter the output of the controller. This will keep the existing functionality of the driver for current users but add an ability to change the output once the driver had loaded. This is not an ideal solution so I may move on to learning cml but this is early days for me and cqc.
The driver pack is attached for everyone to have a look at and test.
Cheers
Ben
Last edited by yarwoob : 02-18-2008 at 02:07 PM.
|