Go to Post I think we all should strive to be better than what is expected of us. :) - Madison [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 25-01-2014, 10:49
[martinskot] [martinskot] is offline
2013 Driver
FRC #4618 (CN Robotics)
 
Join Date: Nov 2013
Rookie Year: 2013
Location: Stoney Creek, ON
Posts: 7
[martinskot] is an unknown quantity at this point
Solenoid Programming Errors

Hi CD,

This is my first year programming, and 4618's first year using pneumatics. I've programmed according to the WPIlib screensteps and I keep getting an error every time I save and build the program.
Here's what I've done(copied from sections of the program):

DoubleSolenoid *m_leftShifter;

m_leftShifter = new DoubleSolenoid(LEFT_DRIVE_LOW,LEFT_DRIVE_HIGH);

m_leftShifter.set(DoubleSolenoid.Value.kForward);

If someone could tell me what I'm doing wrong or how to fix this it would really be appreciated. If it helps, programming it as a Solenoid instead of DoubleSolenoid and using m_leftShifter.set(true); did not get rid of the problem.

EDIT: I could set a motor value successfully, just not the solenoids.

Thanks

Last edited by [martinskot] : 25-01-2014 at 10:55. Reason: Missing info
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 12:04.

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