|
Re: GetRxInput vs GetOIDInput
Also, completely seperate question, but how do you set a relay motor hooked up to a spike in reverse?
my current code (in c) is as follows
...
SetRelay(8,0,0) //neutral
if(GetOIDInput(2,3) == 1) //hold forward
{
SetRelay(8,0,1)
}
if(GetOIDInput(2,4) == 1)//hold reverse
{
SetRelay(8,1,0)
}
The forward motion works, and stopping it works if neither are held, but i can't get the motor to run backwards.
I've even tried switching the two SetRelay() calls for kicks and giggles, and unsuprisingly, the reverse still does not work and the forward does.
helps me plox!!
|