Pan and tilt +/- command problem

I'm trying to make a magic sheet set of arrows for adjusting pan & tilt - basically "pan up", "pan down", "tilt up", and "tilt down".

I've got the pan up and tilt up working correctly (when I click them the pan or tilt increases by a value of one). But for the pan down and tilt down, instead of simply decreasing by a value of 1, the values seem to go to an absolute position of "-01".  Any suggestions? For example:

 

This works correctly - it adds 1 to whatever the tilt value already is.

 

This works incorrectly - it takes the tilt to an absolute value of "-1" no matter where it previously was.

Parents Reply Children
Related