View Single Post
  #5   Spotlight this post!  
Unread 07-11-2016, 02:00 PM
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