|
Re: Pneumatic Programming
You forgot a "=" in your if. You may want to use Timer though as the wait statement will stall your drive code.
while (1) //Insert Your RC Code Below
{
Channel5=Get RxInput (1,5):
if (Channel5 == 0) {
Set Digital Output (16,1):
Wait (1000)
Set Digital Output (16,0):
}
}
This would work better
while (1) //Insert Your RC Code Below
{
Channel5=Get RxInput (1,5):
if (Channel5 == 0) {
Set Digital Output (16,1):
} else {
Set Digital Output (16,0):
}
}
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
Last edited by Kingofl337 : 25-02-2010 at 15:56.
|