SCRIPT: FRC_ replacements

This commit is contained in:
PJ Reiniger
2025-11-07 20:00:43 -05:00
committed by Peter Johnson
parent 824f36f63a
commit 928ff20695
143 changed files with 477 additions and 477 deletions

View File

@@ -19,12 +19,12 @@ std::set<int> XRPMotor::s_registeredDevices = {};
void XRPMotor::CheckDeviceAllocation(int deviceNum) {
if (s_simDeviceMap.count(deviceNum) == 0) {
throw FRC_MakeError(wpi::err::ChannelIndexOutOfRange, "Channel {}",
throw WPILIB_MakeError(wpi::err::ChannelIndexOutOfRange, "Channel {}",
deviceNum);
}
if (s_registeredDevices.count(deviceNum) > 0) {
throw FRC_MakeError(wpi::err::ResourceAlreadyAllocated, "Channel {}",
throw WPILIB_MakeError(wpi::err::ResourceAlreadyAllocated, "Channel {}",
deviceNum);
}

View File

@@ -21,12 +21,12 @@ std::set<int> XRPServo::s_registeredDevices = {};
void XRPServo::CheckDeviceAllocation(int deviceNum) {
if (s_simDeviceMap.count(deviceNum) == 0) {
throw FRC_MakeError(wpi::err::ChannelIndexOutOfRange, "Channel {}",
throw WPILIB_MakeError(wpi::err::ChannelIndexOutOfRange, "Channel {}",
deviceNum);
}
if (s_registeredDevices.count(deviceNum) > 0) {
throw FRC_MakeError(wpi::err::ResourceAlreadyAllocated, "Channel {}",
throw WPILIB_MakeError(wpi::err::ResourceAlreadyAllocated, "Channel {}",
deviceNum);
}