#define MIN_HW_TEST 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 StringBuilder sbTemp = new StringBuilder(256); private static StructQueue.qStruct qS = new StructQueue.qStruct(); public static void init() { qS.byteArray = new byte[StructQueue.byteArrayWidth]; } public static void sampleInstruments(int stationNum) { //TODO: Eventually need to sample the instruments per the mission config file #if (!MIN_HW_TEST) sbTemp.Clear(); sbTemp.Append("Sampling Instruments"); EngrLogger.writeToColumns(sbTemp); Optode.doSample(); FLBB.sendRunCmd(); //Don't take a PTS sample in ascend mode because SBE41 is in CP mode if ( (Program.CPFState == Program.CPFStates.Descend) || (Program.CPFState == Program.CPFStates.Anchor) || (Program.CPFState == Program.CPFStates.DeAnchor) ) { SBE41.sbe41SamplePTS = true; } #endif } } }