[hal] Add RobotController.getSerialNumber() (#4783)

This commit is contained in:
Ryan Blue
2022-12-09 00:58:55 -05:00
committed by GitHub
parent 69a66ec5ec
commit 5a52b51443
19 changed files with 292 additions and 0 deletions

View File

@@ -6,6 +6,8 @@
#include <stdint.h>
#include <string>
#include <units/voltage.h>
namespace frc {
@@ -42,6 +44,13 @@ class RobotController {
*/
static int64_t GetFPGARevision();
/**
* Returns the serial number of the roboRIO.
*
* @return The serial number of the roboRIO.
*/
static std::string GetSerialNumber();
/**
* Read the microsecond-resolution timer on the FPGA.
*