Go to Post What, there is life outside of CD? - JB987 [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 11-02-2014, 13:30
Zach S. Zach S. is offline
Registered User
FRC #3307 (Luray Robodawgs)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Luray
Posts: 30
Zach S. will become famous soon enough
Re: Double solenoid code

Quote:
Originally Posted by RufflesRidge View Post
Because kForward is a member of the DoubleSolenoid class. Use DoubleSolenoid::kForward
Sorry, I am a bit new to C++ (recently switched from labview) where is it that I make the ::kForward, is it in the Teleop, or init?
__________________
Head of Computer Systems and Programming of Team 3307


Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2014, 13:47
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Double solenoid code

Quote:
Originally Posted by Zach S. View Post
Sorry, I am a bit new to C++ (recently switched from labview) where is it that I make the ::kForward, is it in the Teleop, or init?
In the set line that you posted, replace kForward with the text I posted above.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2014, 13:48
Zach S. Zach S. is offline
Registered User
FRC #3307 (Luray Robodawgs)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Luray
Posts: 30
Zach S. will become famous soon enough
Re: Double solenoid code

Quote:
Originally Posted by RufflesRidge View Post
In the set line that you posted, replace kForward with the text I posted above.
Thanks, the code built correctly I will try this out on the bot today!
__________________
Head of Computer Systems and Programming of Team 3307


Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2014, 14:07
Zach S. Zach S. is offline
Registered User
FRC #3307 (Luray Robodawgs)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Luray
Posts: 30
Zach S. will become famous soon enough
Re: Double solenoid code

Okay, tested the program but I still have an issue.

The code seems to be working, I can see the lights on the FESTO changing as I hit the button on the joystick, however, it seems that the solenoid will not fire. Is this a wiring or more code problem? And how can we get this fixed?
__________________
Head of Computer Systems and Programming of Team 3307


Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2014, 14:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Double solenoid code

Is it a 12 volt or a 24 volt solenoid? Are you providing it with the voltage it requires?

Do you have enough pneumatic pressure supplied to it for the pilot valve to activate?
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2014, 16:41
Zach S. Zach S. is offline
Registered User
FRC #3307 (Luray Robodawgs)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Luray
Posts: 30
Zach S. will become famous soon enough
Re: Double solenoid code

Quote:
Originally Posted by Alan Anderson View Post
Is it a 12 volt or a 24 volt solenoid? Are you providing it with the voltage it requires?

Do you have enough pneumatic pressure supplied to it for the pilot valve to activate?
24 Volt, I have the wires running from the solenoid breakout board into the FESTO. And as for pressure we are building it up to 60 for testing, and nothing is firing.
__________________
Head of Computer Systems and Programming of Team 3307


Reply With Quote
  #7   Spotlight this post!  
Unread 17-02-2014, 21:52
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Double solenoid code

Quote:
Originally Posted by Zach S. View Post
24 Volt, I have the wires running from the solenoid breakout board into the FESTO.
Just to be certain: Are you feeding the Solenoid Breakout's power input with 24 volts?
Reply With Quote
  #8   Spotlight this post!  
Unread 18-02-2014, 09:48
Zach S. Zach S. is offline
Registered User
FRC #3307 (Luray Robodawgs)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Luray
Posts: 30
Zach S. will become famous soon enough
Re: Double solenoid code

Quote:
Originally Posted by Alan Anderson View Post
Just to be certain: Are you feeding the Solenoid Breakout's power input with 24 volts?
Yes, we have a 20 amp fuse on it, should we be using a 30 amp?
__________________
Head of Computer Systems and Programming of Team 3307


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 12:12.

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