Shop OBEX P1 Docs P2 Docs Learn Events
SumoBot Stop Code — Parallax Forums

SumoBot Stop Code

GLPGLP Posts: 9
edited 2011-04-24 06:49 in Robotics
Hello everyone im back again with another problem. I'm trying to incorporate a stop code into my current sumobot program so that when qtiLF and qtiRF =1 the robot will stop much like it does in the Basic Competition Program 5.1. The name of this subroutine is Match_Over. i have added a maneuver named Stopservos and also added the NO_ROT commmand in the Pulse_Servos subroutine. The program passes the syntax check in BASIC stamp editor, but the robot does not respond in the ring. Im sure ive made a few simple mistakes in programming so please let me know.

Thanks,
GLP

Comments

  • ercoerco Posts: 20,256
    edited 2011-04-22 18:16
    What's wrong here in your main routine? BTW, the syntax checker found this even quicker than I did.

    ELSEIF qtiLF = 1 AND qti = 1 THEN ' Both? match over
    GOSUB Match_Over
  • GLPGLP Posts: 9
    edited 2011-04-22 18:53
    Oh thank you for catching that but I checked it after I added IR to qti
  • ercoerco Posts: 20,256
    edited 2011-04-22 19:11
    Surely you mean qtiRF...?!!!

    Then test & attach your latest code, ELSE we_GOSUB_circles
  • GLPGLP Posts: 9
    edited 2011-04-24 06:49
    Here is the updated version of the program
Sign In or Register to comment.