Quote:
Originally posted by Jack
Ya... I love it. 'Minus the Auto-Balance code' 
I hope you arn't using a standard robot computer. I think that it would be impossible in PBASIC. A lot easier in C. (Well... still hard as heck, but still easier that PB.)
I'm trying to think. How would the program decide if the user is leaning forward, and thus wants to go forward, or if the unit is 'falling' forward and the user wants to stay still. I remember seeing Dean at the 2002 kick off standing on a ramp. The segway would go up...&...down...up...&...down. Pretty funny. I think that they improved the code, because as i remember, when i saw if again on a ramp, it didn't move at all.
|
It wouldnt have to decide if it was leaning forward or falling. The effect produced is the same in either case. If it is falling forward, then the Segway will move forward to compensate, and balance the machine. If the driver was leaning forward, then it would move forward to compensate as well, but the weight of the person would keep it leaning forward,and hence, keep it moving forward.