|
Digital Outputs on the Driver Station with C/C++
Last night we wired up a bank of LEDs so that we could do real-time debugging without relying on printfs or the debugger (both of which are slow). However, we couldn't get them to actually turn on and off.
If we plug them into the digital outputs with the positive wire to the center pin of the DS digital out and the signal wire to the signal (top) pin of the DS, they'll turn on. Likewise, if we put the signal wire to the ground pin of the DS, they'll turn on that way as well. However, we couldn't get them to turn off programmatically.
Inside our operator control loop, we tried:
ds->SetDigitalOut(8,false); // turn off digital output 8 (I may have got the function call wrong here, I'm going off memory)
We tried that just to see if we could turn them off, and nothing happened. We plugged the light into every single digital output to see if we got the number wrong, but they were all still on.
I'm guessing there is some jumper or code setting we have to flip in order for this to work. We read part 3 of the setup manual (which includes specs on the outputs) and couldn't find anything. Can anyone help us?
Last edited by Bongle : 01-23-2009 at 08:46 AM.
|