vsTASKER 7 Tutorial
×
Menu
Index

STAGE Sample

 
This demo needs STAGE 4 (minimum) from Presagis.
The setup is a little more complicated as the code must be linked with the STAGE libraries.
If you do not have STAGE and a valid license, you cannot run this demo.
 
1) The needed environment variables are set in file engine\stage\setup.cmd. Open it and change the STAGE directory setting. Then, you can either copy all these environment variables to the systems one or work from a console window.
 
2) Open a console window. Type: cd D:\VirtualSim\vsTasker\7
Then type: runtime\stage\setup.cmd
Then type: start /b vstasker
Then after that: start /b stage.de (you need to have a valid license for STAGE)
 
3) Build the two STAGE scenarios as follow:
Radar: Min azimuth: -80, max azimuth: +80, detection: 100% from 0 to 5 km
Visuel: Min azimuth: -80, max azimuth +80, detection: 100% from 0 to 1 km
Max speed: 200, climb/dive rate: 500 m/s.
 
 
Create a scenario Scn_1
Set the MAP size to 10 km
Drop a platform tank in the scenario and a platform site at 1.5 km north-east of the tank.
 
 
Create a scenario Scn_2
Set the MAP size to 20 km
Drop a platform F16 in the scenario, positioned south and facing north.
Drop a platform MIG in the scenario, positioned north-east and facing west, color RED.
Set the two platforms initial speed: 100 m/s and elevation 2000 m
 
4) In the vsTASKER Database Properties window, check in Compilation and Link tab that the path is correct for the Visual C++ compiler and linker.
 
5) Generate and compile the vsTASKER stage database.
If you have errors, try to correct them. Probably that STAGE environment variables are not correctly set. This demo works with the STAGE out of the box, not the extended one.
 
6) Start STAGE DE and load the tasker.dbs database.
 
7) Launch the simulation engine (vsTASKER is in slave mode for this demo and thus, STAGE DE must start the simulation).
 
8) Select Scn_1 in STAGE and start STAGE. If you want to monitor the logic in vsTASKER, select the same scenario and wait for the entity to turn magenta before clicking it, then the logic to monitor the flow.
 
You can then stop the simulation (still using STAGE) and try Scn_2 that shows a little dog-fighting between two entities.