Go to Post I've ridden the real Segway many times and I think it is a truly remarkable machine and worth every cent (if you have enough cents to spend on it). - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-13-2013, 06:26 PM
gitlitz gitlitz is offline
Registered User
FRC #4590
 
Join Date: Jan 2013
Location: israel
Posts: 11
gitlitz is an unknown quantity at this point
cant run the robot

We are having a very annoying problem with running the robot. This problem happens spontaneously (in our perspective) and we couldn't figure out for several days what's the cause of it.

First we connected the router, and it says on the DS:
Code:
Warning <Code> 44002 occurred at Ping Results:  link-bad,  DS radio(.4)-bad,  robot radio(.1)-GOOD,  cRIO(.2)-GOOD,  FMS-bad Driver Station
we tried to switch it to 5GHz instead of 2.4 in the radio but we couldn't do that (the computer didn't find the 5GHz rauter).

When we connect it with Ethernet cable locally it said on the DS:
Code:
link-GOOD,  DS radio(.4)-bad,  robot radio(.1)-bad,  cRIO(.2)-GOOD,  FMS-bad Driver Station
When we ran the simple robot template it almost always run, but when we add complex stuff such as gyro, PID turning, and SmartDashboard values the following error appears in the DS Diagnostics messages:
Code:
ERROR: A timeout has been exceeded: RobotDrive... Output not updated often enough. ...in Check() in C:/WindRiver/workspace/WPILib/MotorSafetyHelper.cpp at line 117
We tried to eliminate some of the complex code and sometimes it worked sometimes not. When we rebooted the cRio / the whole robot it more likely didn’t appear again for the next severals debugs but then when we added new code for example, it happened again.

We think that it happens before the constructor of the RobotDemo when in the constructor the RobotDrive [we added there 4 talons, in the constructor we wrote: myRobot(talon1, talon2, talon3, talon4) – where each talon constructed by: talon1(1).] - this is because when we added SetSafteyEnabled to false in the constructor and in the operator control, the problem still appeared, and we couldn’t reach to the main code in the while loop.

We raised some stuff that could make this problem like not very good communication (but it also happened when we connected it locally with Ethernet), smartdashboard slowing the code, or maybe wrong
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:59 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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