Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Read the ultrasonic sensors and control the motor accordingly
    • The threshold can be any reasonable value for now. We can tune this later.


      Left Ultrasonic

      Sensor

      Right Ultrasonic

      Sensor

      ActionLeft MotorRight Motor
      < threshold< thresholdGo forwardturn forwardturn forward 
      < threshold> thresholdTurn rightturn forwardstop
      > threshold< thresholdTurn leftstopturn forward
      > threshold> thresholdGo back (you are lost!)turn backwardturn backward 

      * The above is a general idea. You should make refinements to the logic as well as thresholds for the actual competition]] ></ac:plain-text-link-body></ac:link>!</p></li></ul></li></ul>