Skip to content

Commit

Permalink
remove deps, added alias comment
Browse files Browse the repository at this point in the history
  • Loading branch information
narmstro2020 committed Dec 26, 2024
1 parent a701a76 commit 9adadfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion wpilibc/src/main/native/include/frc/Solenoid.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ class Solenoid : public wpi::Sendable, public wpi::SendableHelper<Solenoid> {

/**
* Read the current value of the solenoid.
* This is an alias for the IsOn method.
*
* @return The current value of the solenoid.
*/
[[deprecated("Use isOn or isOff methods instead.")]]
bool Get() const;

/**
* Returns true if the solenoid is on.
* This is an alias for the Get method.
*
* @return true if the solenoid is on.
*
Expand Down
6 changes: 3 additions & 3 deletions wpilibj/src/main/java/edu/wpi/first/wpilibj/Solenoid.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,18 @@ public void set(boolean on) {

/**
* Read the current value of the solenoid.
*
* This is an alias for the isOn method.
*
* @return True if the solenoid output is on or false if the solenoid output is off.
* @deprecated Use isOn or isOff instead
*/
@Deprecated
public boolean get() {
int currentAll = m_module.getSolenoids();
return (currentAll & m_mask) != 0;
}

/**
* Returns true if the solenoid is on.
* This is an alias for the get method.
*
* @return true if the solenoid is on.
*/
Expand Down

0 comments on commit 9adadfc

Please sign in to comment.