Add code to read valve state from hardware and report it properly in firmware. Also, output to control pins from control signals.
Why?
This is important information for the control system to make the right decision and to make sure we don't have 'flickering' where we rapidly open and close the valve without letting it finish.
How?
Add pin to Application for the two valve state pins.
Add a function in the embedded_firmware_core to read the valve state into a ValveState.
Test the function
Update report function to use this new functionality.
What?
Add code to read valve state from hardware and report it properly in firmware. Also, output to control pins from control signals.
Why?
This is important information for the control system to make the right decision and to make sure we don't have 'flickering' where we rapidly open and close the valve without letting it finish.
How?
Application
for the two valve state pins.ValveState
.Bonus: