Vex Robotics Forum

enrico.n.manes.1 2006-12-05 10:02 PM
Vex Robotics Programming Improvements
Hello Roger,
I'm writing because I thought of a way to simplify the programming of the robots that might be useful to minimize the debugging due to the fact that one motor needs to go clockwise while the other needs to go counterclockwise to go forward or reverse. We could write separate loops that handle

FWD
REV
RIGHTTURN
LEFTTURN

and each of these routines could look for input such as the amount of time required for the command and which motors are being used. In other words, we could provide a more complex program template that has all of this logic at the bottom of it and the students would only need to worry about the details near the top so their code might look like,

FWD (400) - go fwd for 400 milliseconds
REV (200) - backup for 200 milliseconds
RIGHTTURN (25) - make a right "tank turn" for 25 milliseconds
FWD (800) - go fwd for 800 milliseconds

when each one of these commands gets read it would go to the subroutines discussed above to make the move and then return back into the program to receive the next instruction. Anyhow, I've got to look into downloading and installing that programming environment to see if I can make this work but it "should" be doable. The entirety of the program would be more complex but the students wouldn't need to see it all to understand it - they would only need to work within the boundaries we create at the top of the program.
Thanks,
Nino

Anonymous User 2006-12-08 06:50 PM
Kids' Programming
I had a few kids finish early with their assignments on Thursday so they took a robot kit and started to put them together. I sense this is definitely going to be a motivator to get work done. Interesting the excitement has come from mostly male students. I wonder what will happen to this trend when we explore the robots as a learning unit.

enrico.n.manes.1 2006-12-08 09:57 PM
It's an interesting observation about the motivation and the males. I would have thought it was gender neutral material. Let's play it out and maybe record the observations. It'll be interesting to see what happens when we get to the programming part. Programming at it's most basic is extremely simple but what one can do with programming can become very complex - like building a tank from Lincoln Logs - c'mon, who remembers Lincoln Logs?