# 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 = [] # 2-letter abbreviation for logging file prefix and constructing dbase name; # read by procsetup.py shipabbrev = "kn" ADCPs = [ { 'instrument' : 'wh300', 'setup' : 'rdi_setup', 'terminal' : 'oswh_term', 'defaultcmd' : 'wh300_default.cmd', 'commands' : ('EA04500',), # Add WM*, WV* here to override 'datatypes' : ('wh300',), 'wakeup_baud' : 9600 }, { 'instrument' : 'os75', 'setup' : 'rdi_setup', 'terminal' : 'oswh_term', 'defaultcmd' : 'os75_default.cmd', 'commands' : ('EA-04500',), 'datatypes' : ('os75bb', 'os75nb'), 'wakeup_baud' : 9600 } ] common_opts = '-f %s -F -m 1 -H 2 ' % (shipabbrev,) oswh_opts = '-rlE -c -O -I' # -O for OS/WH data format # 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. ## 5/29/2008: switching from old Digi Neo driver to new one "dgnc" # old new serial stream # --- ---- --------------- # a 0 gps # b 1 --- # c 2 posmv # d 3 gyro # e 4 --- # f 5 os75 # g 6 wh300 (was nb150) # h 7 --- sensors = [ { 'instrument' : 'wh300', 'device' : 'tty_dgnc_0_6', # was 'ttyn1g', 'baud' : 9600, # errors at higher baudrates Jan 2010 kn 'format' : 'binary', 'subdir' : 'wh300', 'ext' : 'raw', 'opt' : oswh_opts}, # Note -I option for new ser_bin. { 'instrument' : 'os75', # Passive logging of OS 'device' : 'tty_dgnc_0_5', # was 'ttyn1f', 'baud' : 19200, 'format' : 'binary', 'subdir' : 'os75', 'ext' : 'raw', 'opt' : oswh_opts}, # Note -I option for new ser_bin. { 'instrument' : 'POS/MV', 'device' : 'tty_dgnc_0_2', # was 'ttyn1c', 'baud' : 9600, 'format' : 'ascii', 'subdir' : 'posmv', 'ext' : 'pmv', 'strings' : ('$INGGA', '$PASHR'), 'messages' : ('gps', 'pmv'), 'opt' : '-tc'}, { 'instrument' : 'GPS Trm', 'device' : 'tty_dgnc_0_0', # was 'ttyn1a', 'baud' : 4800, 'format' : 'ascii', 'subdir' : 'gpsnav', 'ext' : 'gps', 'strings' : ('$GPGGA',), 'messages' : ('gps',), 'opt' : '-tc'}, { 'instrument' : 'Gyro', 'device' : 'tty_dgnc_0_3', # was 'ttyn1d', 'baud' : 4800, 'format' : 'ascii', 'subdir' : 'gyro', 'ext' : 'hdg', 'strings' : ('$HEHDT',), 'messages' : ('hdg',), 'opt' : '-tc -s5'}, { 'instrument' : 'Phins', ## added Feb 2009 'device' : 'tty_dgnc_0_7', ## db25 is labeled 8 'baud' : 9600, 'format' : 'ascii', 'subdir' : 'phins', 'ext' : 'hdg', 'strings' : ('$HEHDT',), 'messages' : ('hdg',), 'opt' : '-tc'} # expecting a checksum ] speedlog_config = { 'instrument' : 'nb150', 'serial_device' : '/dev/ttyn6', 'baud' : 9600, 'dir_output' : '', 'heading_offset' : 46.0, 'scale' : 1.0, 'bins' : (1,12), 'heading_sensor' : 'seapath', 'heading_msg' : 'sea', 'soundspeed_sensor' : None, 'soundspeed_msg' : 'snd', 'nominal_soundspeed': 1536.0, } #### 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]