[hal, wpilib] Add RobotController.getComments() (#4463)

This commit is contained in:
Ryan Blue
2022-12-26 14:39:51 -05:00
committed by GitHub
parent 26bdbf3d41
commit 2ac41f3edc
19 changed files with 310 additions and 1 deletions

View File

@@ -470,6 +470,20 @@ Java_edu_wpi_first_hal_HALUtil_getSerialNumber
return MakeJString(env, std::string_view(serialNum, len));
}
/*
* Class: edu_wpi_first_hal_HALUtil
* Method: getComments
* Signature: ()Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL
Java_edu_wpi_first_hal_HALUtil_getComments
(JNIEnv* env, jclass)
{
char comments[65];
size_t len = HAL_GetComments(comments, sizeof(comments));
return MakeJString(env, std::string_view(comments, len));
}
/*
* Class: edu_wpi_first_hal_HALUtil
* Method: getFPGATime