Revision 814, 0.7 kB
(checked in by smidl, 15 years ago)
|
AimsunDS
|
Line | |
---|
1 | |
---|
2 | /*! |
---|
3 | \file |
---|
4 | \brief Multi-Estimator (developped for PMSM) |
---|
5 | |
---|
6 | |
---|
7 | */ |
---|
8 | |
---|
9 | #include "base/user_info.h" |
---|
10 | #include "base/loggers.h" |
---|
11 | #include "estim/kalman.h" |
---|
12 | #include "pmsmDS.h" |
---|
13 | #include "filters.h" |
---|
14 | #include "aimsun_bdm/aimsun_ds.h" |
---|
15 | |
---|
16 | |
---|
17 | using namespace bdm; |
---|
18 | int main ( int argc, char* argv[] ) { |
---|
19 | const char *fname; |
---|
20 | if ( argc>1 ) {fname = argv[1]; } |
---|
21 | else { cout << "Missing configuration file.\n Usage: \n $> estimator config_file.cfg"<<endl; abort(); } |
---|
22 | UIFile F ( fname ); |
---|
23 | |
---|
24 | AimsunDS DS; |
---|
25 | shared_ptr<logger> L = UI::build <logger>( F, "logger" ); |
---|
26 | |
---|
27 | L->finalize(); |
---|
28 | |
---|
29 | for (int i=0; i<nE; i++){ |
---|
30 | delete Dls(i); |
---|
31 | delete Dlsc(i); |
---|
32 | } |
---|
33 | return 0; |
---|
34 | } |
---|