# 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 = "mv" ADCPs = [ { 'instrument' : 'os150', #do not change 'setup' : 'rdi_setup', #do not change 'terminal' : 'oswh_term', #do not change 'defaultcmd' : 'os150_default.cmd', #do not change 'commands' : ('EA+00000','CX1,0,60'), 'datatypes' : ('os150bb','os150nb'), #do not change 'wakeup_baud' : 9600}, { 'instrument' : 'os75', 'setup' : 'rdi_setup', 'terminal' : 'oswh_term', 'defaultcmd' : 'os75_default.cmd', 'commands' : ('EA05810','CX1,0,60'), 'datatypes' : ('os75bb', 'os75nb'), 'wakeup_baud' : 9600} ] common_opts = '-f %s -F -m 1 -H 2 ' % (shipabbrev,) # 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 OS150 'device' : 'ttyR1', 'baud' : 38400, # data baud rate; only change if errs 'format' : 'binary', 'subdir' : 'os150', 'ext' : 'raw', 'opt' : '-rlE -c -O -I'}, { 'instrument' : 'os75', # Passive logging of OS 'device' : 'ttyR4', 'baud' : 38400, # Some errors at 115200. 'format' : 'binary', 'subdir' : 'os75', 'ext' : 'raw', 'opt' : '-rlE -c -O -I'}, # Note -I option for new ser_bin. { 'instrument' : 'GPS', 'device' : 'ttyR3', 'baud' : 4800, 'format' : 'ascii', 'subdir' : 'gpsnav', 'ext' : 'gps', 'strings' : ('$GPGGA',), 'messages' : ('gps',), 'opt' : '-tc'}, { 'instrument' : 'Gyro', 'device' : 'ttyR2', 'baud' : 9600, 'format' : 'ascii', 'subdir' : 'gyro', 'ext' : 'hdg', ## 'hnc' if no checksum 'strings' : ('$HEHDT',), 'messages' : ('hdg',), ## 'hnc' if no checksum 'opt' : '-tc'}, ## 6Hz: take every 3rd message "-s3" ## if no checksum, use "-t" not "-tc" { 'instrument' : 'Ashtech', 'device' : 'ttyR6', 'baud' : 9600, 'format' : 'ascii', 'subdir' : 'ashtech', 'ext' : 'adu', 'strings' : ('$GPGGA', '$PASHR,ATT'), 'messages' : ('gps', 'adu'), 'opt' : '-tc'} ] 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]