Skip to content

Commit

Permalink
[wpilib] PneumaticHub: Document range of enableCompressorAnalog (NFC) (
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz authored and Starlight220 committed Mar 2, 2023
1 parent 986c809 commit edcf6c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 6 additions & 4 deletions wpilibc/src/main/native/include/frc/PneumaticHub.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ class PneumaticHub : public PneumaticsBase {
* and will turn off when the pressure reaches {@code maxPressure}.
*
* @param minPressure The minimum pressure. The compressor will turn on when
* the pressure drops below this value.
* the pressure drops below this value. Range 0 - 120 PSI.
* @param maxPressure The maximum pressure. The compressor will turn off when
* the pressure reaches this value.
* the pressure reaches this value. Range 0 - 120 PSI. Must be larger then
* minPressure.
*/
void EnableCompressorAnalog(
units::pounds_per_square_inch_t minPressure,
Expand All @@ -74,10 +75,11 @@ class PneumaticHub : public PneumaticsBase {
*
* @param minPressure The minimum pressure. The compressor will turn on when
* the pressure drops below this value and the pressure switch indicates that
* the system is not full.
* the system is not full. Range 0 - 120 PSI.
* @param maxPressure The maximum pressure. The compressor will turn off when
* the pressure reaches this value or the pressure switch is disconnected or
* indicates that the system is full.
* indicates that the system is full. Range 0 - 120 PSI. Must be larger then
* minPressure.
*/
void EnableCompressorHybrid(
units::pounds_per_square_inch_t minPressure,
Expand Down
9 changes: 5 additions & 4 deletions wpilibj/src/main/java/edu/wpi/first/wpilibj/PneumaticHub.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ public void enableCompressorDigital() {
* below {@code minPressure} and will turn off when the pressure reaches {@code maxPressure}.
*
* @param minPressure The minimum pressure in PSI. The compressor will turn on when the pressure
* drops below this value.
* drops below this value. Range 0-120 PSI.
* @param maxPressure The maximum pressure in PSI. The compressor will turn off when the pressure
* reaches this value.
* reaches this value. Range 0-120 PSI. Must be larger then minPressure.
*/
@Override
public void enableCompressorAnalog(double minPressure, double maxPressure) {
Expand Down Expand Up @@ -320,10 +320,11 @@ public void enableCompressorAnalog(double minPressure, double maxPressure) {
* </ul>
*
* @param minPressure The minimum pressure in PSI. The compressor will turn on when the pressure
* drops below this value and the pressure switch indicates that the system is not full.
* drops below this value and the pressure switch indicates that the system is not full. Range
* 0-120 PSI.
* @param maxPressure The maximum pressure in PSI. The compressor will turn off when the pressure
* reaches this value or the pressure switch is disconnected or indicates that the system is
* full.
* full. Range 0-120 PSI. Must be larger then minPressure.
*/
@Override
public void enableCompressorHybrid(double minPressure, double maxPressure) {
Expand Down

0 comments on commit edcf6c8

Please sign in to comment.