Go to Post your sense of humor - don't leave home without it. - JaneYoung [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Spotlight this post!  
Unread 15-03-2012, 22:46
EricS-Team180's Avatar
EricS-Team180 EricS-Team180 is offline
SPAM, the lunchmeat of superheroes!
AKA: Eric Schreffler
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Stuart, Florida
Posts: 561
EricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond reputeEricS-Team180 has a reputation beyond repute
Re: at Peachtree Regional, cRIO overloading, Help

I second what RufflesRidge and Mark McLeod suggest.

I don't know if this helps, since we use the Iterative Robot template and C++ , but syntax is syntax - ha!

The Iterative Robot template provides DisabledPeriodic, AutonomousPeriodic and TeleopPeriodic, functions with counters like :

m_telePeriodicLoops ... look famaliar?

The Periodic functions loop at 5msec which we have found will swamp the cRio if we have a lot to control. So we use a modulo to schedule most of what we do at slower rates:

if((m_telePeriodicLoops % 2 ) == 0)
{
// do stuff every 10msec
}

would be a 10msec loop for instance.

We typically find that 10-20 msec loops are more than adequate for smooth control.

I miss not being at Palmetto this year. Good Luck!
Eric
__________________

Don't PANIC!
S. P. A. M.
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 16:04.

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