def jog_down(self, tilt_speed, target): if self.curr_position.tilt_angle() > target.tilt_angle(): rx = self.comms.positioner_query( pkt.jog_positioner(0, 0, tilt_speed, 0)) self.p.parse(rx, self) else: self.move_to(0, 0, 'stop')
def jog_ccw(self, pan_speed, target): if self.curr_position.pan_angle() > target.pan_angle(): rx = self.comms.positioner_query( pkt.jog_positioner(pan_speed, 0, 0, 0)) self.p.parse(rx, self) else: self.move_to(0, 0, 'stop')
def jog_down(self, tilt_speed, target): p = Parser() rx = self.comms.positioner_query(pkt.get_status()) p.parse(rx, self) while self.curr_position.tilt_angle() > target.tilt_angle(): rx = self.comms.positioner_query( pkt.jog_positioner(0, 0, tilt_speed, 0)) p.parse(rx, self) time.sleep(.08) p.parse(self.comms.positioner_query(pkt.get_status()), self)
def jog_up(self, tilt_speed, target): if self.curr_position.tilt_angle() < target.tilt_angle(): rx = self.comms.positioner_query( pkt.jog_positioner(0, 0, tilt_speed, 1)) self.p.parse(rx, self)
def jog_cw(self, pan_speed, target): if self.curr_position.pan_angle() < target.pan_angle(): rx = self.comms.positioner_query( pkt.jog_positioner(pan_speed, 1, 0, 0)) self.p.parse(rx, self)