def tilt(self, tilt): if debug: print('tilt', tilt) pan = degree_to_visca(self.pan, 'pan') pan = i2v(pan) tilt = degree_to_visca(tilt, 'tilt') tilt = i2v(tilt) subcmd = '\x02' + chr(self.pan_speed) + chr( self.tilt_speed) + pan + tilt self._cmd_cam_alt(subcmd)
def shutter(self, value): """ Set shutter speed """ if debug: print('shutter', value) subcmd = '\x4A' + i2v(value) return self._cmd_cam(subcmd)
def iris(self, value): """ Set iris aperture """ if debug: print('iris', value) subcmd = '\x4B' + i2v(value) return self._cmd_cam(subcmd)
def focus_nearlimit(self, value): """ Can be set in a range from 1000 (∞) to F000 (10 mm) """ if debug: print('focus_nearlimit', value) subcmd = "\x28" + i2v(value) return self._cmd_cam(subcmd)
def RGain(self, value): """ Manual Control of R Gain :0..255 set the red gain """ if debug: print('RGain', value) subcmd = "\x43" + i2v(value) return self._cmd_cam(subcmd)
def gain_red(self, value): """ Manual Control of R Gain :0..255 set the red gain """ if debug: print('gain_red', value) subcmd = "\x43\x00\x00" + i2v(value) return self._cmd_cam(subcmd)
def BGain(self, value): """ Manual Control of B Gain :0..255 set the blue gain """ if debug: print('BGain', value) subcmd = "\x44" + i2v(value) return self._cmd_cam(subcmd)
def gain_blue(self, value): """ Manual Control of B Gain :0..255 set the blue gain """ if debug: print('gain_blue', value) subcmd = "\x44\x00\x00" + i2v(value) return self._cmd_cam(subcmd)
def focus_auto_active(self, value): """ pq: Movement Time, rs: Interval """ if debug: print('focus_auto_active', value) print('this function has never been tested') subcmd = "\x27" + i2v(value) return self._cmd_cam(subcmd)
def IR_auto_threshold(self, level): if debug: print('IR_auto_threshold', level) subcmd = '\x21\x00\x00' + i2v(value) return self._cmd_cam(subcmd)
def aperture(self, value): if debug: print('aperture', value) subcmd = '\x42' + i2v(value) return self._cmd_cam(subcmd)
def expo_compensation_amount(self, value): if debug: print('expo_compensation_amount', value) subcmd = '\x4E\x00\x00' + i2v(value) return self._cmd_cam(subcmd)
def bright(self, value): if debug: print('bright', value) subcmd = '\x4D\x00\x00' + i2v(value) return self._cmd_cam(subcmd)
def gain(self, value): if debug: print('gain', value) subcmd = '\x4C' + i2v(value) return self._cmd_cam(subcmd)
def power_auto(self, time): subcmd = '\x40' + i2v(time) if debug: print('power_auto', time) return self._cmd_cam(subcmd)
def zoom(self, value): if debug: print('zoom', value) subcmd = "\x47" + i2v(value) return self._cmd_cam(subcmd)
def focus(self, value): if debug: print('focus', value) subcmd = "\x48" + i2v(value) return self._cmd_cam(subcmd)