Go to Post Engineering rules of thumb don't form the garbage that goes into the making of the robot. They take the garbage of the real world and turn it into more pure, if slightly diluted, data. - DampRobot [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2017, 10:59
Freeman6499 Freeman6499 is offline
Registered User
FRC #6499
 
Join Date: Jan 2017
Location: Placentia
Posts: 2
Freeman6499 is an unknown quantity at this point
Declaration issues

Having syntax issues (bottom code). The declarations look correct to me, but I cannot determine what's wrong. Please provide feedback:



#include "GearCatcher.h"
#include "../RobotMap.h"
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=INCLUDES
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=INCLUDES

// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTANTS

// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTANTS

GearCatcher::GearCatcher() : Subsystem("GearCatcher") {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
doubleSolenoid = RobotMap::gearCatcherDoubleSolenoid;
compressor1 = RobotMap::gearCatcherCompressor1;

// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
}

void GearCatcher::InitDefaultCommand() {
// Set the default command for a subsystem here.
// SetDefaultCommand(new MySpecialCommand());
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND


// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
}

void GearCatcher::Open() {
doubleSolenoid->Set(1);
}

void GearCatcher::Close() {
doubleSolenoid->Set(-1);
}

void GearCatcher::Stop() {
doubleSolenoid->Set(0);
}
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2017, 11:30
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 213
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: Declaration issues

Do you have your complete code on github? Or have the error you are getting?
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2017, 17:41
Freeman6499 Freeman6499 is offline
Registered User
FRC #6499
 
Join Date: Jan 2017
Location: Placentia
Posts: 2
Freeman6499 is an unknown quantity at this point
Re: Declaration issues

Yes,

There are a series of programs that are not being added to the path correctly.

It's asking for non-used paths such as
G++
Microsoft Visual 12.0


Description Resource Path Location Type
Program "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl" not found in PATH Getting Started2

Program "g++" not found in PATH
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2017, 23:19
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 404
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Declaration issues

Quote:
Originally Posted by Freeman6499 View Post
Yes,

There are a series of programs that are not being added to the path correctly.

It's asking for non-used paths such as
G++
Microsoft Visual 12.0


Description Resource Path Location Type
Program "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl" not found in PATH Getting Started2

Program "g++" not found in PATH
Those won't affect deploying. You can safely ignore those.
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
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 18:49.

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