Go to Post Now I watch students walk through the halls together as Robotics members. - MysterE [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 30-01-2015, 16:54
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: C++ Errors

Why is what where?
__________________
1771- Programmer, Captain, Drive Team (2009-2012)
4509- Mentor (2013-2015)
1771- Mentor (2015)
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2015, 16:55
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
Re: C++ Errors

Quote:
Originally Posted by nighterfighter View Post
Why is what where?
There were a lot of errors
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2015, 16:56
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: C++ Errors

Quote:
Originally Posted by FRC2501 View Post
There were a lot of errors
What did they say?
__________________
1771- Programmer, Captain, Drive Team (2009-2012)
4509- Mentor (2013-2015)
1771- Mentor (2015)
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2015, 17:04
pntbll1313's Avatar
pntbll1313 pntbll1313 is offline
2052 Coach, Build/Electrical Mentor
AKA: Pete
FRC #2052 (KnightKrawler)
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2007
Location: New Brighton, MN
Posts: 253
pntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud ofpntbll1313 has much to be proud of
Re: C++ Errors

Sorry if this is dumb (I'm not a C++ guy), but do you need a semicolon after your robot definition?

Robot() :
talon(1),jaguar(2)
{
}

I'm unclear if this is your entire code, a section that you think is giving the error, or you've removed some of the code. Posting the errors you get will probably help smarter programmers than I
__________________
2016 (mentor/drive-coach)
Quarter-Finalist-Einstein, Winner-Carson Division Champs, Winner-10K Lakes, Chairman's Award-10K Lakes, Finalists-Lake Superior,
Winner-MSHSL Robotics Competition

2015 (mentor/drive-coach)
Finalists-10K Lakes, Finalists-Lake Superior, Finalist-MSHL Robotics Competition, Quarter-Finalist-Galileo Division Champs
2014 (mentor/drive-coach)
Winner-10K Lakes, Winner-Lake Superior Winner-MSHSL Robotics Competition, Quarter-Finalist-Galileo Division Champs
2013 (mentor/drive-coach)
Winner-10K Lakes, Winner-Lake Superior, Winner-MSHSL Robotics Competition, Quarter-Finalist-Newton Division Champs
2012 (mentor/drive-coach)
Finalists-Lake Superior, Semi-Finalist-MSHSL State Championship, Semi-Finalists at 10,000 Lakes
2008-2011 (college mentor)
2007 (driver)
Quarter Finalist-Milwaukee

Last edited by pntbll1313 : 30-01-2015 at 17:15.
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2015, 17:16
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: C++ Errors

please post the compiler error output
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #6   Spotlight this post!  
Unread 30-01-2015, 17:25
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: C++ Errors

Quote:
Originally Posted by pntbll1313 View Post
Sorry if this is dumb (I'm not a C++ guy), but do you need a semicolon after your robot definition?

Robot() :
talon(1),jaguar(2)
{
}

I'm unclear if this is your entire code, a section that you think is giving the error, or you've removed some of the code. Posting the errors you get will probably help smarter programmers than I
This is correct. He is using an initialization list to initialize the Talon and Jaguar members.

OP, since you gave us no information on what errors you are encountering, it's near impossible for us to give you any useful advice. However, I'm going to guess you didn't rebuild the index for a new project. Try that and see if it fixes your errors (whatever they may be). Let's see if my crystal ball still works....

Code:
        class Robot : public SampleRobot
        {
            private:
                Talon talon;
                Jaguar jaguar;
            public:
                Robot() :
                    talon(1),
                    jaguar(2)
                {

                }

            void Autonomous()
            {
                Wait(2.0);
            }
            void OperatorControl()
            {
                while (IsOperatorControl() && IsEnabled())
                {
                    talon.Set(1);
                    Wait(1.0);
                }
            }
        };

Last edited by catacon : 30-01-2015 at 17:30.
Reply With Quote
  #7   Spotlight this post!  
Unread 30-01-2015, 17:27
FRC2501's Avatar
FRC2501 FRC2501 is offline
Registered User
FRC #2501 (Bionic Poalrs)
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Minnesota
Posts: 52
FRC2501 is an unknown quantity at this point
Re: C++ Errors

Quote:
Originally Posted by catacon View Post
This is correct. He is using an initialization list to initialize the Talon and Jaguar members.

OP, since you gave us no information on what errors you are encountering, it's near impossible for us to give you any useful advice. However, I'm going to guess you didn't rebuild the index for a new project. Try that and see if it fixes your errors (whatever they may be). Let's see if my crystal ball still works....
Sorry, (never let a freshman post for you)
I fixed this by making a new project (apparently it doesn't like that project name)
Reply With Quote
Reply


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 21:03.

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