Skip to content

Commit

Permalink
Simplified base reliability calculation. reliabilityMultipler indicat…
Browse files Browse the repository at this point in the history
…es difficulty with numbers approaching 0 being the hardest
  • Loading branch information
jwvanderbeck committed Dec 31, 2014
1 parent dbfeb3f commit eda22fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TestFlightAPI/TestFlightAPI/TestFlightReliability.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ public float GetCurrentReliability(TestFlightData flightData)
// Determine current situation
string scope = flightData.scope;
// Determine raw reliability
float rawReliability = (float)Math.Pow(currentFlightData * reliabilityMultiplier, 1.0 / reliabilityFactor);
float rawReliability = (float)Math.Sqrt(currentFlightData * reliabilityMultiplier);
//float rawReliability = (float)Math.Pow(currentFlightData * reliabilityMultiplier, 1.0 / reliabilityFactor);
// Now adjust if needed based on situation
ReliabilityBodyConfig body = GetReliabilityBody(scope);
if (body != null)
Expand Down

0 comments on commit eda22fd

Please sign in to comment.