|
Re: Why isn't my slowdown working?
Well, there's another portion of my code affected by the slowdown (the tote pickup motor) that is affected by the slowdown:
outside TeleopPeriodic:
float motorpower;
inside:
if(stick->GetRawButton(10))
motorpower=0.4;
else
motorpower=1;
later in TeleopPeriodic(where vmc is a talon object):
vmc->Set(motorpower);
and that does not work.
any thoughts?
|