This is a sample Core Flight Software (cFS) project to demonstrate how Trick Variable Server IO can be used.
TVS-IO is included as a submodule at apps/tvs_io
CFS1
TODO: Add brief CFS build directions
Trick2
This project includes two very basic Trick simulations. One is a producer the other is a consumer. TVS-IO connects to the Trick Variable Server of each sim, reading and writing values as defined by the *.tvm files. These sims are located in the trick_sims folder
-
This sim is extremely simple. All it does is to count up and periodically reset back to 0. This value is mapped in a *.tvm file to be read by TVS-IO and sent to SIM_range
-
This sim monitors a value which is set by TVS-IO, and prints it to the console
For both, the same process will build each sim.
cd trick_sims/SIM_...
trick-CP
This command will build the executable, which will be named S_main_<platform>.exe
. For example on 64bit linux it might be named S_main_Linux_4.8_x86_64.exe
-
Start cFS
TODO: cFS steps
-
Start each sim:
cd trick_sims/SIM_temp ./S_main_Linux_4.8_x86_64.exe
Footnotes
-
For the cFS portion of this project CFS-101 is recommended. That will teach you the basics of cFS. ↩
-
It is necessary to build and install Trick. Please visit Trick Github and follow the installation guide. ↩