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
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.
…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.
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.
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
Doing everything in a Periodic Task with nothing much in Autonomous VI or in Teleop VI
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.