Shop OBEX P1 Docs P2 Docs Learn Events
CMUcam code help please — Parallax Forums

CMUcam code help please

PhillipPhillip Posts: 9
edited 2008-05-08 11:39 in Robotics
Hi,
I am trying to modify the CMUcam code to suite my purposes.· What I would like to do is·use the·first and second functions to calibrate the camera for lighting and then store the color.· After it is·calibrated and·had the color stored, I would like it to move foward a·certian distance turn left,·go foward, turn right, and then initialize function·3.··The problem that I am having is that the code is all looped, once it is in function·3, if it goes·to the fwd, bwd, rotateleft, or rotateright,·that takes it to "TopTrack" and then to "progtop".··So, how can I make it go through the movement commands and then initialize function 3?· I know how to write the subroutines to make it move,·I just don't know how to make it do the commands and then initalize the function.· I would greatly appreciate any help or suggestions.· the code is attached

Comments

  • HumanoidoHumanoido Posts: 5,770
    edited 2008-05-08 11:39
    This is a substantial program. To modify it for the purpose you mention,
    it would be logical to make a small rewrite to the input menu section. If
    the menu structure is followed, handling the functions you cited in the
    desired order will save huge amounts of modification time.

    humanoido
Sign In or Register to comment.