Go to Post We are all insane aren't we? I just want to build a robot now. :P - Lowfategg [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
  #5   Spotlight this post!  
Unread 11-07-2016, 14:00
Waz Waz is offline
Strategy and programming mentor
AKA: Steve
FRC #2357 (System Meltdown)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2009
Location: Raymore, MO
Posts: 12
Waz is an unknown quantity at this point
Re: Command ataching issue

Quote:
Originally Posted by yedidya03 View Post
...
the command group was :
Code:
public class DropAndCollect extends CommandGroup{

	public DropAndCollect() {
		// TODO Auto-generated constructor stub
		addSequential(new DropAndCollect());
		addSequential(new Collect());
	}
	
}
...
The first addSequential is using the wrong class. As you have it, it will result in an infinite loop creating many nested DropAndCollect instances.

Hope this helps,
Steve
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:37.

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