Quote:
Originally posted by Kai Zhao
3 ways (that I can think of):
-Make a counter. Crude example code below.
<snip>
-Use the gyroscope and record your angular velocity (or is it acceleration?). Manipulate the data to suit your needs.
-What I call 'CSS'. Basically, it is a wheel with sensors on or near it.
<snip>
|
Yup, I was thinking about putting a counter type of thing also. But I was afraid that each iteration of the mainloop will have different running times and therefore the amount of output will also be variable. Therefore, it won't be able to center again, when the joystick is in the middle. But again, these are just my useless newbie instincts so I'm going to try this tomorrow when I get to school
About the 'CSS', I don't think I'll do it that way...I'd like to keep the robot simple; it's just my first year, so I don't want to make it too complicated and end up with a non-working robot.
Thanks,
Diego