Rover 5 Pan/tilt servos
Posted: Sun Dec 28, 2014 4:43 pm
Hello,
I've run into problems with the rovers pan/tilt servos and the wall follower program (and I guess any future programs). It started with the rover not looking forward so I altered the look_forward angles to 40 degrees for pan and 0 for tilt. Ideally I would want a value of about -10 but negative values don't seem to work. This causes another problem when, as the rover is driving forward and looking slightly up, it will reach the wall and turn left as planned but then it is unable to look more than 40 degrees right to keep following the wall. Is there any way to use negative values to control the servos or, failing that, reset the zero of the servos to a more practical point (say pan facing backwards and tilt upside down).
Sorry, if I'm missing some really obvious solution,
Thanks for your help,
Aidan
I've run into problems with the rovers pan/tilt servos and the wall follower program (and I guess any future programs). It started with the rover not looking forward so I altered the look_forward angles to 40 degrees for pan and 0 for tilt. Ideally I would want a value of about -10 but negative values don't seem to work. This causes another problem when, as the rover is driving forward and looking slightly up, it will reach the wall and turn left as planned but then it is unable to look more than 40 degrees right to keep following the wall. Is there any way to use negative values to control the servos or, failing that, reset the zero of the servos to a more practical point (say pan facing backwards and tilt upside down).
Sorry, if I'm missing some really obvious solution,
Thanks for your help,
Aidan