Hello can someone help me program the intake in autonomous in labview I have a code for it is here can anyone tells me what I did wrong here because my robot will move forward but the intake would not work so can anyone help me thank you.
You’ll need a timed loop in the second frame. Like one of the loops in Periodic Tasks.
The way it is written you are sending a single “Drive motor at full speed” command once. The you are waiting 10 seconds. The timer control you are using doesn’t make it so the “Set Output” is called continuously. I’m betting the motor runs for a very small amount of time before the safety config takes over and shuts the motor down because you are feeding it continuous motor command.
The “Update Motor” you call in the first frame is different. it is designed to continually feed the motor the output for the amount of time you put into the wait.
So how do I get a time loop for the intake
Right click block diagram / structures / Timed loop
In your first frame, it’s only running for 1 second (1000 ms). Your 2nd frame runs for 10 seconds.
Also, I think you’re supposed to disable safety config at the beginning and re-enable at the end.
See the autonomous example here -
http://www.team358.org/files/programming/ControlSystem2015-2019/labview/index.php#Autonomous
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.