Go to Post I heard a Lou Holtz quote as an answer to the question of "how do you motivate the unmotivated". He said " You eliminate those who are not motivated." - Scott Ritchie [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 11-01-2015, 14:47
vps vps is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2011
Location: United States
Posts: 30
vps is an unknown quantity at this point
Problem calling START_ROBOT_CLASS(_CLASSNAME_) Wrapper

I'm having trouble calling my wrapper - it hasn't happened before. Here's the code that has been reduced to purely illustrate the problem.


Code:
//Atlas.h
#include "WPILib.h"

class Atlas: public SampleRobot {
	Gyro* gyro;				//just some filler here
public:
	Atlas();
	~Atlas();
	void Autonomous();
	void OperatorControl();
	void Test();
};
Code:
//Atlas.cpp
#include "Atlas.h"

Atlas::Atlas() {
	gyro = new Gyro(1);
}
Atlas::~Atlas() {
	delete gyro;
}

void Atlas::Autonomous() { }
void Atlas::OperatorControl() { }
void Atlas::Test() { }
Code:
//initialize.cpp
#include "Atlas.h"
START_ROBOT_CLASS(Atlas);    //error here
The error is:
Quote:
Invalid arguments '
Candidates are:
? HALReport(?, ?, ?, const char *)
'

help?

Last edited by vps : 11-01-2015 at 14:54.
  #2   Spotlight this post!  
Unread 11-01-2015, 15:02
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: Problem calling START_ROBOT_CLASS(_CLASSNAME_) Wrapper

What happens if you try to deploy it? I believe that's an error with the internal eclipse compiler, and your code will actually compile.
  #3   Spotlight this post!  
Unread 11-01-2015, 15:03
vps vps is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2011
Location: United States
Posts: 30
vps is an unknown quantity at this point
Re: Problem calling START_ROBOT_CLASS(_CLASSNAME_) Wrapper

Note how the problem persists when everything is consolidated in one file:

Code:
//Atlas.cpp
#include "WPILib.h"

class Atlas: public SampleRobot {
	Gyro* gyro;					//just some filler here
public:
	Atlas() {
		gyro = new Gyro(1);
	}
	~Atlas() {
		delete gyro;
	}
	void Autonomous() { };
	void OperatorControl() { };
	void Test() { };
};
START_ROBOT_CLASS(Atlas);         //same error here
  #4   Spotlight this post!  
Unread 11-01-2015, 15:05
vps vps is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2011
Location: United States
Posts: 30
vps is an unknown quantity at this point
Re: Problem calling START_ROBOT_CLASS(_CLASSNAME_) Wrapper

I have not tried to deploy this since it cannot even properly build. Right now, I'm at home so I cannot try that. Any other suggestions?
  #5   Spotlight this post!  
Unread 11-01-2015, 15:20
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: Problem calling START_ROBOT_CLASS(_CLASSNAME_) Wrapper

What I'm saying is that the internal eclipse builder thinks that's an error, but it's not. It should deploy properly when you connect to the roboRIO.
  #6   Spotlight this post!  
Unread 11-01-2015, 19:38
vps vps is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2011
Location: United States
Posts: 30
vps is an unknown quantity at this point
Re: Problem calling START_ROBOT_CLASS(_CLASSNAME_) Wrapper

Quote:
Originally Posted by fsilberberg View Post
What I'm saying is that the internal eclipse builder thinks that's an error, but it's not. It should deploy properly when you connect to the roboRIO.
Thanks. I'll try it out on Monday. Has this happened to you before?
  #7   Spotlight this post!  
Unread 11-01-2015, 20:32
E Dawg E Dawg is offline
... is not done with FRC yet.
AKA: Ethan
FRC #0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Fort Collins, CO
Posts: 267
E Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud of
Re: Problem calling START_ROBOT_CLASS(_CLASSNAME_) Wrapper

Quote:
Originally Posted by vps View Post
Thanks. I'll try it out on Monday. Has this happened to you before?
We've experienced this issue multiple times. You should be fine if you compile. If it's bugging you just delete the error from the console window and it should go away.
  #8   Spotlight this post!  
Unread 11-01-2015, 20:40
mega900997's Avatar
mega900997 mega900997 is offline
Registered User
FRC #0263 (Sachem Aftershock)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Ronkonkoma
Posts: 58
mega900997 is on a distinguished road
Re: Problem calling START_ROBOT_CLASS(_CLASSNAME_) Wrapper

If you know you coded it right and its just the compiler saying you have an error, re-index it by right clicking on the project, scroll down to the index option and select rebuild. You'll only have the standard gcc and etc errors.
__________________
2015
Suffield Shakedown Winners & Most Points Scored
South Florida Regional 6th Seed, #5 Alliance Captains, Regional Winners w/ 2383 & 386, Innovation in Control Award
NY Tech Valley Regional 5th Seed, QF, Excellence in Engineering Award
SBPLI Long Island Regional 4th Seed, Finalists

Hopper Division 14th Seed, QF

Last edited by mega900997 : 11-01-2015 at 20:42.
  #9   Spotlight this post!  
Unread 11-01-2015, 22:50
catacon catacon is offline
Registered User
FRC #1444 (Lightning Lancers)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2006
Location: St. Louis
Posts: 154
catacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to beholdcatacon is a splendid one to behold
Re: Problem calling START_ROBOT_CLASS(_CLASSNAME_) Wrapper

Quote:
Originally Posted by mega900997 View Post
If you know you coded it right and its just the compiler saying you have an error, re-index it by right clicking on the project, scroll down to the index option and select rebuild. You'll only have the standard gcc and etc errors.
x2
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:39.

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