[hal] Remove FPGA functions that won't exist on SC (#8273)

This commit is contained in:
Gold856
2025-10-04 18:58:12 -04:00
committed by GitHub
parent 5c719ced5f
commit b1aaabc1c6
8 changed files with 0 additions and 149 deletions

View File

@@ -19,20 +19,6 @@ std::function<uint64_t()> RobotController::m_timeSource = [] {
return RobotController::GetFPGATime();
};
int RobotController::GetFPGAVersion() {
int32_t status = 0;
int version = HAL_GetFPGAVersion(&status);
FRC_CheckErrorStatus(status, "GetFPGAVersion");
return version;
}
int64_t RobotController::GetFPGARevision() {
int32_t status = 0;
int64_t revision = HAL_GetFPGARevision(&status);
FRC_CheckErrorStatus(status, "GetFPGARevision");
return revision;
}
std::string RobotController::GetSerialNumber() {
WPI_String serialNum;
HAL_GetSerialNumber(&serialNum);

View File

@@ -26,26 +26,6 @@ class RobotController {
public:
RobotController() = delete;
/**
* Return the FPGA Version number.
*
* For now, expect this to be competition year.
*
* @return FPGA Version number.
*/
static int GetFPGAVersion();
/**
* Return the FPGA Revision number.
*
* The format of the revision is 3 numbers. The 12 most significant bits are
* the Major Revision. The next 8 bits are the Minor Revision. The 12 least
* significant bits are the Build Number.
*
* @return FPGA Revision number.
*/
static int64_t GetFPGARevision();
/**
* Return the serial number of the roboRIO.
*