Changeset 828
- Timestamp:
- 02/23/10 14:14:39 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/doprava/aimsun_bdm/aimsun_ds.cpp
r825 r828 2 2 */ 3 3 4 /* WIN32 stuff */ 5 #include <windows.h> 6 #include <stdio.h> 7 #include <tchar.h> 4 /* Class definition */ 5 #include "aimsun_ds.h" 6 #include "tools.h" 8 7 9 8 // TODO: reference additional headers your program requires here … … 14 13 15 14 #include <atlbase.h> 16 17 extern "C" {18 #include "eh_hrd.h"19 #include "els3_comm.h"20 #include "vgs_hrd.h"21 }22 23 /* Class definition */24 #include "aimsun_ds.h"25 #include "tools.h"26 15 27 16 #define MAX_PATH_BYTES (MAX_PATH*sizeof(TCHAR)) … … 92 81 The first search for backslash removes the executable from the 93 82 path.*/ 94 last = _tcsrchr ( szBasePath, '\\' );95 *last = '\0';83 //last = _tcsrchr ( szBasePath, '\\' ); 84 //*last = '\0'; 96 85 /* The second moves to the root of the installation. */ 97 last = _tcsrchr ( szBasePath, '\\' );98 *last = '\0';86 //last = _tcsrchr ( szBasePath, '\\' ); 87 //*last = '\0'; 99 88 100 89 /* Create the path to DLL directory. … … 280 269 } 281 270 271 /* Aaaaggggrrrrrhhhh! 272 C++ is much much faster than Matlab and we have a synchronisation 273 issue with els3 controllers starting too late. */ 274 Sleep ( 5000 ); 275 282 276 /* Prepare full path for vehicle input data. */ 283 277 StringCbCopy ( szEntrancePath, MAX_EXE_PATH, szSceDir ); … … 320 314 /* Remember the size of the input vector. */ 321 315 utsize = Urv._dsize(); 316 317 set_log_level(0); 318 /* Initialise the pointer to received data. */ 319 p_rsp = NULL; 322 320 } 323 321 … … 441 439 } 442 440 /* Check that the phase lengths sum to correct cycle time. */ 443 if ( ut[0]+ut[1]+ut[2] != 80 ) 441 /* 442 if ( ut[0]+ut[1]+ut[2] != 80 ) 444 443 { 445 444 fprintf ( stderr, "Intersection 495: F1+F2+F3 != Tc (should be 80)" ); … … 450 449 fprintf ( stderr, "Intersection 601: F1+F2+F3 != Tc (should be 80)" ); 451 450 exit(-1); 452 } 451 }*/ 453 452 454 453 hrdsp[0].id = 495;