We have Ras Pi sending messages over the CanBus, they are being received and printed out but the data is wrong. When we open the REV Hardware Client we can verify they are being sent correctly. The message that the RoboRio prints out does not match the message that the REV Hardware Client is able to receive.
private class UpdateThread implements Runnable {
@Override
public void run() {
CANData canData = new CANData();
while (true) {
if (pi.readPacketNew(0b0000010000, canData)) {
BitSet data = BitSet.valueOf(canData.data);
cache = "";
for (int x = 0; x < data.length(); x++) {
cache += (data.get(x)) ? "1" : "0";
}
System.out.println(cache);
}
Timer.delay(0.2);
}
}
}