|
Re: Camera for turning
the function is returning a motor value from 0-255. it is up to you to map it to your motors, like you would a joystick.
as for inputting the error... you need to figure out your error much like you did in your original loop. with the dual targets this year, though, you will have to do a little (lot) of extra math and AI to get your desired target.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
|