|
Re: Please help with our IR code, we are so confused
Quote:
Originally Posted by Tanis
That version of our code is a tad outdated.
The digital ins are no longer being set to zero if their total is greater than one; when they are greater than one, move is now set to zero.
|
Still need to move the greater than one test to the first statement in the else if block that sets move. Otherwise you are setting move to zero then setting to something else later.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
 Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
|