Example #1
0
    def __init__(self):
        grc_wxgui.top_block_gui.__init__(self, title="Ahrs Gps Eis To Fg")

        ##################################################
        # Variables
        ##################################################
        self.samp_rate = samp_rate = 32000

        ##################################################
        # Blocks
        ##################################################
        self.openavionics_serial_io_0_0_0 = openavionics.serial_io("/dev/pts/14",0,19200,0,1,False)
        self.openavionics_serial_io_0_0 = openavionics.serial_io("/dev/pts/12",0,19200,0,1,False)
        self.openavionics_serial_io_0 = openavionics.serial_io("/dev/pts/10",0,19200,0,1,False)
        self.openavionics_gns430_to_fg_0 = openavionics.gns430_to_fg("127.0.0.1",5502)
        self.openavionics_gns430_parser_0 = openavionics.gns430_parser()
        self.openavionics_eis_parser_0 = openavionics.eis_parser()
        self.openavionics_ahrs_to_fg_0 = openavionics.ahrs_to_fg("127.0.0.1",5501)
        self.openavionics_ahrs_parser_0 = openavionics.ahrs_parser()
        self.blocks_message_debug_0_0_0 = blocks.message_debug()

        ##################################################
        # Asynch Message Connections
        ##################################################
        self.msg_connect(self.openavionics_serial_io_0_0_0, "out", self.openavionics_gns430_parser_0, "in")
        self.msg_connect(self.openavionics_gns430_parser_0, "out", self.openavionics_gns430_to_fg_0, "in")
        self.msg_connect(self.openavionics_ahrs_parser_0, "out", self.openavionics_ahrs_to_fg_0, "in")
        self.msg_connect(self.openavionics_serial_io_0, "out", self.openavionics_ahrs_parser_0, "in")
        self.msg_connect(self.openavionics_serial_io_0_0, "out", self.openavionics_eis_parser_0, "in")
        self.msg_connect(self.openavionics_gns430_parser_0, "out", self.blocks_message_debug_0_0_0, "print")
Example #2
0
	def __init__(self):
		grc_wxgui.top_block_gui.__init__(self, title="Ahrs Gps Eis To Fg")

		##################################################
		# Variables
		##################################################
		self.samp_rate = samp_rate = 32000

		##################################################
		# Blocks
		##################################################
		self.openavionics_serial_io_0_0_0 = openavionics.serial_io("/dev/pts/11",0,19200,0,1,False)
		self.openavionics_serial_io_0_0 = openavionics.serial_io("/dev/pts/8",0,19200,0,1,False)
		self.openavionics_serial_io_0 = openavionics.serial_io("/dev/pts/3",0,19200,0,1,False)
		self.openavionics_gns430_to_fg_0 = openavionics.gns430_to_fg("127.0.0.1",5502)
		self.openavionics_gns430_parser_0 = openavionics.gns430_parser()
		self.openavionics_eis_parser_0 = openavionics.eis_parser()
		self.openavionics_ahrs_to_fg_0 = openavionics.ahrs_to_fg("127.0.0.1",5501)
		self.openavionics_ahrs_parser_0 = openavionics.ahrs_parser()
		self.blocks_message_debug_0_0 = blocks.message_debug()

		##################################################
		# Asynch Message Connections
		##################################################
		self.msg_connect(self.openavionics_serial_io_0_0_0, "out", self.openavionics_gns430_parser_0, "in")
		self.msg_connect(self.openavionics_gns430_parser_0, "out", self.openavionics_gns430_to_fg_0, "in")
		self.msg_connect(self.openavionics_ahrs_parser_0, "out", self.openavionics_ahrs_to_fg_0, "in")
		self.msg_connect(self.openavionics_serial_io_0, "out", self.openavionics_ahrs_parser_0, "in")
		self.msg_connect(self.openavionics_serial_io_0_0, "out", self.openavionics_eis_parser_0, "in")
		self.msg_connect(self.openavionics_eis_parser_0, "out", self.blocks_message_debug_0_0, "store")
	def __init__(self, baudrate=19200, device="/dev/pts/4"):
		grc_wxgui.top_block_gui.__init__(self, title="Simple Message Passing Example")

		##################################################
		# Parameters
		##################################################
		self.baudrate = baudrate
		self.device = device

		##################################################
		# Variables
		##################################################
		self.samp_rate = samp_rate = 32000

		##################################################
		# Blocks
		##################################################
		self.openavionics_serial_io_0 = openavionics.serial_io(device,0,baudrate,0,1,False)
		self.blocks_message_strobe_0 = blocks.message_strobe(pmt.intern("TEST"), 1000)
		self.blocks_message_debug_0 = blocks.message_debug()

		##################################################
		# Asynch Message Connections
		##################################################
		self.msg_connect(self.blocks_message_strobe_0, "strobe", self.openavionics_serial_io_0, "in")
		self.msg_connect(self.openavionics_serial_io_0, "out", self.blocks_message_debug_0, "print")
    def __init__(self, baudrate=19200, device="/dev/pts/4"):
        grc_wxgui.top_block_gui.__init__(
            self, title="Simple Message Passing Example")

        ##################################################
        # Parameters
        ##################################################
        self.baudrate = baudrate
        self.device = device

        ##################################################
        # Variables
        ##################################################
        self.samp_rate = samp_rate = 32000

        ##################################################
        # Blocks
        ##################################################
        self.openavionics_serial_io_0 = openavionics.serial_io(
            device, 0, baudrate, 0, 1, False)
        self.blocks_message_strobe_0 = blocks.message_strobe(
            pmt.intern("TEST"), 1000)
        self.blocks_message_debug_0 = blocks.message_debug()

        ##################################################
        # Asynch Message Connections
        ##################################################
        self.msg_connect(self.blocks_message_strobe_0, "strobe",
                         self.openavionics_serial_io_0, "in")
        self.msg_connect(self.openavionics_serial_io_0, "out",
                         self.blocks_message_debug_0, "print")