//////////////////////////////////////////////////////////////// 
// 
// PURPOSE: This contains BITModule parameters for Tethys.
//
// NOTES:   All values (except "strings") must be followed by
//          a unit abbreviation (or one of the unit-like
//          abbreviations: n/a, bool, enum, count). 
// 
//////////////////////////////////////////////////////////////// 

   /// CBIT
   CBIT.loadAtStartup            = 1 bool;
   CBIT.simulateHardware         = 1 bool;

   CBIT.stopDepth                = 275 m;     // Depth at which we stop the mission. Should be greater than all depth envelopes and less than abort depth
   CBIT.abortDepth               = 300 m;     // Depth at which we drop the weight. Should be greater than all depth envelopes

   CBIT.humidityThreshold        = 55 %;      // relative humidity
   CBIT.pressureThreshold        = 0.75 psi;  // Onboard pressure must measure greater than this offset from 1 ATM
   CBIT.tempThreshold            = 120 degF;  // Only need to use kelvin for temperature deltas

   CBIT.abortDepthTimeout        = 5 s;       // If this time has elapsed and we're still below abort depth, drop the weight, end the mission.
   CBIT.battFailReport           = 10 count;  // Report main battery failover at this multiple
   CBIT.battTempThreshold        = 35 degC;   // The allowable threshold for battery temperature
   CBIT.envTimeout               = 10 s;      // If this time has elapsed and pressure or humidity are still above threshold, end the mission.
   CBIT.runElevOffsetCalc        = 0 bool;    // Runs the empirical fault classifier's elevator offset calculator as part of CBIT if true
   CBIT.runFaultClassifier       = 0 bool;    // Runs the empirical fault classifier as part of CBIT if true
   CBIT.vehicleOpen              = 1 bool;

   CBIT.gfChanA0_Threshold       = 0.03 mA;   // Current above baseline that triggers a ground fault
   CBIT.gfChanA1_Threshold       = 0.03 mA;   // Current above baseline that triggers a ground fault
   CBIT.gfChanA2_Threshold       = 0.03 mA;   // Current above baseline that triggers a ground fault
   CBIT.gfChanA3_Threshold       = 0.03 mA;   // Current above baseline that triggers a ground fault
   CBIT.gfChanB0_Threshold       = 0.03 mA;   // Current above baseline that triggers a ground fault
   CBIT.gfChanB1_Threshold       = 0.03 mA;   // Current above baseline that triggers a ground fault
   CBIT.gfChanB2_Threshold       = 0.03 mA;   // Current above baseline that triggers a ground fault
   CBIT.gfChanB3_Threshold       = 0.03 mA;   // Current above baseline that triggers a ground fault

   CBIT.gfScanTimeout            = 6 hour;    // How often to scan for ground faults

   // These are offsets applied due to leakage in the circuit
   CBIT.gfBattOffset             = 107 uA;
   //CBIT.gf24Offset             = -28 uA;
   CBIT.gf24Offset               = 107 uA;    // Temporarilly set to battery bus offset until 24V card arrives
   CBIT.gf12Offset               = 67 uA;
   CBIT.gf5Offset                = 11 uA;
   CBIT.gf3_3Offset              = -2 uA;
   CBIT.gf3_15Offset             = -3 uA;
   CBIT.gfCommOffset             = -28 uA;


   /// SBIT
   SBIT.loadAtStartup            = 1 bool;
   SBIT.simulateHardware         = 1 bool;

   SBIT.kernelRelease            = "2.6.32-45-generic-pae";
   SBIT.kernelVersion            = "#102-Ubuntu SMP Wed Jan 2 22:10:16 UTC 2013";


   /// IBIT
   IBIT.loadAtStartup            = 1 bool;

   IBIT.batteryCapacityThreshold = 50 Ah;     // Amount of charge left at which we return to the surface
   IBIT.batteryVoltageThreshold  = 13.7 V;    // Amount of voltage left at which we return to the surface