I have built an Activity bot with a PING))) mounted on the front servo to turn 180 degrees. I have learned the Propeller tutorial on the fixed PING))) roaming. However I am stuck on how to find a route for my Activity Bot based on the distance fed back by the moving PING))) at front. My idea was as follows:
1. get PING))) distance from constant reading (0-180 deg) while ABOT is running forward
2. if ABOT spots any PING))) distance shorter than 15 cm than ABOT stops
3. ABOT sort out the max distance corresponding to that Front Servo's angle array and turn so that the ABOT is facing straight to the direction with max distance
4. repeat the loop
Does this make sense? I felt trouble to update constant PING))) readings then find out a route to go and turn, while ABOT is running forward, how can I achieve that in SimpleIDE?