Go to Post Whether or not your team has the technical mentors, as long as your kids are still inspired by the adult technical mentors of other teams, and get the picture that we're trying to portray in this program, the best that you can do is the best you can do. Do it, and be proud of your results. - Beth Sweet [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 21-01-2015, 19:23
rawrpenguinlion rawrpenguinlion is offline
Registered User
FRC #0008
 
Join Date: Jan 2015
Location: Team 8
Posts: 9
rawrpenguinlion is an unknown quantity at this point
Methods are not being called

We have what should be working code with no syntax errors, but when we deploy to the robot nothing happens. We put print statements in many methods to check if methods were being called, including RobotInit(), TeleopInit(), and TeleopPeriodic(), but nothing prints. Any advice? Thanks.
  #2   Spotlight this post!  
Unread 21-01-2015, 19:32
Darkseer54's Avatar
Darkseer54 Darkseer54 is offline
Former Controls Captain and Driver
AKA: Zach Kaplan
FRC #1086 (Blue Cheese)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2013
Location: Richmond, VA
Posts: 138
Darkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of light
Re: Methods are not being called

Do you have WPIlib.h included? Also, are you using java or C++?

Thanks,
Zach
__________________
2014: IRI on a losing record.
  #3   Spotlight this post!  
Unread 21-01-2015, 19:49
rawrpenguinlion rawrpenguinlion is offline
Registered User
FRC #0008
 
Join Date: Jan 2015
Location: Team 8
Posts: 9
rawrpenguinlion is an unknown quantity at this point
Re: Methods are not being called

Yes, we included WPILib.h
We also use C++, not Java.
Thanks.
  #4   Spotlight this post!  
Unread 21-01-2015, 20:07
Darkseer54's Avatar
Darkseer54 Darkseer54 is offline
Former Controls Captain and Driver
AKA: Zach Kaplan
FRC #1086 (Blue Cheese)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2013
Location: Richmond, VA
Posts: 138
Darkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of light
Re: Methods are not being called

Are you sure you installed the frc toolchain correctly? When you look in your includes folder on the left toolbar (forgot what it's called) is WPIlibrary there? Also are you having problems with the functions themselves, or just printing?

Thanks,
Zach
__________________
2014: IRI on a losing record.
  #5   Spotlight this post!  
Unread 21-01-2015, 22:13
JefferMC JefferMC is offline
Registered User
AKA: Jeff Corbett
FRC #1319 (Flash)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2005
Location: United States
Posts: 44
JefferMC will become famous soon enough
Re: Methods are not being called

Can you confirm any aspect of your program being loaded? i.e. is the Program communication indicator on on the dashboard? Where are you looking for the text messages? Have you tried the tab in Eclipse?
  #6   Spotlight this post!  
Unread 21-01-2015, 22:22
Darkseer54's Avatar
Darkseer54 Darkseer54 is offline
Former Controls Captain and Driver
AKA: Zach Kaplan
FRC #1086 (Blue Cheese)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2013
Location: Richmond, VA
Posts: 138
Darkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of light
Re: Methods are not being called

Sorry, I had misinterpreted your issue . Are you sure that you are properly deploying? Is can you enable teleop? Have you tried to drive a motor?
__________________
2014: IRI on a losing record.
  #7   Spotlight this post!  
Unread 22-01-2015, 19:10
rawrpenguinlion rawrpenguinlion is offline
Registered User
FRC #0008
 
Join Date: Jan 2015
Location: Team 8
Posts: 9
rawrpenguinlion is an unknown quantity at this point
Re: Methods are not being called

@JefferMC We have robot communications and robot code working as shown on the Driver Station with green lights.

@DarkSeer54
We are properly deploying, but are not sure about teleop being enabled, as we have print statements in teleopInit() and teleopPeriodic() that are not printing.
We look for our printed statements in the NetConsole, which has been working fine.
  #8   Spotlight this post!  
Unread 22-01-2015, 23:23
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 443
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Methods are not being called

Code in the teleop*() methods won't get executed until you've enabled your robot in telop mode through the driver station.

The robotInit() and disabled*() methods get executed prior to enabling the robot.
__________________
http://team2168.org

Last edited by otherguy : 22-01-2015 at 23:29.
  #9   Spotlight this post!  
Unread 23-01-2015, 01:32
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: Methods are not being called

Quote:
Originally Posted by rawrpenguinlion View Post
We are properly deploying, but are not sure about teleop being enabled, as we have print statements in teleopInit() and teleopPeriodic() that are not printing.
Make sure you are using the correct case. teleopInit/Periodic won't ever get called. TeleopInit/Periodic is correct.
Quote:
Originally Posted by rawrpenguinlion View Post
We look for our printed statements in the NetConsole, which has been working fine.
What statements do come out in NetConsole?
  #10   Spotlight this post!  
Unread 24-01-2015, 12:02
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 307
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
If you are actually looking at the Net console as in past years you will not see anything. You need to look at the Rio log in eclipse.

Is the print statement the first line in the RobotInit function?
__________________
  #11   Spotlight this post!  
Unread 24-01-2015, 13:06
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: Methods are not being called

Quote:
Originally Posted by MamaSpoldi View Post
If you are actually looking at the Net console as in past years you will not see anything. You need to look at the Rio log in eclipse.
Netconsole still works. rioLog uses the same protocol.
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:51.

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