From: <to...@us...> - 2009-05-02 03:16:44
|
Revision: 405 http://gearbox.svn.sourceforge.net/gearbox/?rev=405&view=rev Author: tobasco Date: 2009-05-02 03:16:36 +0000 (Sat, 02 May 2009) Log Message: ----------- docco Modified Paths: -------------- gearbox/trunk/src/gbxsmartbatteryacfr/smartbatteryacfr.dox gearbox/trunk/src/gbxsmartbatteryacfr/test/longtest.cpp Modified: gearbox/trunk/src/gbxsmartbatteryacfr/smartbatteryacfr.dox =================================================================== --- gearbox/trunk/src/gbxsmartbatteryacfr/smartbatteryacfr.dox 2009-05-02 01:00:28 UTC (rev 404) +++ gearbox/trunk/src/gbxsmartbatteryacfr/smartbatteryacfr.dox 2009-05-02 03:16:36 UTC (rev 405) @@ -28,6 +28,7 @@ @par Examples - See 'test/shorttest.cpp' for a simple example of how to use the library. The test makes use of the 'oceanserver' class to read a few records from the oceanserver system and prints the results on the screen. +- See 'test/longtest.cpp' for an example which continuously reads from an oceanserver system and conducts health checks according to hard-coded health thresholds. @par Style See http://orca-robotics.sourceforge.net/orca/orca_doc_style.html Modified: gearbox/trunk/src/gbxsmartbatteryacfr/test/longtest.cpp =================================================================== --- gearbox/trunk/src/gbxsmartbatteryacfr/test/longtest.cpp 2009-05-02 01:00:28 UTC (rev 404) +++ gearbox/trunk/src/gbxsmartbatteryacfr/test/longtest.cpp 2009-05-02 03:16:36 UTC (rev 405) @@ -48,11 +48,11 @@ { gbxsmartbatteryacfr::BatteryHealthWarningConfig config; config.expectedNumBatteries = 2; - config.numCyclesThreshhold = 0; //300 - config.chargeTempThreshhold = 10.0; // 54.0 - config.dischargeTempThreshhold = 10.0; // 70.0 - config.chargeWarnThreshhold = 60; // 10 - config.chargeDeviationThreshold = 1; // 10 + config.numCyclesThreshhold = 300; + config.chargeTempThreshhold = 54.0; + config.dischargeTempThreshhold = 70.0; + config.chargeWarnThreshhold = 10; + config.chargeDeviationThreshold = 10; gbxsmartbatteryacfr::OceanServer oceanserver( port, tracer ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |