Go to Post You wrote a PID control loop for your coach? Whoa. - meatmanek [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 19-02-2013, 09:26
DirtyBird213's Avatar
DirtyBird213 DirtyBird213 is offline
Registered User
AKA: Dean Joyal
FRC #0213 (Dirty Birds)
Team Role: Coach
 
Join Date: Nov 2002
Rookie Year: 1993
Location: Keene, NH
Posts: 65
DirtyBird213 is on a distinguished road
Programming a Solenoid in Autonomous

Hi
I have looked over every code but just need confirmation on programming a solenoid during autonomus, all the code I find shows drive code.
All code works in every other mode but confused as to what to put in auto

Basically we have no desire to drive, we are removing all wheels and motors as climbing takes full time and we are better served just positioning and going up.
Our time is close to full two minutes to climb as we are using pneumatics and waiting on compressor, so we are close to two minutes.
Having the extra 15 seconds in autonomus to hook and hang would help
Operation-
solenoid 5 is controlled by joystick button 7, then at 10 seconds we wait solenoid 3 to be deployed by joystick 11.
HELP!! thanks
__________________
2015- NE Districts UNH District Event Winner

2003- BAE Systems Granite State Regional; General Motors Industrial Design Award.

Advisor KHS DIRTY BIRDS since 1994
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2013, 09:46
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,746
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming a Solenoid in Autonomous

It sounds like you want to mix starting in autonomous and finishing with a mixture of human/autonomous control of your climb.
For the autonomous parts just call Solenoid Set at the proper moment in time wit:
  • For a double solenoid use "Forward" or "Reverse" hard wired into Solenoid Set
  • For a single solenoid use "On" or "Off" hard wired into the Solenoid Set
The joysticks get bypassed during the autonomous period, so you need an alternate way to feed.

It can all be setup as a single sequence in Periodic Tasks that runs both during Autonomous Mode and during Teleop Mode as long as you can tolerate a short Disable Mode in between.

Quote:
...at 10 seconds we wait solenoid 3 to be deployed by joystick 11.
That sounds like the coach taps the driver on the shoulder at the 10 second mark.
Or you can have the code override whatever the driver is doing at the 10 second mark and force solenoid 3 to deploy. Structured properly that can be a stand-alone parallel loop independent of the Driver that just throws solenoid 3 whenever the 10 second mark passes.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 19-02-2013 at 09:55.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2013, 12:16
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 121
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Programming a Solenoid in Autonomous

One of the 3 teams that I am the LabVIEW mentor for is also doing just the climb without any drive train.

I think they could do the whole climb completely autonomous.

But I can't get anyone interested in doing any autonomous code at all. As of last night they plan on sitting there until Teleop mode. They THINK they can climb to the 30 point in the 2 min. As of last night they had not gotten a complete climb yet.

So I have given some though about autonomous climb without anyone interested to share it with.
  1. A version of Teleop with a state machine that I also run from a loop in Autonomous. The state machine would not really know if it was in autonomous or teleop, but pick up where it left off from switching modes
  2. Doing everything in a Periodic Task with nothing much in Autonomous VI or in Teleop VI
  3. Some Hybrid

Plus once in Teleop the drivers could assist or help from the joystick if needed.

Let us know a little more about how your systems works.
I saw a video of a climber where the coach was counting with his fingers. That might have been your team.
__________________
Omar
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:59.

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