def open(self,ndev): self.dio = pyinterface.create_gpg2000(ndev) #self.board_M2 = board_M2.board() #self.board_M2 = test_board_M2.board() self.InitIndexFF() self.get_pos() pass
def open(self): #self.board_abs = board_abs.board() #self.board_abs = test_board_abs.board() #self.board_abs = gpg2000_test.board() self.dio = pyinterface.create_gpg2000(10)#dummy #self.dio = pyinterface.create_gpg2000(3)#real self.get_pos() return
def __init__(self): self.dio = pyinterface.create_gpg2000(3) self.enc = antenna_enc.enc_monitor_client('172.20.0.11', 8002) #self.enc = antenna_enc.enc_controller() ret = self.enc.read_azel() self.az_encmoni = ret[0] self.el_encmoni = ret[1] pass
def __init__(self): self.enc = antenna_enc.enc_monitor_client('172.20.0.11',8002) #self.enc = antenna_enc.enc_controller() #self.dome_pos = dome_pos.dome_pos_client('172.20.0.11',8006) self.dome_pos = dome_pos.dome_pos_controller() self.dio = pyinterface.create_gpg2000(5) self.start_status_check() pass
def __init__(self): self.enc = antenna_enc.enc_monitor_client('172.20.0.11', 8002) #self.enc = antenna_enc.enc_controller() #self.dome_pos = dome_pos.dome_pos_client('172.20.0.11',8006) self.dome_pos = dome_pos.dome_pos_controller() self.dio = pyinterface.create_gpg2000(5) self.start_status_check() pass
def __init__(self): self.dio = pyinterface.create_gpg2000(3) self.enc = antenna_enc.enc_monitor_client('172.20.0.11',8002) #self.enc = antenna_enc.enc_controller() ret = self.enc.read_azel() self.az_encmoni = ret[0] self.el_encmoni = ret[1] pass
def __init__(self): #self.board = board.board()#N #self.board = gpg2000_board.board() self.dio = pyinterface.create_gpg2000(3) #self.enc = antenna_enc.enc_monitor_client('172.20.0.11',8002)###0921 #self.enc = antenna_enc.enc_controller() #ret = self.enc.read_azel()###0921 #self.az_encmoni = ret[0]###0921 #self.el_encmoni = ret[1]###0921 pass
def __init__(self): self.dio = pyinterface.create_gpg2000(2) print("__init__:on") return
def __init__(self, ndev=3): self.dio = pyinterface.create_gpg2000(ndev) self.get_pos() pass
def __init__(self): self.coord = coord.coord_calc() # for test <= MUST REMOVE [#] self.nanten = nanten_main_controller.nanten_main_controller() self.dio = pyinterface.create_gpg2000(4) pass
#!/usr/bin/env python import time import sys sys.path.append("/home/necst/ros/src/necst/lib") import pyinterface import rospy from necst.msg import Status_limit_msg from std_msgs.msg import Bool import signal def handler(num, flame): stop_flag = 1 rospy.is_shutdown() signal.signal(signal.SIGINT, handler) dio = pyinterface.create_gpg2000(3) stop_flag = 0 ret = [1]*4 error_box = [1]*32 msg = "" rospy.init_node("limit_check") pub = rospy.Publisher("limit_check", Status_limit_msg, queue_size=10, latch=True) st = Status_limit_msg() limit_pub = rospy.Publisher("limit", Bool, queue_size=10, latch=True) _lim = Bool() while not rospy.is_shutdown():#stop_flag == 0: ret[0] = dio.ctrl.in_byte('FBIDIO_IN1_8')
def open(self, ndev=2): self.dio = pyinterface.create_gpg2000(ndev) self.InitIndexFF() self.get_pos() pass
def __init__(self): #self.dio = pyinterface.create_gpg2000(3) self.dio = pyinterface.create_gpg2000(10)#test pass
def __init__(self): self.dio = pyinterface.create_gpg2000(5) #N #self.dio = shiotani_pyinterface.create_gpg2000(5)#N pass
def __init__(self, ndev = 3): self.dio = pyinterface.create_gpg2000(ndev) self.get_pos() pass
def __init__(self): self.dio = pyinterface.create_gpg2000(3) pass
def __init__(self): #self.bd = gpg2000_board.board() self.dio = pyinterface.create_gpg2000(4) #self.board = test_board.board()# test self.pub = rospy.Publisher('status_drive', Status_drive_msg, queue_size=10, latch=True)#test self.msg = Status_drive_msg()#test
def open(self, ndev=1): self.dio = pyinterface.create_gpg2000(ndev) self.status = dome_status.dome_get_status() pass