|
Re: Spike relay code not working
bool trigger= stick.GetRawButton(3);
float potentiometerreading= potentiometer.GetAngle();
if(trigger)
{
fan.Set(Relay::kForward);
}
if (potentiometerreading>0)
{
fan.Set(Relay::kOn);
}
----------
Here is the code we have right now. Our mentor is wondering if we should have used digital output instead of the relay.
|