![]() |
can someone help me kick a ball?
Hello fellow robots Im kind of a rookie when it come to programing in labview and would like some examples of Autonomous code and a kicker program for teleop mode or even a nudge in a good direction
|
Re: can someone help me kick a ball?
There are many here that would be glad to help you program your robot's kicker but we are going to need more information to be of assistance.
How does your kicker work? Think specifically about the exact process and what you need to control (motors, pneumatics etc.) in what direction and order/timing to complete the kick. An example for my team's kicker is: 1. Drive CIM motor in reverse to draw back kicker 2. Set Solenoid on Port 1 to fire kicker 3. Wait until "Latched" signal on GPIO 8 goes high 4. Un-Set solenoid on Port 1 5. Drive CIM forward until "Latched" signal on GPIO 8 goes low 6. Drive CIM reverse until kicker reaches "home position" Steps 1 and 6 are controlled using a magnetic encoder |
Re: can someone help me kick a ball?
1 Attachment(s)
below is a picture of our kicker's code in TeleOp. we are using buttons 1 and 2 to kick and retract the kicker. button 1 will kick the ball, and button 2 will retract the kicker. the buttons are responding as expected, but the kicker is not moving its full motion in either direction.
|
Re: can someone help me kick a ball?
Is there anything in the false case of those case statements?
|
Re: can someone help me kick a ball?
no, each statement has code for only the true case for each button when pressed.
|
Re: can someone help me kick a ball?
That code should fully extend or retract the cylinder if only the appropriate button is pressed. If the same thing happens if you tap the button versus holding the button that will verify that the code is correct.
Are you sure the issue is in code and not mechanical? |
Re: can someone help me kick a ball?
we thought it might be the same thing but we're still beginners so we weren't sure if it was a programing error or a mechanical; what do you think is most likely our problem?
|
Re: can someone help me kick a ball?
Quote:
You can verify that the code isn't the problem by unplugging the solenoid from the cRIO and using the manual override to switch it. |
Re: can someone help me kick a ball?
well thats how we orignaly did it because pneumatics was ready before the program was. i thought it may be the amount of time the signal takes to go threw was to fast but im not sure how to mess with that theory.
|
Re: can someone help me kick a ball?
Quote:
So when you push for example the extend button and that's it the kicker extends partially then stops? |
Re: can someone help me kick a ball?
yes its a very small motoin and isn't even noticabe if you arent paying attention
|
| All times are GMT -5. The time now is 11:06. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi