Simulator presentation |
This project is a trains simulator for POSIX and RTAI systems. POSIX capabilities do NOT need real-time OS, you only need a POSIX-compliant Linux kernel; otherwise RTAI capabilities need installation of a Linux kernel patched RTAI (>=3.7) and RTnet (see RTAI installation parts: "RTAI and RTnet from sources" ou "RTAI and RTnet from Debian built-in packages"). Simulator downloadsYou can find simulator download here or by typing following command in your terminal: wget http://trainsim.ebvmultimedia.net/dl/trainsim.zip Build simulator and user programFor build both (simulator and user program, launch compilation script in a terminal, with your user accournt (You may need to install some additionals libraries like gtk+, cairo, pango, glib) : ./compil For POSIX mode compilation, comment these lines //#define TS_RTAI 1 //#define TSUSR_RTAI 1in ./src/const_kernel.h and ./usr/src/usr_const_global.h. For RTAI mode compilation, check these previous lines are commented out. #define TS_RTAI 1 #define TSUSR_RTAI 1Makefile don't need to be updated. Launching simulator and user programAfter choosing between POSIX or RTAI mode and building programs: To launch simulator in POSIX mode, execute with a user account: ./trainsim To launch simulator in RTAI mode, execute with the root account (super user): ./run |