Python
Posted: Thu Oct 30, 2014 9:19 am
I really enjoyed building and playing with the Pi-camera-robot and have added the ultrasonic sensor. However I am very much a beginner and am a bit confused about the control scripts (eg the sensor example). Why is it that the script runs fine from command line but gives error messages if I try to run it through Python as a module? I also notice that some of the syntax in the script is slightly different to my VERY limited experience of Python, why is this? I have started playing with the script to try and modify the behaviours and its become a bit of a stumbling block. Thanks in advance for any reply!