Go to Post If everyone spent half as much time reading and understanding the rules as they do complaining, arguing, and disagreeing about rules, we might not even be having this discussion. - AmyPrib [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
  #1   Spotlight this post!  
Unread 07-02-2016, 16:44
grimmsterj grimmsterj is offline
Registered User
FRC #4203 (Robokronos)
Team Role: Leadership
 
Join Date: Nov 2013
Rookie Year: 2013
Location: New York
Posts: 7
grimmsterj is an unknown quantity at this point
Error while deploying Command-Based Code

Hi everybody,

So this year we are extremely inexperienced in the programming department, as our lead programmer has graduated and our only other programmer really wasn't at the level he needed to be. I have done a lot of learning over the past few weeks but currently I've ran into an error with my code that I can't seem to figure out.

I can provide code if anyone needs it, but basically I have a pneumatic subsystem along with a raise command and a lower(retract) command. (We did have one command that did both but switched to one for each in an attempt to get rid of some of the errors we faced). Very simple code all intended to open and close a piston.

When I deploy code and enable the bot, the compressor starts up and it acts like it's working and then I get a no code error and everything shuts down.

The main error I can't seem to get past is:

"nhandled exception: edu.wpi.first.wpilibj.command.IllegalUseOfCommandE xception: Can not add new requirement to command after being started or being added to a command group"

While we have other commands, most of them are doing nothing so I am almost certain it is something with the raise/lower commands. We don't have a command group so I'm assuming it has something to do with us trying to add a new requirement after a command is started. However, any "requires()" that I have in the commands is under init.

No idea why this error is coming up or how to solve/troubleshoot it. Any help would be greatly appreciated.
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 08:47.

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