mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
[hal, wpilib] Remove power rails that don't exist on systemcore (#7861)
This commit is contained in:
@@ -22,14 +22,6 @@ struct CANStatus {
|
||||
int transmitErrorCount;
|
||||
};
|
||||
|
||||
/** State for the radio led. */
|
||||
enum RadioLEDState {
|
||||
kOff = 0, ///< Off.
|
||||
kGreen = 1, ///< Green.
|
||||
kRed = 2, ///< Red.
|
||||
kOrange = 3 ///< Orange.
|
||||
};
|
||||
|
||||
class RobotController {
|
||||
public:
|
||||
RobotController() = delete;
|
||||
@@ -105,17 +97,6 @@ class RobotController {
|
||||
*/
|
||||
static uint64_t GetFPGATime();
|
||||
|
||||
/**
|
||||
* 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();
|
||||
|
||||
/**
|
||||
* Read the battery voltage.
|
||||
*
|
||||
@@ -168,13 +149,6 @@ class RobotController {
|
||||
*/
|
||||
static double GetInputVoltage();
|
||||
|
||||
/**
|
||||
* Get the input current to the robot controller.
|
||||
*
|
||||
* @return The controller input current value in Amps
|
||||
*/
|
||||
static double GetInputCurrent();
|
||||
|
||||
/**
|
||||
* Get the voltage of the 3.3V rail.
|
||||
*
|
||||
@@ -213,82 +187,6 @@ class RobotController {
|
||||
*/
|
||||
static int GetFaultCount3V3();
|
||||
|
||||
/**
|
||||
* Get the voltage of the 5V rail.
|
||||
*
|
||||
* @return The controller 5V rail voltage value in Volts
|
||||
*/
|
||||
static double GetVoltage5V();
|
||||
|
||||
/**
|
||||
* Get the current output of the 5V rail.
|
||||
*
|
||||
* @return The controller 5V rail output current value in Amps
|
||||
*/
|
||||
static double GetCurrent5V();
|
||||
|
||||
/**
|
||||
* Enables or disables the 5V rail.
|
||||
*
|
||||
* @param enabled whether to enable the 5V rail.
|
||||
*/
|
||||
static void SetEnabled5V(bool enabled);
|
||||
|
||||
/**
|
||||
* Get the enabled state of the 5V rail. The rail may be disabled due to
|
||||
* calling SetEnabled5V(), a controller brownout, a short circuit on the rail,
|
||||
* or controller over-voltage.
|
||||
*
|
||||
* @return The controller 5V rail enabled value. True for enabled.
|
||||
*/
|
||||
static bool GetEnabled5V();
|
||||
|
||||
/**
|
||||
* Get the count of the total current faults on the 5V rail since the
|
||||
* code started.
|
||||
*
|
||||
* @return The number of faults
|
||||
*/
|
||||
static int GetFaultCount5V();
|
||||
|
||||
/**
|
||||
* Get the voltage of the 6V rail.
|
||||
*
|
||||
* @return The controller 6V rail voltage value in Volts
|
||||
*/
|
||||
static double GetVoltage6V();
|
||||
|
||||
/**
|
||||
* Get the current output of the 6V rail.
|
||||
*
|
||||
* @return The controller 6V rail output current value in Amps
|
||||
*/
|
||||
static double GetCurrent6V();
|
||||
|
||||
/**
|
||||
* Enables or disables the 6V rail.
|
||||
*
|
||||
* @param enabled whether to enable the 6V rail.
|
||||
*/
|
||||
static void SetEnabled6V(bool enabled);
|
||||
|
||||
/**
|
||||
* Get the enabled state of the 6V rail. The rail may be disabled due to
|
||||
* calling SetEnabled6V(), a controller brownout, a short circuit on the rail,
|
||||
* or controller over-voltage.
|
||||
*
|
||||
* @return The controller 6V rail enabled value. True for enabled.
|
||||
*/
|
||||
static bool GetEnabled6V();
|
||||
|
||||
/**
|
||||
* Get the count of the total current faults on the 6V rail since the
|
||||
* code started.
|
||||
*
|
||||
* @return The number of faults.
|
||||
*/
|
||||
static int GetFaultCount6V();
|
||||
|
||||
/** Reset the overcurrent fault counters for all user rails to 0. */
|
||||
static void ResetRailFaultCounts();
|
||||
|
||||
@@ -316,23 +214,6 @@ class RobotController {
|
||||
*/
|
||||
static units::celsius_t GetCPUTemp();
|
||||
|
||||
/**
|
||||
* Set the state of the "Radio" LED. On the RoboRIO, this writes to sysfs, so
|
||||
* this function should not be called multiple times per loop cycle to avoid
|
||||
* overruns.
|
||||
* @param state The state to set the LED to.
|
||||
*/
|
||||
static void SetRadioLEDState(RadioLEDState state);
|
||||
|
||||
/**
|
||||
* Get the state of the "Radio" LED. On the RoboRIO, this reads from sysfs, so
|
||||
* this function should not be called multiple times per loop cycle to avoid
|
||||
* overruns.
|
||||
*
|
||||
* @return The state of the LED.
|
||||
*/
|
||||
static RadioLEDState GetRadioLEDState();
|
||||
|
||||
/**
|
||||
* Get the current status of the CAN bus.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user