Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimierungen an der sub SIGNALduino_Parse_MU() #1

Open
Ralf9 opened this issue Oct 28, 2018 · 0 comments
Open

Optimierungen an der sub SIGNALduino_Parse_MU() #1

Ralf9 opened this issue Oct 28, 2018 · 0 comments

Comments

@Ralf9
Copy link
Owner

Ralf9 commented Oct 28, 2018

prüfen ob die clock in der Toleranz ist

Am Anfang direkt nach der filterfunc

wird geprüft ob in clockpos ein String ungleich one oder zero (z.B. cp) enthalten ist.
Dann wird geprüft ob die in CP ausgegebene clock in der Toleranz ist.

		$msgclock = $msg_parts{pattern}{$msg_parts{clockidx}};
		if (!SIGNALduino_inTol($clockabs,$msgclock,$msgclock*0.30)) {
			next;
		}

Testen ob one in der patternList ist
next if (($pstr=SIGNALduino_PatternExists($hash,\@{$ProtocolListSIGNALduino{$id}{one}},\%patternList,\$rawData)) eq -1);
Wenn in clockpos one steht, dann wird getestet ob die im one Array enthaltene Clock in der Toleranz ist.

Testen ob zero im Protokoll definiert ist und in der patternList enthalten ist.
Wenn in clockpos zero steht, dann wird getestet ob die im zero Array enthaltene Clock in der Toleranz ist.

Ralf9 added a commit that referenced this issue Oct 28, 2018
…ranz ist

Es gibt dafür in der Protocollist einen neuen Eintrag clockpos 
z.B. clockpos => ['cp'] oder  clockpos  => ['one',0],

#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant