Hint for finding the right speed

  1. Create a variable for the speed.
  2. If you are getting closer (say less than 26 centimeters), decrease the value in the variable
  3. If you are getting too far way, increase the value.
  4. Use that variable for your other track that sets the motors going. It should be the speed


This topic: CenterForComputing > WebHome > SyllabiFall2022 > CSC102SylF2022 > CSC102F2022Lab6 > CSC102F2022Lab6HintSpeed
Topic revision: r2 - 2026-07-09 - CathyBareiss
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback