Skip to content

Added component for pneumatics control module - #28

Merged
rhauch merged 2 commits into
strongback:masterfrom
rhauch:compressor-support
Oct 27, 2015
Merged

rhauch merged 2 commits into
strongback:masterfrom
rhauch:compressor-support

Conversation

@rhauch

@rhauch rhauch commented Oct 26, 2015

Copy link
Copy Markdown
Member

Added the PneumaticsModule, which represents the Pneumatics Control Module (PCM) on the 2015+ hardware and which uses the WPILib Compressor class for the hardware-based implementation. This commit also adds a mock implementation that behaves like the actual hardware-based implementation, except that the low-pressure switch can be manually triggered and untriggered, and the compressor faults can be manually tripped (they do reset immediately but do alter the sticky faults correctly). When the compressor runs (whether in auto or manual mode), the current sensor shows a constant 10A reading (which should be similar to what the actual Viair 090C Air Compressor consumes. When the compressor is off (for any reason), the current is set to 0.

This change does support using 0 or more PCMs on a single robot, since one of the hardware-based factory methods takes the CAN identifier of the PCM.

Closes #26

Added the `PneumaticsModule`, which represents the Pneumatics Control Module (PCM) on the 2015+ hardware and which uses the WPILib `Compressor` class for the hardware-based implementation. This commit also adds a mock implementation that behaves like the actual hardware-based implementation, except that the low-pressure switch can be manually triggered and untriggered, and the compressor faults can be manually tripped (they do reset immediately but do alter the sticky faults correctly). When the compressor runs (whether in auto or manual mode), the current sensor shows a constant 10A reading (which should be similar to what the actual Viair 090C Air Compressor consumes. When the compressor is off (for any reason), the current is set to 0.

This change supports multiple PCMs on a single robot, since one of the hardware-based factory methods takes the CAN identifier of the PCM.
@rhauch

rhauch commented Oct 26, 2015

Copy link
Copy Markdown
Member Author

@granjef3: please review to see if this has everything you need for the PCM.

@xortive

xortive commented Oct 27, 2015

Copy link
Copy Markdown

Looks great @rhauch. As far as I know, this implements all of the PCM features.

@rhauch

rhauch commented Oct 27, 2015

Copy link
Copy Markdown
Member Author

@granjef3, thanks for the review.

rhauch added a commit that referenced this pull request Oct 27, 2015
Added component for pneumatics control module
@rhauch
rhauch merged commit bcdc33a into strongback:master Oct 27, 2015
@rhauch
rhauch deleted the compressor-support branch October 27, 2015 04:23
CarlinWilliamson pushed a commit to Team3132/strongback-java that referenced this pull request Jun 30, 2020
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.

2 participants