I have found the code to get range information from the Ultrasonic sensor head but am not clear where is should go? It seems it could go in ServotorComm, Robot, GUI, and there are more options I probably haven’t found yet!
I am not a software engineer, I did some basic at home and C++ at college and 8748 assembly language so I am not totally ignorant but this Python spread about the different modules all looks very confusing to me.
All I wanted to do initially was to be able to look left or right and get a range return from the “eyes”. I did wonder if the code could be put into a “Move” but can’t seem to get that to work (shame as it seemed a pragmatic way to run little sub routines)
Ultimately I would like to use the ultrasonic sensor as an auto STOP button. So I was planning to add it to moves like walking, turning left and right (for which it would angle left or right to “look into the turn”) and ping repeatedly throughout the move, I planned to straighten it on exiting the move). I was then going to set a safe distance variable, compare the returns and if the “force field” was breached I wanted it to kill all servos or at least freeze everyhting.
This might be possible if I had Servotor32 2.1 because it adds the U command and a number of repeats which could probably be used in a Move.
Other than that i am close to giving up as it is all to daunting to self teach/learn.