I am programming a bot with a few switches and a motor. It seems fairly simple, but I’m having trouble with the switches part. I am using the orangutan-lib and the appropriate settings for the Orangutan Controller, but the switches seem to be very spontaneous. One run, the 6th I/O port read the signal I would have expected for each of the three “separate” switches, and on the next, it was the 8th port. I have no idea what’s going on there, but I am posting the code to see if anyone can help. Note that header files are the orangutan-lib headers as used. Any suggestions would be greatly appreciated. Thanks,
Gary