Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests] ConfigTest->SimIntegration, add TestBasicMicromissilePerformance #18

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Assets/Scripts/SimManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ public void SetTimeScale(float timeScale) {
}

public void StartSimulation() {
// Invoke the simulation started event to let listeners
// know to invoke their own handler behavior
OnSimulationStarted?.Invoke();
InitializeSimulation();
}
Expand Down Expand Up @@ -189,9 +191,6 @@ private void InitializeSimulation() {
// updating the time scale and fixed delta time from the newly loaded config files
}

// Invoke the simulation started event to let listeners
// know to invoke their own handler behavior
OnSimulationStarted?.Invoke();
List<Interceptor> missiles = new List<Interceptor>();
// Create missiles based on config
foreach (var swarmConfig in simulationConfig.interceptor_swarm_configs) {
Expand Down
30 changes: 30 additions & 0 deletions Assets/StreamingAssets/Configs/Models/Threats/quadcopter_kp1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "Quadcopter",
"agentClass": "RotaryWingThreat",
"unitCost": 1000,
"accelerationConfig": {
"maxReferenceNormalAcceleration": 300,
"referenceSpeed": 1000,
"maxForwardAcceleration": 50
},
"boostConfig": {
"boostTime": 0
},
"liftDragConfig": {
"dragCoefficient": 0
},
"bodyConfig": {
"mass": 1
},
"hitConfig": {
"hitRadius": 1,
"killProbability": 1.0
},
"powerTable": {
"IDLE": 0,
"LOW": 20,
"CRUISE": 40,
"MIL": 50,
"MAX": 75
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions Assets/StreamingAssets/Configs/Models/Threats/ucav_kp1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "UCAV",
"agentClass": "FixedWingThreat",
"unitCost": 30000,
"accelerationConfig": {
"maxReferenceNormalAcceleration": 300,
"referenceSpeed": 1000,
"maxForwardAcceleration": 1
},
"boostConfig": {
"boostTime": 0
},
"liftDragConfig": {
"dragCoefficient": 0
},
"bodyConfig": {
"mass": 10
},
"hitConfig": {
"hitRadius": 1,
"killProbability": 1.0
},
"powerTable": {
"IDLE": 0,
"LOW": 40,
"CRUISE": 80,
"MIL": 100,
"MAX": 120
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 0 additions & 73 deletions Assets/Tests/PlayMode/ConfigTest.cs

This file was deleted.

Loading
Loading