Go to Post FIRST has changed my life and I can never say thank you enough. - Jason Kixmiller [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 09-02-2013, 15:32
ddobervich ddobervich is offline
Registered User
FRC #3501
 
Join Date: Feb 2013
Location: United States
Posts: 1
ddobervich is an unknown quantity at this point
teleopContinuous() not getting called. Who calls it?

Greetings,

It's my understanding that teleopContinuous() runs as often as possible while teleopPeriodic() is called approximately once every 20ms.

Our robot extends IterativeRobot and overrides teleopPeriodic(), which seems to be working. Our teleopContinuous() doesn't seem to be getting called, and I also noticed it doesn't seem to be declared in either IterativeRobot or RobotBase.

What am I missing here?

Thanks very much for any help clearing up this mystery!

David Dobervich
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2013, 15:36
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 990
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: teleopContinuous() not getting called. Who calls it?

The continuous functions have been removed from the Iterative template. See the Changes for C++ and Java section of the 2013 Software Notes.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2013, 15:55
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: teleopContinuous() not getting called. Who calls it?

We found that teams were using the continuous functions with compute-bound code that would swamp the cRIO. It even caused problems with at least two of the Einstein teams from last year.

So we took it out. If a team really needs the continuous functions, then they can start a thread running in the teleopInit() or autonomousInit() methods that will do the continuous running loop.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2013, 14:32
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 258
Jefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond repute
Re: teleopContinuous() not getting called. Who calls it?

Brad,

Could you be more specific about how create such a thread or point me to some resources?

Thanks
Reply With Quote
  #5   Spotlight this post!  
Unread 10-02-2013, 14:51
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: teleopContinuous() not getting called. Who calls it?

Quote:
Originally Posted by Jefferson View Post
Brad,

Could you be more specific about how create such a thread or point me to some resources?

Thanks
http://docs.oracle.com/javase/tutori...runthread.html

go back a few pages to see how threading works
Reply With Quote
  #6   Spotlight this post!  
Unread 10-02-2013, 16:22
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,590
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: teleopContinuous() not getting called. Who calls it?

The PIDController class creates a thread with a configurable rate. That would be a good example to follow.
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 12:48.

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