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

Pressure Code Reviewed #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lucasericsson222
Copy link

I have reviewed the pressure code, and made some changes so that no code is repeated, so that when we run the tests with the hardware, we should only have to make a change in one place.

The numbers for the states have been replaced with an enum. The compiler translates this enum into integer values, so it should work identically to how it was previously, but with some more readability.

Before this code can work, the DUMMY value at the top, where the pins for each pressurized tank need to be set to a realistic value. Along with this, the pressureFromPtval() function needs to be calibrated according to the necessary ticks to psi.

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

Successfully merging this pull request may close these issues.

1 participant