LRAUV  revA
CBITIF.h
Go to the documentation of this file.
1 
13 #ifndef CBITIF_H_
14 #define CBITIF_H_
15 
16 #include "data/ElementURI.h"
17 
27 namespace CBITIF
28 {
31 static const Str NAME( "CBIT" );
32 
33 // Include common ConfigURIs -- must be in namespace and follow definition of NAME
36 
37 // TODO: change these static const str to DataURI, etc.
39 static const DataURI CLEAR_FAULT_CMD( NAME, "clearFaultCmd", Units::ENUM );
40 static const DataURI CLEAR_LEAK_FAULT_CMD( NAME, "clearLeakFaultCmd", Units::ENUM );
41 
42 static const DataURI SHOREPOWER_ON( NAME, "shorePowerOn", Units::BOOL );
43 
44 static const DataURI GF_ACTIVE_STATE( NAME, "GFActive", Units::BOOL );
45 static const DataURI GFCHAN0_READING( NAME, "GFCHAN0Current", Units::MILLIAMPERE );
46 static const DataURI GFCHAN1_READING( NAME, "GFCHAN1Current", Units::MILLIAMPERE );
47 static const DataURI GFCHAN2_READING( NAME, "GFCHAN2Current", Units::MILLIAMPERE );
48 static const DataURI GFCHAN4_READING( NAME, "GFCHAN4Current", Units::MILLIAMPERE );
49 static const DataURI GFCHAN5_READING( NAME, "GFCHAN5Current", Units::MILLIAMPERE );
50 static const DataURI GFCHANOPEN_READING( NAME, "GFCHANOpenCurrent", Units::MILLIAMPERE );
51 
52 
53 static const DataURI EFC_ELEV_OFFSET( NAME, "empiricalFaultElevOffset", Units::RADIAN );
54 static const DataURI EMPERICAL_FAULT_READING( NAME, "empericalClassifierFaultDetected", Units::ENUM );
55 static const DataURI BINNED_DEPTH_RATE_READING( NAME, "binnedDepthRate", Units::METER_PER_SECOND );
56 
57 static const ConfigURI ABORT_DEPTH_CFG( NAME, "abortDepth", Units::METER ); // Depth at which we drop the weight. Should be greater than all depth envelopes
58 static const ConfigURI STOP_DEPTH_CFG( NAME, "stopDepth", Units::METER ); // Depth at which we stop the mission. Should be greater than all depth envelopes and less than abort depth
59 
60 static const ConfigURI HUMIDITY_THRESHOLD_CFG( NAME, "humidityThreshold", Units::PERCENT ); // relative humidity
61 static const ConfigURI PRESSURE_THRESHOLD_CFG( NAME, "pressureThreshold", Units::POUND_PER_SQUARE_INCH ); // Onboard pressure must measure greater than this offset from 1 ATM
62 static const ConfigURI TEMP_THRESHOLD_CFG( NAME, "tempThreshold", Units::CELSIUS ); // Only need to use kelvin for temperature deltas
63 
64 static const ConfigURI VEHICLE_OPEN_CFG( NAME, "vehicleOpen", Units::BOOL );
65 static const ConfigURI ABORT_DEPTH_TIMEOUT_CFG( NAME, "abortDepthTimeout", Units::SECOND ); // If this time has elapsed and we're still below abort depth, drop the weight, end the mission.
66 static const ConfigURI BATT_FAIL_REPORT_CFG( NAME, "battFailReport", Units::COUNT ); // Report main battery failover at this multiple
67 static const ConfigURI ENV_TIMEOUT_CFG( NAME, "envTimeout", Units::SECOND ); // If this time has elapsed and pressure or humidity are still above threshold, end the mission.
68 static const ConfigURI RUN_FAULT_CLASSIFIER( NAME, "runFaultClassifier", Units::BOOL ); // Runs the empirical fault classifier as part of CBIT if true
69 static const ConfigURI RUN_ELEV_OFFSET_CALCULATOR( NAME, "runElevOffsetCalc", Units::BOOL ); // Runs the empirical fault classifier's elevator offset calculator as part of CBIT if true
70 
71 static const ConfigURI BATT_TEMP_THRESHOLD_CFG( NAME, "battTempThreshold", Units::CELSIUS ); // The allowable threshold for battery temperature
72 
73 static const ConfigURI GFCHAN0_THRESHOLD_CFG( NAME, "gfChan0_Threshold", Units::MILLIAMPERE ); // Current above baseline that triggers a ground fault
74 static const ConfigURI GFCHAN1_THRESHOLD_CFG( NAME, "gfChan1_Threshold", Units::MILLIAMPERE ); // Current above baseline that triggers a ground fault
75 static const ConfigURI GFCHAN2_THRESHOLD_CFG( NAME, "gfChan2_Threshold", Units::MILLIAMPERE ); // Current above baseline that triggers a ground fault
76 static const ConfigURI GFCHAN4_THRESHOLD_CFG( NAME, "gfChan4_Threshold", Units::MILLIAMPERE ); // Current above baseline that triggers a ground fault
77 static const ConfigURI GFCHAN5_THRESHOLD_CFG( NAME, "gfChan5_Threshold", Units::MILLIAMPERE ); // Current above baseline that triggers a ground fault
78 
79 static const ConfigURI GFSCAN_TIMEOUT_CFG( NAME, "gfScanTimeout", Units::MILLIAMPERE ); // How often to scan for ground faults
80 
81 }
82 
84 {
85 static const Str NAME( "CBITMainGroundfault" );
87 }
88 
89 #endif /*CBITIF_H_*/
Definition: CBITIF.h:83
static const BaseUnit COUNT
Definition: Units.h:228
Specifies URIs shared by components that can simulate their hardware Designed to be included within n...
static const Unit POUND_PER_SQUARE_INCH
Definition: Units.h:197
Specifies URIs shared by components that have a/d converters Designed to be included within namespace...
Specifies the interface details for the CBIT component in the BITModule.
Definition: CBITIF.h:27
static const BaseUnit SECOND
Definition: Units.h:43
static const BaseUnit METER_PER_SECOND
Definition: Units.h:86
Definition: ElementURI.h:166
static const BaseUnit RADIAN
Definition: Units.h:60
static const Unit PERCENT
Definition: Units.h:224
Replacement for standard template class string.
Definition: Str.h:12
static const Unit MILLIAMPERE
Definition: Units.h:159
Specifies URIs shared by components that can be loaded from modules at startup Designed to be include...
Contains the ElementURI class definition.
Definition: ElementURI.h:229
static const BaseUnit ENUM
Definition: Units.h:229
static const Unit CELSIUS
Definition: Units.h:110
static const BaseUnit BOOL
Definition: Units.h:227
static const BaseUnit METER
Definition: Units.h:42