#eng-embed-sim
-
Be on Windows
The simulator should work on Mac and probably linux, but the FCU is a compiled DLL and will only work on Windows (tested on 8.1, 10.x should also be fine). I've had good success with parallels and Windows 8.1.
-
Make a directory and check out the following repositories as siblings:
mkdir rloopsim cd rloopsim git clone https://github.com/rLoopTeam/eng-embed-sim.git git clone https://github.com/rLoopTeam/eng-software-pod.git git clone https://github.com/rLoopTeam/react-groundstation.git
-
Install Python 2.7 (32 bit version). You must use 32-bit Python or the FCU DLL will not work. I'm using Python 2.7.13, but other versions will likely work just fine.
https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi
By default, this will install to C:\Python27\ -- if you change the install location, make sure to change the appropriate arguments when setting up your virtualenv (see below).
-
Install virtualenv
pip install virtualenv
-
Create your virtualenv under your rloopsim directory (we're still in the same directory as step 2).
virtualenv --prompt="(rloopsim)" --no-site-packages --python=C:\Python27\python.exe env
-
Activate the virtualenv Remember: You will need to do this at the start of any session working with the simulator. See the above link or http://docs.python-guide.org/en/latest/dev/virtualenvs/ for more details.
Note: you will likely need to relax restrictions on running scripts for this to work.
- From powershell, use the following to run a new shell as administrator: 'Start-Process powershell -Verb runAs'
- From the administrator powershell, run the following: 'Set-ExecutionPolicy RemoteSigned'
Now you can activate your virtualenv like so:
.\env\Scripts\activate
-
Use pip to install the simulator in development mode
cd eng-embed-sim pip install -e .
-
Run the simulator (from the top level of eng-embed-sim)
python rloopsim/sim.py conf/sim_config.py
(todo: fill in mor documentation)