# This configuration file is Python code. You should not # need to change it; but if you do, you need to know that # in Python, the *indentation matters*. # The following will normally be empty lists, like this: # #ignore_ADCPs = [] #ignore_other_sensors = [] # # But if you want to run with only a subset of the ADCPs # and/or ancillary sensors that are defined in this file, # you can list the ones you want to ignore like this: # #ignore_ADCPs = ['wh300', 'os75'] #ignore_other_sensors = ['GPS'] # # In this case, you are listing the 'instrument' field of each # ADCP or sensor you wish to exclude. # ignore_ADCPs = [] ignore_other_sensors = [] use_publishers = False #use_publishers = True # 2-letter abbreviation for logging file prefix and constructing dbase name; # read by procsetup.py shipabbrev = "rr" ADCPs = [ { 'instrument' : 'os150', 'setup' : 'rdi_setup', 'terminal' : 'oswh_term', 'defaultcmd' : 'os150_default.cmd', 'commands' : ('EA-00400',), 'datatypes' : ('os150nb', 'os150bb'), 'wakeup_baud' : 9600 }, { 'instrument' : 'os75', 'setup' : 'rdi_setup', 'terminal' : 'oswh_term', 'defaultcmd' : 'os75_default.cmd', 'commands' : ('EA02800',), 'datatypes' : ('os75nb', 'os75bb'), 'wakeup_baud' : 38400, }, ] common_opts = '-f %s -F -m 1 -H 2 ' % (shipabbrev,) oswh_opts = '-rlE -c -O -I' # -O for OS/WH data format # -c for checksum, -I to initiate pinging # In the following list of "sensors" (which are simply serial streams # being logged) the ADCPs must come first, and they must come in # the same order as in the ADCPs list above; that is, there must # be a 1:1 correspondence between the instrument fields in the # ADCPs list and those in the first entries in the sensors list. sensors = [ { 'instrument' : 'os150', # Passive logging of OS 'device' : 'ttyUSB6', 'baud' : 19200, 'format' : 'binary', 'subdir' : 'os150', 'ext' : 'raw', # 'opt' : oswh_opts, 'opt' : oswh_opts + ' -Z tcp://127.0.0.1:38010' #for speedlog }, { 'instrument' : 'os75', # Passive logging of OS 'device' : 'ttyUSB4', 'baud' : 19200, 'format' : 'binary', 'subdir' : 'os75', 'ext' : 'raw', 'opt' : oswh_opts, }, { 'instrument' : 'GP90 GPS', 'device' : 'ttyUSB0', 'baud' : 4800, 'format' : 'ascii', 'subdir' : 'gpsnav', #primary position for processing 'ext' : 'gps', 'strings' : ('$GPGGA',), 'messages' : ('gps',), 'opt' : '-tc', }, # ## shipped to Sally Ride # { 'instrument' : 'Hydrins', #name for green bars # 'device' : 'ttyUSB1', # port # 'baud' : 19200, # baud rate # 'format' : 'ascii', # do not change # 'subdir' : 'hydrins', # # 'ext' : 'hdg', # change to hdg # 'strings' : ('$PHGGA', '$HEHDT',), # 'messages' : ('hdg', 'gps'), # 'hdg' and 'gps' messages # 'opt' : '-tc -s3', # }, # # new: 01/2016 { 'instrument' : 'Seapath', 'device' : 'ttyUSB1', 'baud' : 19200, 'format' : 'ascii', 'subdir' : 'seapath', #primary position for processing 'ext' : 'sea', 'strings' : ('$GPGGA', '$INGGA','$INHDT','$PSXN,20', '$PSXN,23'), 'messages' : ('gps', 'hdg','gps_sea', 'sea'), 'opt' : '-tc -s5', }, { 'instrument' : 'Ashtech', 'device' : 'ttyUSB2', 'baud' : 9600, 'format' : 'ascii', 'subdir' : 'ashtech', 'ext' : 'adu', 'strings' : ('$GPGGA', '$PASHR,ATT'), 'messages' : ('gps', 'adu'), 'opt' : '-tc', }, # primary heading: used to be called 'gyro' under matlab processing { 'instrument' : 'PHINS3', 'device' : 'ttyUSB5', 'baud' : 19200, 'format' : 'ascii', 'subdir' : 'phins3', ## 2010/09/22: now primary heading 'ext' : 'hdg', 'strings' : ('$HEHDT',), 'messages' : ('hdg',), 'opt' : '-tc -s5', }, # comes in at 5Hz ] ## enabling or disabling this occurs in uhdas_cfg.py ## speedlog: enabled in /home/adcp/config/uhdas_cfg.py speedlog_config = { 'instrument' : 'os150', 'serial_device' : '/dev/ttyUSB7', 'baud' : 9600, 'zmq_from_bin' : "tcp://127.0.0.1:38010", # port to read os75 indexing 'pub_addr' : "tcp://127.0.0.1:38020", # port to publish speedlog #NO SPACES # 'heading_offset' : xx.x, # defaults to h_align; better would be from EA_estimator.py 'scale' : 1.0, # multiplies velocity measurement 'bins' : (1,3), # zero-based; input to python slice() 'navg' : 5, # pings to average } ## this section describes... publishers = [ { 'subdir' : 'ashtech', 'pub_addr' : 'tcp://127.0.0.1:38000', # uses this port 'sample_opts' : '-tc -s60', #5Hz }, ] #### DO NOT CHANGE the following ################ ADCPs = [A for A in ADCPs if A['instrument'] not in ignore_ADCPs] sensors = [S for S in sensors if S['instrument'] not in ignore_ADCPs] sensors = [S for S in sensors if S['instrument'] not in ignore_other_sensors] if use_publishers==True: from uhdas.uhdas import make_publishers make_publishers.modify_sensors_and_publishers(sensors, publishers)