|
Autonomous timing of events are to fast
In auto we want to 1)move forward for two seconds, 2)stop driving and spin up our shooter motors for a couple of seconds, 3) then retract a pair of cylinders with shooter motors still spinning with about a second wait to make sure the cylinders have fully retracted, 4) and finally stop the shooter motors and extend the cylinders. see attached code
We use a stacked sequence to complete these tasks. It drives forward for 2 seconds just fine. The PROBLEM... in the seconds step the shooter motors (frontMotor and rearMotors) start for a split second and stop. Then after about the two seconds the cylinders (frontliftCylinder and rearliftCylinder) retract for a split second and then extend.
Why are the shooter motors and cylinders only acting for a split second in sequence 2 and 3?
|