mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[hal] Add GetTeamNumber (#5596)
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user