-
Notifications
You must be signed in to change notification settings - Fork 22
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
ENH: implement flutter detection #88
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks solid 👍
I followed the logic for the FB and for the tests
I had one comment about the dev library rename
@@ -17,7 +17,7 @@ | |||
<CombineIds>false</CombineIds> | |||
<Company>SLAC</Company> | |||
<Released>false</Released> | |||
<Title>LCLS General</Title> | |||
<Title>LCLS General-nrw</Title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to switch back before merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
switched back to original project name.
|
||
nCycleTime := _TaskInfo[GETCURTASKINDEXEX()].CycleTime; | ||
nCycleTime := nCycleTime / 10000; //convert to ms | ||
nCalcCycleTime := UDINT_TO_TIME(nCycleTime * 4); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I missed setting this magic 4 to nNumCycles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the tests are really precise in what they're expecting we might get different behavior if we switch target PLCs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replaced 4 with variable.
… properties back to original
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fully 👍 on this, good job!
Description
FB_FlutterDetection
to detect a boolean changing from high to low a given amount of times within a certain time window.TestFlutterReset
TestFlutterResolution
Motivation and Context
How Has This Been Tested?
Where Has This Been Documented?
Pre-merge checklist
Always Newest
version (Library, *
)pre-commit
or ranpre-commit run --all-files