I am controlling one axis of a camera pan/tilt by using two momentary buttons for clockwise and anticlockwise movement (movement stops when button released). I have written and tested the programme but now want to add a 'calibration' feature to limit the ends of travel.
I am using the servo and servopos command and basically now want to store high and low pulse width values (using another two switches) that will then become the max and min pulse values so preventing the camera 'seeing' more than I want it to.
I have tried using the read and write commands but I am fairly new to programming and the command reference PDF does not give enough examples of usage IMHO.
I am using the servo and servopos command and basically now want to store high and low pulse width values (using another two switches) that will then become the max and min pulse values so preventing the camera 'seeing' more than I want it to.
I have tried using the read and write commands but I am fairly new to programming and the command reference PDF does not give enough examples of usage IMHO.
Attachments
-
2 KB Views: 12