changed LED state from 4 to 7 in

This commit is contained in:
2026-07-02 21:47:14 +02:00
parent 110b880304
commit 3c5a28f69d
73 changed files with 17282 additions and 13066 deletions
@@ -1020,7 +1020,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
bool synchronized2;
string partOfTelegram;
DiagnosticLedParser parser = new DiagnosticLedParser(DiagnosticLedState.State4);
DiagnosticLedParser parser = new DiagnosticLedParser(DiagnosticLedState.State7);
/// <summary>
/// Reads opto-datastream via serial port. Invoked from RunDeviceBefore()
@@ -1052,8 +1052,8 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
if (optoState == DataStreamState.ProcessAndSave)
{
DiagnosticLedState4Data data =
(DiagnosticLedState4Data)parser.ParseLine(line, false);
DiagnosticLedState7Data data =
(DiagnosticLedState7Data)parser.ParseLine(line, false);
int bufferIx = BufferIdx(optoDataCount);
@@ -1089,8 +1089,8 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
else
{
// Flush mode
DiagnosticLedState4Data data =
(DiagnosticLedState4Data)parser.ParseLine(line, false);
DiagnosticLedState7Data data =
(DiagnosticLedState7Data)parser.ParseLine(line, false);
flowDirectionDetection.WriteToFifo(volumeRawExtLast, timestampExtLast);
}
@@ -1705,14 +1705,14 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
{
try
{
DiagnosticLedState4Data data =
(DiagnosticLedState4Data)parser.ParseLine(readOptoDataWithTimeout, false);
DiagnosticLedState7Data data =
(DiagnosticLedState7Data)parser.ParseLine(readOptoDataWithTimeout, false);
volumeLtr = data.RawVolume;
break;
}
catch (Exception ex)
{
log.Warn($"Parsing DiagnosticLedState4Data: {ex.Message}");
log.Warn($"Parsing DiagnosticLedState7Data: {ex.Message}");
}
}
}
@@ -1779,14 +1779,14 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
{
try
{
DiagnosticLedState4Data data =
(DiagnosticLedState4Data)parser.ParseLine(readOptoDataWithTimeout, false);
DiagnosticLedState7Data data =
(DiagnosticLedState7Data)parser.ParseLine(readOptoDataWithTimeout, false);
volumeLtr0 = data.RawVolume;
break;
}
catch (Exception ex)
{
log.Warn($"Parsing DiagnosticLedState4Data: {ex.Message}");
log.Warn($"Parsing DiagnosticLedState7Data: {ex.Message}");
}
}
}