Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=177)
-   -   Sudden loss of comms (http://www.chiefdelphi.com/forums/showthread.php?t=152554)

Tottanka 05-12-2016 18:37

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?

Lireal 05-12-2016 18:39

Re: Sudden loss of comms
 
It is probably an issue with your code. Can you post it?

Edit: What motor controllers are you using?

Tottanka 05-12-2016 19:01

Re: Sudden loss of comms
 
Quote:

Originally Posted by Lireal (Post 1619522)
It is probably an issue with your code. Can you post it?

Edit: What motor controllers are you using?

We are using Victor 888s.
Will post code soon.

Tottanka 05-12-2016 19:08

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?

dirtbikerxz 05-12-2016 20:10

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?

GeeTwo 05-12-2016 21:46

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.

Lireal 06-12-2016 00:59

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.

Tottanka 06-12-2016 14:51

Re: Sudden loss of comms
 
Quote:

Originally Posted by GeeTwo (Post 1619600)
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.

It doesnt happen on the bench, therefore we are now confident it is an acceleration issue.
What would the suggested solution here be? Would doing a trapezoidal acceleration curve help, instead of an instant jump to high values?

GeeTwo 06-12-2016 14:56

Re: Sudden loss of comms
 
Quote:

Originally Posted by Tottanka (Post 1619735)
It doesnt happen on the bench, therefore we are now confident it is an acceleration issue.
What would the suggested solution here be? Would doing a trapezoidal acceleration curve help, instead of an instant jump to high values?

The ramping function built into WPIlib (and I believe also LV) should at least mitigate either issue; worth a shot!

Edit: On the flip side, if you're still looking for the issue, do not use ramping, as it may mask the symptoms.

billbo911 06-12-2016 15:09

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.

Mark McLeod 06-12-2016 15:14

Re: Sudden loss of comms
 
The Driver Station log has a lot of messages and data clues to what is happening.

kenfox 18-12-2016 22:32

Re: Sudden loss of comms
 
Quote:

Originally Posted by Tottanka (Post 1619521)
So we are running Java code ... We have checked the wiring ...
Any ideas?

It helps a lot if you post a photo of your wiring and a bit of your Java main teleop.

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.

Tottanka 19-12-2016 05:53

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!


All times are GMT -5. The time now is 17:46.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi