|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Sudden loss of comms
So we are running Java code on a pretty basic Tank Drive robot, and a weird issue keeps happening.
Every time we go 'full throttle' on our joysticks the robot seems to move for 0.1 sec and than goes "code error" and loses communication. While driving with 1/2 throttle or so, everything is ok. We have checked the wiring, we have been knocking the robot pretty hard while stationary and it stays connected. Any ideas? |
|
#2
|
|||
|
|||
|
Re: Sudden loss of comms
It is probably an issue with your code. Can you post it?
Edit: What motor controllers are you using? Last edited by Lireal : 05-12-2016 at 18:44. |
|
#3
|
|||||
|
|||||
|
Re: Sudden loss of comms
Quote:
Will post code soon. |
|
#4
|
|||||
|
|||||
|
Re: Sudden loss of comms
Would it be possible that we are trying to send values over 1 or under -1 to the Victors, and that's what crashes the code?
|
|
#5
|
||||
|
||||
|
Re: Sudden loss of comms
Is it possible that your battery is not fully charged (or even if it is fully charged) the bot may be browning out when you go full throttle and dropping power to the radio?
|
|
#6
|
|||||
|
|||||
|
Re: Sudden loss of comms
Do you get the same behavior on the bench? If so, that would tend to point to a software or Comms issue. If not, more likely due to a brownout or acceleration issue.
|
|
#7
|
|||
|
|||
|
Re: Sudden loss of comms
Can you post the full error that you receive on the Driver Station? That will determine whether it is a code issue, or perhaps hardware.
|
|
#8
|
|||||
|
|||||
|
Re: Sudden loss of comms
Quote:
What would the suggested solution here be? Would doing a trapezoidal acceleration curve help, instead of an instant jump to high values? |
|
#9
|
|||||
|
|||||
|
Re: Sudden loss of comms
Quote:
Edit: On the flip side, if you're still looking for the issue, do not use ramping, as it may mask the symptoms. Last edited by GeeTwo : 06-12-2016 at 15:51. |
|
#10
|
||||
|
||||
|
Re: Sudden loss of comms
If it is not happening on the bench/blocks, that leads me to believe it is power related.
The first question I have is: Do Comms return if you just wait 30-45 seconds? If so, the power to the radio is suspect. Second question: Do Comms return after only 15 seconds? If so, power to the RoboRio is suspect. Make sure you are powering both according to the documentation. Check your drive train for binding. Binding can cause the motors to draw too much current and brownout the system. |
|
#11
|
|||||
|
|||||
|
Re: Sudden loss of comms
The Driver Station log has a lot of messages and data clues to what is happening.
|
|
#12
|
|||
|
|||
|
Re: Sudden loss of comms
Quote:
A simple mistake like powering the VRM off the user rails can cause loss of power to the radio if the roboRIO goes into self-preservation mode on low voltage. It's impossible for us to troubleshoot without seeing the wiring. |
|
#13
|
|||||
|
|||||
|
Re: Sudden loss of comms
So after some debugging, i think that it was a combination of faulty wiring to the VRM and some coding errors.
It's all solved now, and no brownouts to be seen. Thanks! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|