WARNING: This server is unstable and will be retired in the next days.
If you want to keep this forum available, please request immediately a migration
on the Nabble Support forum.
Forums that don't receive any migration request will be deleted forever.
Hi Fred thanks for the advice but for some apparent reason it still doesnt work... wht im trying to do with the program is to be able to get a range reading from each degree increment, so that later on i can put in my potential field program (thats why im only modifying the example program) the program now looks like this:
On Wed, 27 August, 2008 12:46 pm, Thayne (Mech Stu) wrote:
> Thanks dude i'll try it again. hahaha i know my C++ sucks they didnt teach us
> enough and im stuck with a thesis that requires a lot of C++ so the
> "robot.Read()" should be outside the loop after the declaration of laser
> proxy or inside the loopbefore "GetRange()"?
Now this is a player question.
You only get the current state of the robot after doing a Read(), so unless
you only want the first state, you need in the loop.