# 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*. # To effectively remove an instrument from UHDAS control, # uncomment one and only one of the "instdel = 0" and # "instdel = 1" lines, # and comment out the "instdel = None" line. # (Don't do this unless you are sure you need to.) # Then restart UHDAS; it is not enough to simply stop and # restart logging, or even a cruise. #instdel = 0 # to disable os150 #instdel = 1 # to disable OS75 instdel = None # normally left uncommented # Again: of the three lines above, one and only one MUST be left # uncommented (that is, without the "#" character in front of it), # and the uncommented line MUST start in the first column. # 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',), # see comment #1 'datatypes' : ('os150bb','os150nb'), #do not change 'wakeup_baud' : 9600}, # see comment #2 { 'instrument' : 'os75', 'setup' : 'rdi_setup', 'terminal' : 'oswh_term', 'defaultcmd' : 'os75_default.cmd', 'commands' : ('EA05810',), 'datatypes' : ('os75bb', 'os75nb'), 'wakeup_baud' : 9600} ] # comment #1 # # The EA command *must* be set correctly or the data may be irrevocably # damaged. However "set correctly" can be pretty sloppy. ER here refers to # the nominal angle of beam 3, eg. 0,20,30,45,90,135,-45, -90 # Probably best to use 179 not 180 if it is really facing backwards # comment #2 # # wakeup_baud rate is probably set in the deck unit with dip switches. # This refers to whatever baud rate is nexessary to read the "wakeup" # message RDI instruments send out after getting a common_opts = '-f %s -F -m 1 -H 2 ' % (shipabbrev,) 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'} ] #### DO NOT CHANGE the following ################ if instdel is not None: del(sensors[instdel]) del(ADCPs[instdel])