INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         
oceanserverhealthchecks.h
1 /*
2  * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics
3  * http://gearbox.sf.net/
4  * Copyright (c) 2004-2010 Tobias Kaupp
5  *
6  * This distribution is licensed to you under the terms described in
7  * the LICENSE file included in this distribution.
8  *
9  */
10 
11 #ifndef GBX_OCEANSERVER_HEALTH_CHECKS
12 #define GBX_OCEANSERVER_HEALTH_CHECKS
13 
14 #include <gbxsmartbatteryacfr/oceanserversystem.h>
15 
16 namespace gbxsmartbatteryacfr
17 {
18 
22 bool checkNumCycles( const OceanServerSystem &batteryData,
23  std::vector<std::string> &warnShort,
24  std::vector<std::string> &warnVerbose,
25  int numCyclesThreshhold,
26  bool printRawRecord = false );
27 
31 bool checkTemperatures(const OceanServerSystem &batteryData,
32  std::vector<std::string> &warnShort,
33  std::vector<std::string> &warnVerbose,
34  double chargeTempThreshhold,
35  double dischargeTempThreshhold,
36  bool printRawRecord = false );
37 
40 bool checkCharges(const OceanServerSystem &batteryData,
41  std::vector<std::string> &warnShort,
42  std::vector<std::string> &warnVerbose,
43  int chargeWarnThreshhold,
44  int chargeDeviationThreshold );
45 
48 bool checkModuleHealth( const OceanServerSystem &batteryData,
49  std::vector<std::string> &warnShort,
50  std::vector<std::string> &warnVerbose );
51 
54 bool checkNumberOfBatteries( const OceanServerSystem &batteryData,
55  std::vector<std::string> &warnShort,
56  std::vector<std::string> &warnVerbose,
57  int expectedNumBatteries );
58 
62 {
75 };
76 
81 bool conductAllHealthChecks( const OceanServerSystem &batteryData,
82  const BatteryHealthWarningConfig &batteryCheckConfig,
83  std::vector<std::string> &warnShort,
84  std::vector<std::string> &warnVerbose,
85  bool printRawRecord = false );
86 
87 
88 
89 
90 } // namespace
91 
92 #endif
int numCyclesThreshhold
Maximum number of battery recharge cycles before a warning is issued.
Definition: oceanserverhealthchecks.h:66
bool conductAllHealthChecks(const OceanServerSystem &batteryData, const BatteryHealthWarningConfig &batteryConfig, std::vector< std::string > &warnShort, std::vector< std::string > &warnVerbose, bool printRawRecord)
Definition: oceanserverhealthchecks.cpp:267
bool checkNumberOfBatteries(const OceanServerSystem &batteryData, std::vector< std::string > &warnShort, std::vector< std::string > &warnVerbose, int expectedNumBatteries)
Definition: oceanserverhealthchecks.cpp:47
int expectedNumBatteries
Expected number of battery modules installed.
Definition: oceanserverhealthchecks.h:64
Definition: oceanserverhealthchecks.h:61
double chargeTempThreshhold
Maximum charging temperature before a warning is issued.
Definition: oceanserverhealthchecks.h:68
int chargeDeviationThreshold
Minimum deviation of a single battery from the average of all batteries before a warning is issued (i...
Definition: oceanserverhealthchecks.h:74
SmartBattery library.
Definition: gbxsmartbatteryacfr/exceptions.h:16
Definition: oceanserversystem.h:26
int chargeWarnThreshhold
Minimum charge in percent before a warning is issued.
Definition: oceanserverhealthchecks.h:72
double dischargeTempThreshhold
Maximum discharging temperature before a warning is issued.
Definition: oceanserverhealthchecks.h:70
 

Generated for GearBox by  doxygen 1.4.5