using System; using System.Text; //TODO P2 move all these parameters into appropriate classes namespace HWModules { public static class missionConfig { public const string platformName = "cpf001"; //For String Pot public const double bellowsLowerLimit = 85.0; public const double bellowsUpperLimit = 250.0; public const double SOSetBellowsPosition = 155.0; public const int SOSetBellowsJV = 200000; public const double RMSetBellowsPosition = 155.0; public const int ABRetractFastJV = 200000; public const int ABRetractSlowJV = 200000; public const double ABPressureThreshold = 0.3; //TODO P2 check to see why these aren't used anymore private static double lowerDescendBellowsLimit = bellowsLowerLimit + 3.0; public static double LowerDescendBellowsLimit { get { return lowerDescendBellowsLimit; } } static public readonly double upperDescendBellowsLimit = bellowsUpperLimit - 3.0; public static double UpperDescendBellowsLimit { get { return upperDescendBellowsLimit; } } static public readonly TimeSpan smCyclePeriod = new TimeSpan(0, 0, 0, 1, 0); //msec static public readonly int smCyclePeriodMilliseconds = (int)(smCyclePeriod.Ticks / TimeSpan.TicksPerMillisecond); //Buoyancy control stuff public const double surfacePressure = 0.35; //Anchor stuff public const double deanchorVelocityThreshold = 0.007; public const int deanchorJV = 200000; public const double deanchorVelocityLimit = 0.02; public const int anchorPressureCountThreshold = 3; public const double anchorPressureMinimum = 4.0; public const double anchorVelocityLimit = 0.025; public const double exitAnchorPressureThreshold = 5.0; //nudge control public const double approachVel = 0.01; //SBE41 stuff public const int cpPressureCutoff = 1; //CP mode stops below this pressure in deciBars public const int cpRunPumpTime = 2; //run the pump for this many seconds before starting CP mode public static bool CPMode = true; //Puts SBE41 in CP mode during ascend state only public const int SBE41CommandModeSamplePeriod = 3000; //msec public const int SBE41CPSamplePeriod = 1000; //msec //EngrLogger stuff public static int verbosityLevel = 4; public static readonly TimeSpan PTHSamplePeriod = new TimeSpan(0, 0, 60); public static readonly TimeSpan EMBatteryBusSamplePeriod = new TimeSpan(0, 0, 60); } }