|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
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 |
|
#2
|
|||||
|
|||||
|
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:
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:
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. Last edited by Mark McLeod : 19-02-2013 at 09:55. |
|
#3
|
||||
|
||||
|
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.
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|