mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
[docs] Add warning about using user button to docs (NFC) (#6129)
This commit is contained in:
@@ -90,6 +90,10 @@ public final class HALUtil extends JNIWrapper {
|
||||
/**
|
||||
* Gets the state of the "USER" button on the roboRIO.
|
||||
*
|
||||
* <p>Warning: the User Button is used to stop user programs from automatically loading if it is
|
||||
* held for more then 5 seconds. Because of this, it's not recommended to be used by teams for any
|
||||
* other purpose.
|
||||
*
|
||||
* @return true if the button is currently pressed down
|
||||
* @see "HAL_GetFPGAButton"
|
||||
*/
|
||||
|
||||
@@ -110,6 +110,10 @@ HAL_RuntimeType HAL_GetRuntimeType(void);
|
||||
/**
|
||||
* Gets the state of the "USER" button on the roboRIO.
|
||||
*
|
||||
* @warning the User Button is used to stop user programs from automatically
|
||||
* loading if it is held for more then 5 seconds. Because of this, it's not
|
||||
* recommended to be used by teams for any other purpose.
|
||||
*
|
||||
* @param[out] status the error code, or 0 for success
|
||||
* @return true if the button is currently pressed down
|
||||
*/
|
||||
|
||||
@@ -83,6 +83,10 @@ class RobotController {
|
||||
/**
|
||||
* Get the state of the "USER" button on the roboRIO.
|
||||
*
|
||||
* @warning the User Button is used to stop user programs from automatically
|
||||
* loading if it is held for more then 5 seconds. Because of this, it's not
|
||||
* recommended to be used by teams for any other purpose.
|
||||
*
|
||||
* @return True if the button is currently pressed down
|
||||
*/
|
||||
static bool GetUserButton();
|
||||
|
||||
@@ -79,6 +79,10 @@ public final class RobotController {
|
||||
/**
|
||||
* Get the state of the "USER" button on the roboRIO.
|
||||
*
|
||||
* <p>Warning: the User Button is used to stop user programs from automatically loading if it is
|
||||
* held for more then 5 seconds. Because of this, it's not recommended to be used by teams for any
|
||||
* other purpose.
|
||||
*
|
||||
* @return true if the button is currently pressed down
|
||||
*/
|
||||
public static boolean getUserButton() {
|
||||
|
||||
Reference in New Issue
Block a user