using System; using System.Text; using Microsoft.SPOT; namespace CPF { class InstrumentHandler { private static object IHLock = new Object(); private static StringBuilder SI = new StringBuilder("Sampling Instruments"); private static StructQueue.qStruct qS = new StructQueue.qStruct(); public static void init() { qS.byteArray = new byte[StructQueue.qRecordWidth]; } public static void sampleInstruments(int stationNum) { //TODO: Eventually need to sample the instruments per the mission config file Optode.doSample(); if ( (Program.CPFState == Program.CPFStates.Descend) || (Program.CPFState == Program.CPFStates.Ascend) || (Program.CPFState == Program.CPFStates.Anchor) || (Program.CPFState == Program.CPFStates.DeAnchor) ) { SBE41.sbe41SamplePTS = true; } } } }