Closed functionpointersuss closed 3 years ago
This is a problem with your user code. The hardwareMap
and telemetry
objects are not initialized by the SDK until it calls runOpMode()
. Thus, you must do test = new Test(telemetry, hardwareMap);
from inside runOpMode()
(or a delegate called from it) instead of doing it in the context of the OpMode instance initializer.
Thank you for that answer, the issue is resolved, and I'm closing it.
Hello, I am writing this issue due to the fact that the OpenRC could potentially be having problems with EasyOpenCV and other vision systems calling of appContext when passed as a parameter.
The code used to replicate this issue is shown below:
Class Auto:
}
class Test:
}
And this leads to the issue of the screenshot as shown below:![Screenshot_20210302-113140](https://user-images.githubusercontent.com/33011991/109681582-9c4d3000-7b4b-11eb-94e6-7ceeb5cfaa5f.png)
Additionally, this is being built with the android gradle plugin 4.1.2, and Gradle 6.5. this is due to the gradle daemon refusing to start when using the regular gradle versions copied from the git repository. Caches were invalidated, and also this was repeatable on another friend's computer.
Steps to Repeat: Change gradle-wrapper.properties distritbutionUrl to https\://services.gradle.org/distributions/gradle-6.5-bin.zip Add the lines android.useAndroidX=true android.enableJetifier=true to gradle.properties Change top level build.gradle classpath to 'com.android.tools.build:gradle:4.1.2' Follow EasyOpenCv install instructions: Add jcenter() to build.common.gradle and remove arm64-v8a Add implementation 'org.openftc:easyopencv:1.4.4' to build.gradle for TeamCode and Copy libOpenCvNative.so to FIRST Copy Code from above, and build with extremeTurboDebug Run the code.
If anyone could tell me how to proceed and whether this is reproducible. Note: this also is a problem with stock and turbo modes.