|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
The issue we're seeing is that when a JoystickButton is added to the scheduler (ex. myButton->WhenPressed(new MyCommand())), the PCM does not activate.
The status lights for devices: PCM: Status: Green SlowPDP: Stat: Green StroberoboRio: Off RSL: Blinking - Robot On and Enabled Voltage Regulator: 5V: Bright GreenFirmware: PCM: 1.59roboRIO Image: FRC_roboRIO_2015_v23 Observations: The PCM does not activate after: A complete power cycle of the robot.The PCM does activate after we: Deploy code.Things we've tried that didn't work Multiple PCMs. 2.4GHz WiFi 5GHz WiFi Multiple Radios. 3 different WiFi channels - auto, 4, and 8. 3 different joysticks (traditional and an XBox 360 controller). Tried relocating radio on robot. Another laptop with fresh WPIlib and NI installs. Manually instantiating the compressor with the C++ Compressor class. Tried manually adding the JoystickButton to the Scheduler using Scheduler::AddButton() instead of JoystickButton::WhenPressed(). Another compressor. Things we've tried that work consistently Ethernet Tether. Iterative. Restart robot code. In fact, after a power cycle if we click Restart robot code before enabling, it works every time. Things we have not tried Another roboRIO. Another PDP. At the beginning of build season, we were able to wire and re-program a previous robot (with pneumatics) and did not have any issues. We then wired and programmed this years' robot. We did not notice any issues until we got the pneumatics hooked up on this robot. We consulted a local team that beta tested the roboRIO. Their programming mentor was also stumped. In our troubleshooting, we created a bare bones Command Based project: https://github.com/FRCTeam1987/PneumaticsTest We found that in OI.cpp, we can create a Joystick and a JoystickButton just fine. The issue arises when we add a button to the scheduler, which is line 8 in the linked project. Through NetConsole, we have seen that the code does run when we enable on a power cycle and the compressor closed loop is on, but the compressor does not turn on and the control system status indicators are as described above. The PCM does get a sticky fault saying "Comp Curr Too Low - Most likely the compressor is not connected." We have also cleared the sticky faults manually using the roboRIO web page with the self test button. What are we missing? Does anyone have any suggestions for what else to try? We are out of ideas to try and resolve this issue. Any help you all could provide would be much appreciated. Thanks. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|