Go to Post Just be nice. It works better in the long run. - Libby K [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2014, 18:15
JavaNoNothing14 JavaNoNothing14 is offline
Registered User
FRC #2681
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Brooklyn, NY
Posts: 12
JavaNoNothing14 is an unknown quantity at this point
Calling on Functions

My program is set so that i have my shoot, grab, compressor all as different global signatures and calling it from within the teleop. Each function seems to be working fine individually. However when I put them all together No part of my program wants to work

Code:
public void teleopPeriodic(){
     Shoot();
     Timer.delay(0.1)
}
// the shooter would work fine
Code:
public void teleopPeriodic(){
     Shoot();
     Grab();
     Cyl();
     Timer.delay(0.1)
}
//no part of each function has the same properties as the other function. Program won't do anything. Seems like the functions don't want to work.
  #2   Spotlight this post!  
Unread 02-02-2014, 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,600
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: Calling on Functions

Is there a stack trace in the output in netbeans? It may scroll off the screen quickly, so be sure to scroll back and look for it.

One common problem that would only manifest itself when everything is combined is trying to allocate the same hardware twice (for example using PWM 1 in both Shoot and Grab. If you want more specific suggestions, you'll have to post your code.

Not related to this problem, but you should not put any explicit delay in any of the periodic methods.
  #3   Spotlight this post!  
Unread 02-02-2014, 18:27
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 487
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: Calling on Functions

Do any of the functions have waits in them or touch the same variables?
  #4   Spotlight this post!  
Unread 02-02-2014, 19:05
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Calling on Functions

Is teleopPeriodic() actually being called?
Closed Thread


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 02:35.

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