View Single Post
  #42   Spotlight this post!  
Unread 16-09-2015, 09:59
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: RoboDS First Test

Found a problem in PacketManager:

Code:
if (connected && !timeSent) {
        driverStationPacket.addTime();
        timeSent = true;
}
This sends the connection/time packet as the first packet, the RIO never actually processes it. You need to send normal packets until the RIO responds for the first time, after the first response THEN you send the time packet and the RIO will accept it.

Here is my implementation:
https://github.com/raystubbs/RioComA...omManager.java lines 171-197
__________________
"If all else fails, read the instructions."

Last edited by raystubbs : 16-09-2015 at 10:12.