Quote:
Originally Posted by curtis0gj
should distance be an int or a double and how should I add the periodic timer?
|
don't double post, use the edit button.
for distance, i usually go with doubles for most things so I don't accidentally mess data up with division.
don't know what the second thing you asked is in reference to. If it's the closed loop, than just do a Timer.delay(0.02) (20ms, standard 50hz operating cycle) inside the while(true) loop