SNVT_ptz

Overview:

Camera PTZ.  (pan, pan speed, tilt, tilt speed, zoom, zoom speed.) .   

The pan and tilt speed values, as well as the pan and tilt directions, have to be updated simultaneously, since in most applications, a joystick is used to control camera movements. The movement must be smooth in all directions, for all magnitudes of pan and tilt speed.

The network output variable of this type transmits the speed and direction for pan, tilt, and zoom, in each update, to meet the requirements described above. If the speed is zero, e.g., in of case of a network variable of SNVT_ptz from a non-joystick, a default speed will be used. This default speed may optionally be programmable, via a configuration property.

EXAMPLES

Example 1

tilt.direction = PAN_RIGHT
tilt.speed = 125 (0x7D)
Physical value = Pan to the right by 50.0%

Example 2

tilt.direction = TILT_UP
tilt.speed = 63 (0x3F)
Physical value = Tilt up by 25.2%

Details:

Resource Set: Standard 00:00:00:00:00:00:00:00-0
Index: 150
Obsolete: no
Size: 6
Programmatic Name: SNVT_ptz
Neuron C Type:
Structure
pan_dirPan direction.  (pan direction names.) .   
 
pan_dir_t
pan_speedPan speed.  (% of full level.) .   
 
unsigned short
Minimum: 0
Maximum: 250
Scaling (A,B,C): 4,  -1,  0
Scaled value: 4 *10 -1 *(Raw+0)
Resolution: 0.4
tilt_dirTilt direction.  (tilt direction names.) .   
 
tilt_dir_t
tilt_speedTilt speed.  (% of full level.) .   
 
unsigned short
Minimum: 0
Maximum: 250
Scaling (A,B,C): 4,  -1,  0
Scaled value: 4 *10 -1 *(Raw+0)
Resolution: 0.4
zoomZoom direction.  (zoom direction names.) .   
 
zoom_t
zoom_speedZoom speed.  (% of full level.) .   
 
unsigned short
Minimum: 0
Maximum: 250
Scaling (A,B,C): 4,  -1,  0
Scaled value: 4 *10 -1 *(Raw+0)
Resolution: 0.4
Formats:

SNVT_ptz:  text("%m %f %m %f %m %f", pan_dir, pan_speed, tilt_dir, tilt_speed, zoom, zoom_speed)

Used by:

SCPTdefaultPanTiltZoomSpeeds