Overload time fix for OptoTelegramRawTest

This commit is contained in:
2026-07-02 22:32:19 +02:00
parent d11f7107fe
commit 540b9af871
5 changed files with 361 additions and 9 deletions
@@ -58,7 +58,8 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.common
public double Flow(double scalingFactor) { return 0.225 * scalingFactor * (double)FlowRaw; }
public double Volume(double scalingFactor) { return 0.0000625 * scalingFactor * (double)VolumeRawExt; }
public Int32 FlipTime() { return Impedance; }
public decimal TimestampDec() { return (decimal)TimestampExt / (decimal)8192; }
public decimal TimestampDec() { return (decimal)TimestampExt;}
public double VolumeDelta(double scalingFactor, OptoTelegramRaw previous) { return (previous == null) ? 0 : Volume(scalingFactor) - previous.Volume(scalingFactor); }
public decimal TimeDelta() { return TimestampDec() - TestStartTimestampDec; }
public string Label()
@@ -330,9 +331,9 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.common
(EmfRaw & 0x00FFFFFF).ToString("X6"),
MagneticFieldRaw.ToString("X4"),
FlowRaw.ToString("X4"),
VolumeRaw.ToString("X6"),
VolumeRaw.ToString("F4", culture),
Impedance.ToString("X4"),
Timestamp.ToString("X8"),
Timestamp.ToString("F4", culture),
CheckSum.ToString("X2"),
EMF().ToString("F4", culture),
MagneticField().ToString("F0", culture),