'Winiki lub E' support MeterTestRslt

This commit is contained in:
Milan Hanajik
2022-11-11 14:14:44 +01:00
parent 9ca9d41ddc
commit 36ae8479ca
4 changed files with 14 additions and 6 deletions
+3 -3
View File
@@ -213,16 +213,16 @@ namespace TBF
/// <summary>
/// Get an array of Pump-With-FM power percentages from a TransitionStep entity
/// Get an array of Pump-With-FM power percentages from a string
/// </summary>
/// <param name="entity">TransitionStep entity</param>
/// <param name="pumpWithFMPcts">String from TransitionStep entity defining all FM pump powers</param>
/// <returns>float[] of FM-pump power percentages from 0 to 100.0f</returns>
public static float[] GetPumpWithFMPcts(string pumpWithFMPcts)
{
int fmPumpCount = Rig.Sequences.SequenceBase.PumpsWithFM.Count;
float[] result = new float[fmPumpCount];
string[] fmPctsStr = (pumpWithFMPcts != null) ? pumpWithFMPcts.Split(new char[] { ';' }) : new string[0];
string[] fmPctsStr = string.IsNullOrEmpty(pumpWithFMPcts) ? new string[0] : pumpWithFMPcts.Split(new char[] { ';' });
for (int i = 0; i < fmPumpCount; i++)
{
float fdummy;