private void UpdateTestResults(GameTime gameTime, TestScenarioEndTrigger endTrigger) { if (!_testResults.ContainsKey(_scenario.Name)) _testResults[_scenario.Name] = new List<ScenarioTestResult>(); // Append result to list of results for this scenario name var r = new ScenarioTestResult(_intermediaryTestResult, _scenario, _helicopter, gameTime, endTrigger); _testResults[_scenario.Name].Add(r); }
private static string GetFlightLogFilename(ScenarioTestResult r) { const string filenameBase = @"flightlog"; const string ext = ".xml"; // TODO Sensor configuration string dynamicPart = String.Format("{0}_{1}mps", r.Scenario.Name, r.Autopilot.MaxHVelocity); return String.Format("{0}_{1}{2}", filenameBase, dynamicPart, ext); }