View Single Post
  #6   Spotlight this post!  
Unread 06-03-2015, 08:49
ashb1025 ashb1025 is offline
Registered User
FTC #6095
 
Join Date: Feb 2014
Location: New Castle, IN
Posts: 11
ashb1025 is an unknown quantity at this point
Re: Autonomous Programming Help

Well I think I have found a solution but I could be wrong, there are no errors when I compile the code but I haven't been able to try it for our NXT is dead at the moment.
Here is a sample of the code

void sweepIn(const int Speed, const int nTime)
{
motor[Sweep] = Speed;
wait1Msec(nTime);
}

I don't think I set the parameter type cause I was thinking that since I had already set it for the function it would carry over to the other parameter.

Last edited by ashb1025 : 06-03-2015 at 08:52.