kauailabs / allwpilib

Fork of Official Repository of WPILibJ and WPILibC, which contain in addition a HAL for the KauaiLabs VMX-pi.
Other
1 stars 3 forks source link

Half-comms after deploy #14

Closed cecilialau6776 closed 5 years ago

cecilialau6776 commented 5 years ago

After deploying code, driver station shows a half-green half-red bar for communications. This is fixed with a power cycle.

kauailabs commented 5 years ago

Thanks; we've seen this too; the related symptom is that sometimes the console logging isn't working when this occurs. If you experience trouble getting console logs, and until we get this resolved, you can directly view the logs on the raspberry by opening a console terminal and issuing these commands:

cd /var/local/kauailabs/log tail -f FRCUserProgram.log

kauailabs commented 5 years ago

The issue has been sorted out; the VMX-pi driver station code was not correctly reusing the server TCP/IP port; so if the robot app was shut down and restarted quickly, often it was not opening up a TCP port for the Driver Station to connect to. When this occurred, the half-green/half-red communication bar would be displayed, and logging messages from the robot were not displayed at the driver station or RioLOG. The logging area was reworked a bit too, to ensure that some log messages which were not being transmitted correctly to the driver station are now properly sent. We'll be releasing this fix very soon in an upcoming release.

kauailabs commented 5 years ago

Fixed in vmxpi-beta-12 release.