[hal] Add GetTeamNumber (#5596)

This commit is contained in:
Ryan Blue
2023-09-02 02:34:18 -04:00
committed by GitHub
parent a750bee54d
commit ac23f92451
19 changed files with 259 additions and 0 deletions

View File

@@ -61,6 +61,14 @@ public final class HALUtil extends JNIWrapper {
*/
public static native String getComments();
/**
* Returns the team number configured for the robot controller.
*
* @return team number, or 0 if not found.
* @see "HAL_GetTeamNumber"
*/
public static native int getTeamNumber();
/**
* Reads the microsecond-resolution timer on the FPGA.
*

View File

@@ -159,6 +159,15 @@ public class RoboRioDataJNI extends JNIWrapper {
public static native void setCPUTemp(double cpuTemp);
public static native int registerTeamNumberCallback(
NotifyCallback callback, boolean initialNotify);
public static native void cancelTeamNumberCallback(int uid);
public static native int getTeamNumber();
public static native void setTeamNumber(int teamNumber);
public static native String getSerialNumber();
public static native void setSerialNumber(String serialNumber);