Dustin Spicuzza
Dustin Spicuzza
Ok, I've fixed the lint errors.
It appears that if `kinect.GetVideo()` returns false, the Mat won't be initialized, which would lead to this bug.
And by "this bug", I mean it's a bug in your program, not cscore. :)
I know it's not the same, but while you're waiting, the RobotPy cscore API is very similar to Java's: http://robotpy.readthedocs.io/projects/cscore/en/latest/api.html
@PeterJohnson I made the changes you suggested. It seems better, but the delay is annoying. However, I'm willing to live with it for now I think.
I wrote 15 tests for pynetworktables that cover these cases, I think they're correct now.
Does Java/C++ have remote debugging? Someone wrote some vscode tasks for Python that can do that too.
Ok. Someone posted their debugging setup at https://github.com/robotpy/mostrobotpy/issues/49, I think it makes sense to use that. We'd need to add something to the deploy to load the debug stuff, but...
New deploy workflow is posted on frc docs: * https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/python-setup.html * https://docs.wpilib.org/en/stable/docs/software/python/subcommands/deploy.html * https://docs.wpilib.org/en/stable/docs/software/python/pyproject_toml.html
What do you mean by project level? Do you mean in `.vscode/settings.json`?