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

Some projects make the robot service automatically shut itself off #17

Closed cecilialau6776 closed 5 years ago

cecilialau6776 commented 5 years ago

I have examples of working projects on my github. I'm not sure what causes this to happen.

kauailabs commented 5 years ago

Can you please double check the projects on your github? When I download this, I'm seeing two folders (NSP-PI, NSP-PI2) but they're empty.

Also, if logs are available that'd be great; it's not clear exactly how the symptoms (robot service automatically shut itself off) translate into.

We have seen a problem when using Talons in Java that the robot app just freezes after initialization, the latest update to Phoenix-vmx.json resolves that, is it possible that this is what is being referred to?

cecilialau6776 commented 5 years ago

I'm unsure. I'll double-check the projects once I get a chance.

kauailabs commented 5 years ago

We're trying to reproduce this, and have found an issue that only occurs with robot applications that use the "TimedRobot" base class; this issue doesn't occur when using the "IterativeRobot" base class. Could you please try these with IterativeRobot and see if the issue disappears? This information will help us determine if we understand the root cause of the issue you are seeing.

kauailabs commented 5 years ago

@PixelGaMERCaT, please retest this w/VMX-pi 2019.4.1 Beta Release 13.

kauailabs commented 5 years ago

Similar to Issue#22, this scenario can be caused due to a conflict in signal handling with the java vm. We will have a new Hal library available soon with the fix for this.

kauailabs commented 5 years ago

This is fixed as of 2019.4.1 VMXpi Beta 16 Candidate (released 9/22/2019) and vmx-pi HAL version 1.1.207.