The Easiest Way to Save and Share Code Snippets on the web

Untitled

vhdl

posted: Dec, 12th 2011 | jump to bottom

  1. if (leftMotorCounter <= fiftyDutyCycle) begin
  2. leftMotor = 1;
  3. end
  4. else
  5. leftMotor = 0;
  6. end
  7. //Right turn
  8. if(rightMotorCounter <= fiftyDutyCycle)begin
  9. rightMotor = 1;
  10. end
  11. else begin
  12. rightMotor = 0;
  13. end
  14. if (leftMotorCounter <= ninetyDutyCycle) begin
  15. leftMotor = 1;
  16. end
  17. else
  18. leftMotor = 0;
97 views