Go to Post Be the change you want to see. - staplemonx [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-01-2017, 18:04
Team3740 Storm Team3740 Storm is offline
Registered User
FRC #3740
 
Join Date: Jan 2017
Location: Sauk Rapids
Posts: 2
Team3740 Storm is an unknown quantity at this point
ERROR 1 Robot Drive... Output not updated often enough

I have been experiencing particular difficulty in the running of my java programs for our teams robot. Everything downloads fine and everything is green on the the driver station, but as soon as I enable Teleop period is spams me with this error: [ERROR 1 Robot Drive... Output not updated often enough. java.lang.Thread.run(Thread.java:745)]. This problem is not exclusive to my current program either, I've tried to run multiple other sample programs in its place to try and determine if it is the code but still come up with the same error. I have attempted the setSafetyEnabled(false) function but to no avail. I must add that is does move for a split second when the desired input is given but then instantly disconnects and disables the Teleop period.

Any help is appreciated if any of you may know the answer to this problem.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2017, 18:23
nickbrickmaster's Avatar
nickbrickmaster nickbrickmaster is online now
Not Allowed Near Power Tools
AKA: Nick Schatz
FRC #3184 (Blaze Robotics)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Eagan MN
Posts: 165
nickbrickmaster is an unknown quantity at this point
Re: ERROR 1 Robot Drive... Output not updated often enough

You should be setting the motor power every loop, very quickly (I don't remember the limit for the watchdog.)

Are you using the iterative structure? If so, is there something that's slowing your code down?
__________________
I have approximate knowledge of many things.

FRC 3184: 2014-, FTC 10648: 2015-
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2017, 18:23
jajabinx124's Avatar
jajabinx124 jajabinx124 is offline
Team 2052 Alumnus
AKA: Kshitij Wavre
no team
Team Role: College Student
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Madison, WI
Posts: 541
jajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond reputejajabinx124 has a reputation beyond repute
Re: ERROR 1 Robot Drive... Output not updated often enough

I think the error message means that the robot is expecting to receive joystick values frequently and is not. It's suppose to be a safety measure. That's weird that setSafetyEnabled(false) didn't work, because that's what I would have suggested..

Could you post your code? Are you using the Iterative program structure? (which constantly loops the code, thus updating the values)
__________________
FRC Volunteer CSA (MRI off-season event, 2017 Lake Superior Regional, 2017 10,000 Lakes Regional) 2016 - Present
FRC 2052 KnightKrawler (Team Captain, Strategist, Scouting, Programming) 2013 - 2016

1 Division Win & Einstein Appearance
3 Division Quarter-Finalists
1 Regional Chairman's Award
5 Regional Wins, 3 Regional Finalists
3 MN State Championship Wins, 1 MN State Championship Finalist
Thanks to all our alliance partners who krawled with us: 41, 70, 225, 525, 1595, 2054, 2062, 2122, 2175, 2227, 2472, 2526, 2883, 2990, 3018, 3244, 3276, 3310, 3313, 3360, 3538, 3692, 4011, 4198, 4536, 4607, 4778, 5172, 5690
Reply With Quote
  #4   Spotlight this post!  
Unread 14-01-2017, 21:46
Team3740 Storm Team3740 Storm is offline
Registered User
FRC #3740
 
Join Date: Jan 2017
Location: Sauk Rapids
Posts: 2
Team3740 Storm is an unknown quantity at this point
Re: ERROR 1 Robot Drive... Output not updated often enough

I am using command but cannot post my code until Tuesday for the laptop it is on is at our school. I think the weirdest thing is that this happens on all the sample programs too. I'll post the code as soon as possible, thank you for the support.
Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2017, 10:43
wharrier2450 wharrier2450 is offline
Registered User
FRC #2450
 
Join Date: Jan 2017
Location: St Paul MN
Posts: 4
wharrier2450 is an unknown quantity at this point
Re: ERROR 1 Robot Drive... Output not updated often enough

We had this issue yesterday. Was caused by our RobotDrive not having a default command.
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2017, 19:23
garyk garyk is offline
Programming Mentor: 668, 972, 2643
FRC #0668 (Apes of Wrath)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Santa Clara (Silicon Valley) Calif.
Posts: 94
garyk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the rough
Re: ERROR 1 Robot Drive... Output not updated often enough

Not sure what you mean by a default command for the RobotDrive class.

It'd be interesting to call
Code:
yourrobotdrive.isSafetyEnabled();
and confirm that the returned boolean is false.
__________________

Silicon Valley Regional 2005, 2006 972
Silicon Valley Regional 2007 668 Xerox Creativity Award
Championship Event 2007 668
Portland Regional 2008 668
Silicon Valley Regional 2008 668, 972
Beta Test Team 2008 668 (with 100 & 254)
Silicon Valley Regional 2009 668 Regional Chairman's Award; 2643
Sacramento Regional 2009 668 Winning Alliance (thanks, 1717 & 2473!), 2010 Winning Alliance 3256
CalGames 2006, 2007, 2008, 2009, 2010, 2011 Field Tech
NorCal FTC Regional 2008, 2009 Inspector
Championship Event 2009
San Diego, Silicon Valley Regionals; Champ. Event 2010 668, 2643, 3256
Silicon Valley, Madera Regional 2012 2643
WRRF Programming Instructor 2006-2016
Regional Woodie Flowers Award 2014 2643 Utah Regional


Last edited by garyk : 19-01-2017 at 19:28.
Reply With Quote
  #7   Spotlight this post!  
Unread 20-01-2017, 09:28
wharrier2450 wharrier2450 is offline
Registered User
FRC #2450
 
Join Date: Jan 2017
Location: St Paul MN
Posts: 4
wharrier2450 is an unknown quantity at this point
Re: ERROR 1 Robot Drive... Output not updated often enough

Actually, the default command is not configured on the RobotDrive but on the subsystem that contains it. Our drivetrain Subsystem that owned the robot drive did not have a default command configured.

I spent hours commenting out everything in our Robot code trying to figure out what was causing it. When I configured the default command for our drivetrain subsystem, this error went away. Can't explain why because the error seems completely unrelated, but that's what made it go away. Toggled it back and forth to verify and it was the culprit.
Reply With Quote
  #8   Spotlight this post!  
Unread 20-01-2017, 11:32
Xanawatt Xanawatt is offline
Registered User
FRC #1024
 
Join Date: May 2015
Location: Indianapolis, Indiana
Posts: 24
Xanawatt is an unknown quantity at this point
Re: ERROR 1 Robot Drive... Output not updated often enough

It might have something to do with setExpiration(), if you used robotbuilder, this might have been inserted automatically and you might try removing it. If it isn't there, then add it and try messing around with the numbers.
Reply With Quote
  #9   Spotlight this post!  
Unread 20-01-2017, 12:58
gregzetko gregzetko is offline
Registered User
FRC #2609 (BeaverworX)
Team Role: Programmer
 
Join Date: Mar 2016
Rookie Year: 2016
Location: Canada, Ontario
Posts: 2
gregzetko is an unknown quantity at this point
Re: ERROR 1 Robot Drive... Output not updated often enough

We had this issue last year. We ended up not using any of WPIlib's RobotDrive functions (Tankdrive,Arcadedrive) but rather writing one ourselves and running it in teleop periodic. Here is our code https://github.com/frc2609/FIRSTPRES...bot/Robot.java if you need more comments, let me know. It starts from line 134
Reply With Quote
  #10   Spotlight this post!  
Unread 21-01-2017, 08:00
arichman1257's Avatar
arichman1257 arichman1257 is offline
VP, Control Systems Captain, Coach
AKA: Alan Richman
FRC #1257 (Parallel Universe)
Team Role: Electrical
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Fanwood, New Jersey, USA, Earth...
Posts: 75
arichman1257 will become famous soon enougharichman1257 will become famous soon enough
Re: ERROR 1 Robot Drive... Output not updated often enough

Here's an old thread. It's from 2010 so some things may be a bit out of date but the "watch dog not fed" error can not have changed all that much
__________________
1257 Parallel Universe: 2014 - 2017 Seasons
2017: Vice President, Control Systems Captain, Drive Coach
2016: Control Systems Captain, Operator. MAR District Championship Winner, MAR Mt. Olive Event Winner, MAR Bridgewater-Raritan Event Finalist
2015: Control Systems, Operator. MAR North Brunswick Event Finalist
2014: Programming/Electronics Apprentice. MAR Clifton Event Winner
Reply With Quote
Reply


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 15:28.

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