So after a couple hours of fiddling around with the build path I finally got the code to compile and deploy onto the robot without a massive compiler error saying that it can't find package org.zeromq when its literally right there I imported it and made it a referenced library goddamn it
So now that that's done I tried sending some data to the RIO but it doesn't seem to receive it somehow. My exact procedure was:
Hold up the piece of metal the camera is mounted on (construction took off the intake so I had to hold this up myself)
Check to make sure that the tape was clearly detected by the video feed
Check that the program was outputting numbers
Check that SmartDashboard on the driver station did not have a key called "Data" with a String assigned to it
Now I guess we look at the potential problems:
Jetson might not be sending data to the RIO properly
RIO might not be receiving the code properly
The connection between the RIO and Jetson is faulty?
I'm missing some part of the network
ZeroMQ isn't really working on either or both sides but this is questionable bc the compiler should've caught any syntax and misuse errors
They're using the wrong port values? idk
Potential solutions?
[x] Change t.start() in Jetson.java to t.run();
[ ] Change jetson.start() in Robot.java to jetson.run() and add a start() to run() in Jetson.java
[ ] Remove the filter in start() in Jetson.java
[ ] Use ZMQ.REP or ZMQ.REQ instead of ZMQ.SUB?
[x] Or instead make sure the Jetson code is set to ZMQ.PUB
[ ] Set a proper high water mark whatever that means
That's sorta all I can come up with right now so I hope one of these fixes it
Ok so maybe its because the Jetson object in Robot is set to null? The sample code had null but idk if that would even do anything bc it's null. Let's try using Jetson jetson = new Jetson(); instead.
So after a couple hours of fiddling around with the build path I finally got the code to compile and deploy onto the robot without a massive compiler error saying that it can't find package org.zeromq when its literally right there I imported it and made it a referenced library goddamn it
So now that that's done I tried sending some data to the RIO but it doesn't seem to receive it somehow. My exact procedure was:
Now I guess we look at the potential problems:
Potential solutions?
That's sorta all I can come up with right now so I hope one of these fixes it