Beispiel #1
0
    def OnInitData(self, event):

        #-----------------------------------------------------------
        # initialize Store connection and define variables
        #-----------------------------------------------------------

        store = ddxInterface.ddxStore()
        self.IMUData = store.variable("imu")
        #self.FLAGData = store.variable("flags")
        #self.WINDData = store.variable("cleanwind")
        #self.DHData = store.variable("desiredheading")
        self.WypData = store.variable("wypData")
        self.DESTData = store.variable("destData")
        #self.RDRData = store.variable("rudderstateright")
        #self.RDLData = store.variable("rudderstateleft")

        #flag:
        self.initdone = 1
Beispiel #2
0
	def OnInitData(self, event):
		
		#-----------------------------------------------------------
		# initialize Store connection and define variables
		#-----------------------------------------------------------
		
		store = ddxInterface.ddxStore()
		self.IMUData = store.variable("imu")
		#self.FLAGData = store.variable("flags")
		#self.WINDData = store.variable("cleanwind")
		#self.DHData = store.variable("desiredheading")
		self.WypData = store.variable("wypData")
		self.DESTData = store.variable("destData")
		#self.RDRData = store.variable("rudderstateright")
		#self.RDLData = store.variable("rudderstateleft")

		#flag:
		self.initdone = 1
Beispiel #3
0
modem_ready = False             # has the pincode been entered correctly?
pin_rqd = 3                     # which pin? (0 = none, 1 = 1, 2 = 2, more = unkonwn) 

if debug > 0:
    print "\n"
    print "PROJECT AVALON - Status Reporting Script"
    print "========================================\n\n"

    print "Status reporting Script is running... Debug Mode is on\n"

# Open Store
if debug > 0:
    print "Trying to Open DDX-Store..."

try:
    store = ddxInterface.ddxStore()

except:
    print "\n\n\nFailed to Connect to the DDX Store. Exiting..."
    exit()

else:
    if debug > 0:
        print "Sucessful.\n"

# Read all the values

if debug > 0:
    print "Gathering all required data from the store..."

# Position data
Beispiel #4
0
msg = 'something that is not null'
msg_suc = False

if debug > 0:
    print "\n"
    print "PROJECT AVALON - Fuel Cell Values Reading Script"
    print "================================================\n\n"

    print "Fuel Cell script is running... Debug Mode is ON\n"

# Open Store
if debug > 0:
    print "Trying to Open DDX-Store..."

try:
    store = ddxInterface.ddxStore()

except:
    print "\n\n\nFailed to Connect to the DDX Store. Exiting..."
    exit()

else:
    if debug > 0:
        print "Sucessful.\n"

# Open a serial connection to the fuel cell...
sfc.serial_open("/dev/ttyUSB6",9600)

# Sending a linefeed to the fuel cell to wake it up
if debug > 0:
    print "Saying hello to the fuelcell..."