mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
[hal, wpilib] Remove power rails that don't exist on systemcore (#7861)
This commit is contained in:
@@ -17,34 +17,6 @@ extern "C" {
|
||||
double HAL_GetVinVoltage(int32_t* status) {
|
||||
return SimRoboRioData->vInVoltage;
|
||||
}
|
||||
double HAL_GetVinCurrent(int32_t* status) {
|
||||
return SimRoboRioData->vInCurrent;
|
||||
}
|
||||
double HAL_GetUserVoltage6V(int32_t* status) {
|
||||
return SimRoboRioData->userVoltage6V;
|
||||
}
|
||||
double HAL_GetUserCurrent6V(int32_t* status) {
|
||||
return SimRoboRioData->userCurrent6V;
|
||||
}
|
||||
HAL_Bool HAL_GetUserActive6V(int32_t* status) {
|
||||
return SimRoboRioData->userActive6V;
|
||||
}
|
||||
int32_t HAL_GetUserCurrentFaults6V(int32_t* status) {
|
||||
return SimRoboRioData->userFaults6V;
|
||||
}
|
||||
void HAL_SetUserRailEnabled6V(HAL_Bool enabled, int32_t* status) {}
|
||||
double HAL_GetUserVoltage5V(int32_t* status) {
|
||||
return SimRoboRioData->userVoltage5V;
|
||||
}
|
||||
double HAL_GetUserCurrent5V(int32_t* status) {
|
||||
return SimRoboRioData->userCurrent5V;
|
||||
}
|
||||
HAL_Bool HAL_GetUserActive5V(int32_t* status) {
|
||||
return SimRoboRioData->userActive5V;
|
||||
}
|
||||
int32_t HAL_GetUserCurrentFaults5V(int32_t* status) {
|
||||
return SimRoboRioData->userFaults5V;
|
||||
}
|
||||
void HAL_SetUserRailEnabled5V(HAL_Bool enabled, int32_t* status) {}
|
||||
double HAL_GetUserVoltage3V3(int32_t* status) {
|
||||
return SimRoboRioData->userVoltage3V3;
|
||||
@@ -61,8 +33,6 @@ int32_t HAL_GetUserCurrentFaults3V3(int32_t* status) {
|
||||
void HAL_SetUserRailEnabled3V3(HAL_Bool enabled, int32_t* status) {}
|
||||
void HAL_ResetUserCurrentFaults(int32_t* status) {
|
||||
SimRoboRioData->userFaults3V3 = 0;
|
||||
SimRoboRioData->userFaults5V = 0;
|
||||
SimRoboRioData->userFaults6V = 0;
|
||||
}
|
||||
void HAL_SetBrownoutVoltage(double voltage, int32_t* status) {
|
||||
SimRoboRioData->brownoutVoltage = voltage;
|
||||
|
||||
Reference in New Issue
Block a user