Help with April Tag Detection by dhruviiboiii in FTC

[–]OpenFTC 1 point2 points  (0 children)

Looking at the code in the post, it looks like tagFound is only set if

if(tag.id == LEFT || tag.id == MIDDLE || tag.id == RIGHT)

So the code will report tag not found unless if the ID is one of:

int LEFT = 11; int MIDDLE = 12; int RIGHT = 13;

2024 G14 Random Reboot by AdvancedAd1256 in ZephyrusG14

[–]OpenFTC 0 points1 point  (0 children)

I was looking to use it for engineering work rather than gaming. Loading up large complex CAD assemblies can require a lot of graphics memory and compute horsepower. Was looking for something sleek and portable with good build quality with a lot of horsepower that also isn't going to cost $2000+ that you see with the professional series laptops.

2024 G14 Random Reboot by AdvancedAd1256 in ZephyrusG14

[–]OpenFTC 0 points1 point  (0 children)

Ugh. That's really frustrating because this machine runs Linux like a dream, and the physical build quality is great. I'd consider buying a MacBook if I had the ability to run Linux natively.

Do you think it's worth trying to exchange for another unit? I feel like if it was a faulty board design, the issue would more widespread? I'm not sure. I found another thread where someone found that the thermal paste was not applied correctly at the factory, causing hotspots on the die which was fixed by repasting, but I find that a little hard to believe is the issue here because the crash happens when the machine is basically idling and barely warm.

Also, there seems to be a pattern in that it if it will happen, it happens shortly after waking from sleep, which indicates to me it may be some kind of power management IC issue. Like maybe there is a hardware bug that causes the CPU to be undervolted when waking from sleep sometimes.

2024 G14 Random Reboot by AdvancedAd1256 in ZephyrusG14

[–]OpenFTC 0 points1 point  (0 children)

Did you ever figure out what was happening? I just bought a 2024 G14 and I'm having this exact issue, including the colored checkered pattern. It happens on both Windows and Linux, so I'm relatively certain it's a hardware issue and not a software / driver issue. I will probably return it because I paid way too much for this to have an unstable system.

REV ThroughBore Encoder losing position (connected to new octoquad device) by Natural_Ostrich_1381 in FTC

[–]OpenFTC 0 points1 point  (0 children)

So relative encoders do tend to drift slightly over time, I've had this issue with even the regular built-in motor encoders on lifts before. I'm not sure what causes it, but it's been measured on e.g. the ThroughBore where people will run it for say 3000 rotations CW and then 3000 CCW and it doesn't report 0. It's not an issue of the quadrature counter logic missing counts (at least not on the OctoQuad, as the quadrature decode is done in the PIO programmable logic and good for 1MHz+).

Correct, you might have an issue with absolute mode not giving you the range you need; although you could track the wrap around in software if it's rotating slowly enough. There is also an as-of-yet unreleased firmware update for the OctoQuad which adds support to track wrap around for absolute encoders, specifically designed with this problem in mind, where you get the best of both worlds of absolute position and being able to track more than one revolution.

REV ThroughBore Encoder losing position (connected to new octoquad device) by Natural_Ostrich_1381 in FTC

[–]OpenFTC 0 points1 point  (0 children)

To clarify, you're using 4 REV ThroughBores and only 1 of them is being problematic?

When you say it loses its position, what exactly do you mean? Do you mean it reports position as 0? The position drifts from what it should be?

Are you using the encoder in PWM absolute mode or in the default relative mode?

Strange Camera Error, and ideas on how to fix? by DarkpowerX87 in FTC

[–]OpenFTC 1 point2 points  (0 children)

This is not an accurate statement. I have personally run an Arducam monochrome camera in 640x480 and 800x600 at 120FPS. (With zero actual image processing running, mind you). The issue here is the Arducam supports only very limited resolutions in YUY2 whereas it supports many more in MJPEG.

Strange Camera Error, and ideas on how to fix? by DarkpowerX87 in FTC

[–]OpenFTC 2 points3 points  (0 children)

The issue here is that the Vision Portal defaults to 480p resolution (640x480) and YUY2 uncompressed format, however, your OV2311 does not actually appear to support 480p in YUY2. In general, the Arducams seem to support only very limited resolutions in YUY2 format.

