# 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. # # # ADCP (WH1200, WH300, and OS75) Baud rates are all default from RDI 9600. # All Nav Data is 4800 baud. # 1 GPS input from a Trimble DMS232 sending GGA, RMC, and VTG sentences. # Heading from our Sperry Marine, NAVIGAT X MK 1 Digital Gyro Compass # TSS motion reference unit (MRU), model is a DMS-05, sending a PRDID sentence # with roll and pitch (no heading) # FURUNO SC-50 GGA, RMC, VTG, and HDT. ignore_ADCPs = [] ignore_other_sensors = [] use_publishers = False # 2-letter abbreviation for logging file prefix and constructing dbase name; # read by procsetup.py shipabbrev = "pe" ADCPs = [ { 'instrument' : 'wh1200', 'setup' : 'rdi_setup', 'terminal' : 'oswh_term', 'defaultcmd' : 'wh1200_default.cmd', 'commands' : (), # freshwater well (see proc_cfg.py) 'datatypes' : ('wh1200',), 'wakeup_baud' : 38400 }, { 'instrument' : 'wh300', 'setup' : 'rdi_setup', 'terminal' : 'oswh_term', 'defaultcmd' : 'wh300_default.cmd', 'commands' : ('CL0',), # freshwater well (see proc_cfg.py) 'datatypes' : ('wh300',), 'wakeup_baud' : 9600 }, { 'instrument' : 'os75', 'setup' : 'rdi_setup', ## RENAME ?? rdi_setup.py 'terminal' : 'oswh_term', 'defaultcmd' : 'os75_default.cmd', 'commands' : ('EA00000',), 'datatypes' : ('os75bb', 'os75nb'), 'wakeup_baud' : 9600 } ] # Do not edit the next three lines: common_opts = '-f %s -F -m 1 -H 2 ' % (shipabbrev,) nb_opts = '-rlE -c -I' # raw data, write a log file, log errors oswh_opts = '-rlE -c -O -I' # -O for OS/WH data format # -c for checksum, -I to initiate pinging sensors = [ { 'instrument' : 'wh1200', 'device' : 'ttyUSB0', 'baud' : 38400, 'format' : 'binary', 'subdir' : 'wh1200', 'ext' : 'raw', 'opt' : oswh_opts}, { 'instrument' : 'wh300', 'device' : 'ttyUSB1', 'baud' : 19200, 'format' : 'binary', 'subdir' : 'wh300', 'ext' : 'raw', 'opt' : oswh_opts + ' -Z tcp://127.0.0.1:38010', # for speedlog # 'opt' : oswh_opts, }, { 'instrument' : 'os75', 'device' : 'ttyUSB2', 'baud' : 19200, 'format' : 'binary', 'subdir' : 'os75', 'ext' : 'raw', 'opt' : oswh_opts}, ### out for repair # { 'instrument' : 'Trimble DMS232 GPS', # 'device' : 'ttyUSB3', # 'baud' : 4800, # 'format' : 'ascii', # 'subdir' : 'gpsnav', # 'ext' : 'gps', # 'strings' : ('$GPGGA',), #primary position for processing # 'messages' : ('gps',), # 'opt' : '-tc'}, { 'instrument' : 'Sperry Navigat Gyro', 'device' : 'ttyUSB4', 'baud' : 4800, 'format' : 'ascii', 'subdir' : 'gyro', 'ext' : 'hdg', 'strings' : ('$HEHDT',), 'messages' : ('hdg',), 'opt' : '-tc -s3'}, { 'instrument' : 'Furuno', # SC-50 'device' : 'ttyUSB5', 'baud' : 9600, 'format' : 'ascii', 'subdir' : 'furuno', ## do not change dir name 'ext' : 'hdg', 'strings' : ('',), # grab all messages('$HEHDT'), 'messages' : ('hdg','gps'), # 'opt' : '-tc -s9' 'opt' : '-tc', }, { 'instrument' : 'ADU800', 'device' : 'ttyUSB6', 'baud' : 115200, 'format' : 'ascii', 'subdir' : 'adu800', ## do not change dir name 'ext' : 'paq', 'strings' : ('',), # grab all messages 'messages' : ('gps', 'adu',), 'opt' : '-tc -s7 '}, #5Hz # { 'instrument' : 'TSS digital compass ', # TSS DMS-05 ; pitch roll only # 'device' : 'ttyUSB7', # 'baud' : 38400, # 'format' : 'ascii', # 'subdir' : 'tssdms', ## do not change dir name # 'ext' : 'tss', ## PRDID, no heading # 'strings' : (':',), # 'messages' : ('tss1',), ## PRDID, no heading # 'opt' : '-t -s83'}, # ] ## enabling or disabling this occurs in procsetup_onship.py speedlog_config = { 'instrument' : 'wh300', 'serial_device' : '/dev/ttyUSB7', # serial out, for SCS 'baud' : 9600, 'zmq_from_bin' : "tcp://127.0.0.1:38010", 'pub_addr' : "tcp://127.0.0.1:38020", # uses this port 'heading_offset' : 4.2, # similar to h_align; identical? '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' : 'gpsnav', 'pub_addr' : 'tcp://127.0.0.1:38000', # uses this port #NO SPACES 'sample_opts' : '-tc -s60', }, ] #### 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)