Go to Post In theory, we do not need teachers in this world because we have the written word, but in reality, teachers are one of the most valuable resources, if not the most valuable resource, we have. - Natchez [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 11-01-2013, 18:21
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,572
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: SimpleRobot versus IterativeRobot

I'm assuming you're coming from LabVIEW.

IterativeRobot is set up like telop and disabled were in LabVIEW. Each time a new packet is received from the driver station, it calls the appropriate method (telopPeriodic, etc). Each of the Periodic methods must return quickly, or else you will miss processing driver station packets. Initialization should go in the init methods, as those only get called once per transition to each mode.

SimpleRobot does not have any built in looping structure, you need to add it. It generates less code, which might be why it's called Simple, but since you need to add loops to it, it might not really be simpler.

RobotBuilder extends IterativeRobot with what they call the Command based model. The Scheduler calls you notice call Commands that you define that run based on triggers you define (such as pressing a button). This is described in much more detail in the RobotBuilder documentation. http://wpilib.screenstepslive.com/s/3120/m/7882
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 11:20.

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