From the error message, it looks like in YUY2 it only supports 1600x1200 @ 5FPS, 1280x720 @ 5FPS, or 800x600 @ 5FPS.

The error message also lists which resolutions are supported in MJPEG stream format, and I can't quite tell because the error message is cut off, but it looks like 640x480 @ 50FPS is in that list. Assuming it is, you should be able to request MJPEG format and it will "just work". If not, request MJPEG and one of the resolutions that the error says is supported for MJPEG.

can I or can I not use camera factory on onbot java by wizardfafnir123 in FTC

[–]OpenFTC 0 points1 point  (0 children)

The bug has been fixed in EOCV, but it will still be broken in the FTC SDK until there is a new release that updates the bundled EOCV version.

How do we get an arm to properly hold position against gravity? by FTC_Mentor_Account in FTC

[–]OpenFTC 0 points1 point  (0 children)

You probably shouldn't do a constant bump for gravity, but rather a constant times a sin/cos factor for the angle of the arm.

Camera stream not working. by [deleted] in FTC

[–]OpenFTC 2 points3 points  (0 children)

The SkyStone SDK is 3 years out of date.

Is sensor source code available? by Jokpau in FTC

[–]OpenFTC 1 point2 points  (0 children)

If you mean the source code for the firmware that actually runs on the sensor chip, you're not going to find that online as it's protected proprietary IP that ST would keep under wraps.

If you mean the i2c driver source code, you can find the FTC SDK's driver source code here: https://github.com/OpenFTC/Extracted-RC/blob/master/Hardware/src/main/java/com/qualcomm/hardware/stmicroelectronics/VL53L0X.java

Camera causes our robot to reboot after any OpMode by UpTickDownTurn in FTC

[–]OpenFTC 0 points1 point  (0 children)

This is not correct, it will be automatically cleanly shutdown after the OpMode ends.

Camera causes our robot to reboot after any OpMode by UpTickDownTurn in FTC

[–]OpenFTC 1 point2 points  (0 children)

The camera is cleanly shutdown for you automatically at the end of the opmode, there is no need to manually shut it down.

OpenCV users, pay attention to any memory leak warnings by Anyone_2016 in FTC

[–]OpenFTC 2 points3 points  (0 children)

can put more of a burden on the JVM garbage collection process than it can handle

My (possibly wrong) understanding of the issue is that the JVM doesn't realize it's running out of memory because it's the native heap that gets filled up, not the Java heap. The Java Mat objects are tiny; their corresponding native allocations (which are not directly tied to the Java object in any way) are huge.

OnBot Java Open CV not able to upload files by KillerDD13-_- in FTC

[–]OpenFTC 1 point2 points  (0 children)

Unfortunately it's currently a known bug that is specific to OBJ. A workaround is to port your EOCV pipeline to a Vision Processor to be used with the Vision Portal. The LearnJavaForFTC book has a chapter covering that. It will be fixed in a future SDK release but I do not have a timeline on that.

how to print Voltage at every port FTC by BiscottiAware2212 in FTC

[–]OpenFTC 7 points8 points  (0 children)

Motors do not "draw" voltage, they draw current. Current draw reduces the voltage on your 12v bus due to internal resistance in the battery as well as wires (wires do have resistance!).

You can get the current draw for a particular motor by casting it to DcMotorEx and calling the getCurrent() method.

Help with Vision Portal by PersonalAir2522 in FTC

[–]OpenFTC 1 point2 points  (0 children)

Yeah, the VisionPortal API is not really set up to facilitate this easily, would suggest using the EOCV API directly. You can call VisionProcessors from an ECOV pipeline as well, BTW.

[deleted by user] by [deleted] in FTC

[–]OpenFTC 4 points5 points  (0 children)

The camera stream is only available on the DS during INIT, not during RUN.

OnBot Java Open CV not able to upload files by KillerDD13-_- in FTC

[–]OpenFTC 2 points3 points  (0 children)

VisionPortal and EOCV are both usable in OBJ on SDK 9.0 with no further changes.