-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Field Image Not Continuously Displaying On Dashboard #155
Comments
Is that all of your code? I suspect something is sending telemetry to dash without overriding the image. |
well inside the while loop there is more code, as shown below; while (!isStopRequested()) {
dashboard.sendTelemetryPacket(packet);
drive.setWeightedDrivePower(
new Pose2d(
-gamepad1.left_stick_x,
-gamepad1.left_stick_y,
-gamepad1.right_stick_y
)
);
drive.update();
Pose2d poseEstimate = drive.getPoseEstimate();
telemetry.addData("x", poseEstimate.getX());
telemetry.addData("y", poseEstimate.getY());
telemetry.addData("heading", poseEstimate.getHeading());
telemetry.update();
} does this chunk of code matter? Pose2d poseEstimate = drive.getPoseEstimate();
telemetry.addData("x", poseEstimate.getX());
telemetry.addData("y", poseEstimate.getY());
telemetry.addData("heading", poseEstimate.getHeading());
telemetry.update(); |
Yes unfortunately that other code does matter. Internally that's sending another packet with the default field. |
Actually can you try putting
inside the loop? Each packet should only be sent once. |
Hello all, as described on the Official FTC Dashboard documentation here and #81 , it's possible to override default field drawing with custom field image by implementing
packet.fieldOverlay().drawImage()
I've implemented as described on the docs and tested it, it works, however it only shows once and further after that it won't show the custom field image but instead the default field image. I also notice that my custom field image is overlaying the robot circle on the field.
Is there any solution for this?
Screen.Recording.2024-09-16.at.16.31.25.mov
here is my following code :
The text was updated successfully, but these errors were encountered: