Commit d9895407 authored by Pavel Vainerman's avatar Pavel Vainerman

Добавил новый тест: calibration

parent 14528e11
......@@ -4,7 +4,7 @@
SUBDIRS=JrnTests
noinst_PROGRAMS = passivetimer unixml ui umutex conftest iterator_test sscanf_hex
noinst_PROGRAMS = passivetimer unixml ui umutex conftest iterator_test sscanf_hex calibration
passivetimer_SOURCES = passivetimer.cc
passivetimer_LDADD = $(top_builddir)/lib/libUniSet.la
......@@ -32,6 +32,10 @@ conftest_CPPFLAGS = -I$(top_builddir)/include
sscanf_hex_SOURCES = sscanf_hex.cc
calibration_SOURCES = calibration.cc
calibration_LDADD = $(top_builddir)/lib/libUniSet.la ${SIGC_LIBS}
calibration_CPPFLAGS = -I$(top_builddir)/include ${SIGC_CFLAGS}
include $(top_builddir)/conf/setting.mk
// --------------------------------------------------------------------------
#include <string>
#include "Debug.h"
#include "Configuration.h"
#include "ORepHelpers.h"
// --------------------------------------------------------------------------
using namespace std;
using namespace UniSetTypes;
// --------------------------------------------------------------------------
int main(int argc, const char **argv)
{
// if( argc>1 && strcmp(argv[1],"--help")==0 )
// {
// cout << "--confile - Configuration file. Default: test.xml" << endl;
// return 0;
// }
try
{
// string confile = UniSetTypes::getArgParam( "--confile", argc, argv, "test.xml" );
// conf = new Configuration(argc, argv, confile);
for( int i=-5; i<5; i++ )
{
cout << "raw=" << (817+i)
<< " cal=" << lcalibrate(817+i,817,4095,0,400)
<< endl;
}
return 0;
}
catch(SystemError& err)
{
cerr << "(calibration): " << err << endl;
}
catch(Exception& ex)
{
cerr << "(calibration): " << ex << endl;
}
catch(...)
{
cerr << "(calibration): catch(...)" << endl;
}
return 1;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment