Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Declaration issues (http://www.chiefdelphi.com/forums/showthread.php?t=154012)

Freeman6499 21-01-2017 10:59

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);
}

jreneew2 21-01-2017 11:30

Re: Declaration issues
 
Do you have your complete code on github? Or have the error you are getting?

Freeman6499 21-01-2017 17:41

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

euhlmann 21-01-2017 23:19

Re: Declaration issues
 
Quote:

Originally Posted by Freeman6499 (Post 1634571)
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.


All times are GMT -5. The time now is 03:13.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi