nasa / LC

The Core Flight System (cFS) Limit Checker (LC) application.
Apache License 2.0
30 stars 21 forks source link

Fix #14, Refactor LC_SampleAPs to remove extraneous if statement #47

Closed thnkslprpt closed 1 year ago

thnkslprpt commented 1 year ago

Checklist

Describe the contribution

Testing performed GitHub CI actions (incl. Build + Run, Unit Tests etc.) all passing successfully.

Expected behavior changes Intent of the code remains basically unchanged, although the logic has changed slightly. Main change is that CurrentAPState is checked as valid before any sampling of action points, whereas previously this was only checked in the single action point sample condition - i.e. if (StartIndex == EndIndex)

Contributor Info Avi @thnkslprpt