/* * Class: edu_wpi_first_wpilibj_hal_PDPJNI * Method: resetPDPTotalEnergy * Signature: (BLjava/nio/IntBuffer;)D */ JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_PDPJNI_resetPDPTotalEnergy (JNIEnv *env, jclass, jobject status, jint module) { jint *status_ptr = (jint *)env->GetDirectBufferAddress(status); resetPDPTotalEnergy(status_ptr, module); }
/* * Class: edu_wpi_first_wpilibj_hal_PDPJNI * Method: resetPDPTotalEnergy * Signature: (I)V */ JNIEXPORT void JNICALL Java_edu_wpi_first_wpilibj_hal_PDPJNI_resetPDPTotalEnergy (JNIEnv *env, jclass, jint module) { int32_t status = 0; resetPDPTotalEnergy(module, &status); CheckStatus(env, status, false); }
/** * Reset the total energy drawn from the PDP * @see PowerDistributionPanel#GetTotalEnergy */ void PowerDistributionPanel::ResetTotalEnergy() { int32_t status = 0; resetPDPTotalEnergy(&status); if(status) { wpi_setWPIErrorWithContext(Timeout, ""); } }