Go to Post My guess is you all are planning on being overweight......interesting strategy.....i like it - Stephen Kowski [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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

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