Hello. First of all, I’m going to preface this with a few details about my situation. My team has never successfully integrated vision tracking or sensor data. This is our fifth year, my second. I am the only programmer/control systems person. We use labview. Unfortunately we do not have a programming or electronics mentor.
Those things aside, I am determined to put together a shooter that through angle actuation and rpm modulation is able to send a ball through the high goal from any distance with a final y velocity of 0.
I’d like a final y velocity of 0 so that the ball enters the goal flying straight, and therefore does not shorten the goal surface area (or lack of surface area).
So after a long conversation with one of our mentors, he and I determined that the code should accept an input distance from the vision tracking (not sure if this needs to be distance to goal or to base of goal), and give an rpm and an angle as an output to the shooter.
I figure that the best way to do this would be to use a calculator of some kind to find the values of rpm and angle required for every possible distance (up to a reasonable maximum) and feed those values to a table. Then the code could reference the table rather then have a calculator running constantly, eating up processing power.
I have several problems. Firstly, I don’t know how to create a calculator to do this. I’ve looked at Ether’s calculator (beautiful by the way), which outputs two distances (not necessarily with y velocities of 0) which you can fire from at an input speed and an input angle. Perhaps I can edit this calculator to input distance, and output rpm and angle. I don’t know how to do that…
I also don’t know how to create a table that labview can use, or utilize any sort of table in labview.
So, if you have any experience that could be helpful to me, either through this thread or through some direct messaging with me, please respond.
Thanks,
Benjamin