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

TPG300: fix and re-test switching functions on hardware #10

Merged
merged 3 commits into from
Sep 9, 2022

Conversation

LilithCole
Copy link
Contributor

@LilithCole LilithCole commented Aug 23, 2022

Further testing on the TPG300 revealed that it was very picky about the format of its inputs. Specifically, it would not accept any leading zeroes in exponents. Sadly there was no good format converter for this, so it's been accomplished using a regex substring psuedo-converter to just strip off the first 0 after an "E" and a sign in the command (E+0 is valid, E+00 is not, also this section is max 2 digit).
Additionally the UNITS:SP was complaining about being an illegal value, so this has been fixed by defining ZRVL, ONVL, and TWVL.

Ticket

Ticket 7255 - TPG300: fix and re-test switching functions on hardware

Acceptance Criteria

  • Ensure the code is of acceptable quality
  • IOC Test Framework tests all pass
  • No errors appear in OPI or IOC log when testing with hardware (see main ticket for instructions)

@@ -48,7 +48,7 @@ getFunctionMacro {
}

setFunction {
out "SP%(\$1)s,%(\$1\$2).1E,%(\$1\$3).1E,%(\$1\$4)d";
out "SP%(\$1)s,%(\$1\$2).1E,%(\$1\$3).1E,%(\$1\$4)d%#/E(\+|-)0(\d)/E\1\2/";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add a comment above this line explaining what is going on? Otherwise this is going to confuse future developers, I think...

@Tom-Willemsen Tom-Willemsen merged commit 759b4c8 into master Sep 9, 2022
@Tom-Willemsen Tom-Willemsen deleted the Ticket7255_fix_switching branch September 9, 2022 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants