Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Problems with tuning shooters using AM basketballs on Practice Field? (http://www.chiefdelphi.com/forums/showthread.php?t=104278)

JamesCH95 06-03-2012 12:21

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
Quote:

Originally Posted by jblay (Post 1140096)
Are there any teams who attended a week 1 event who didn't have an issue with this?

..

Quote:

Originally Posted by JamesCH95 (Post 1140002)
We've been using an open-ended voltage control (same as 2006) for our 5-roller shooter and were very consistent throughout GSR. Even when fresh balls were put out on the field during eliminations our hybrid was as consistent as before. FWIW I think we're ranked 20-something in Hybrid OPR.

Our program essentially does this:

shooter_speed = 11/system_voltage

We tried a PID loop but couldn't ever get it to behave the way we wanted it to. The issues being that there are huge changes in friction and system inertia when a ball is engaged with the shooter, and our shooter system is slow low-inertia that the PID loop is unstable when under no load no matter how much we tuned it.


Chris Hibner 06-03-2012 12:37

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
Quote:

Originally Posted by squirrel (Post 1140071)
We have a really long delay between shots, waiting for the shooter speed to adjust. Open loop could really speed up our shooting process, hopefully enough to get a few more shots off in teleop

A good closed loop controller should get your shooter up to speed much faster than an open loop method. After shooting a ball, our shooter is back to shooting speed in a little more than a half second. We spent some time tuning the controller to make it work well, and we have a simple gain scheduler to help out.

We found that the shooter is much more consistent with closed loop control. Some balls slowed the shooter down more than other balls, but the closed loop control reduced this variation quite a bit.

andreboos 06-03-2012 12:45

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
I plan to implement PID on our withheld launcher tonight. We installed encoders at the last minute to simply measure rate, and the wheel speed is stable within 10% of the average when driving them with a constant percent of battery voltage with a Victor.

Teams that have compensated with system voltage, what sort of stability have you achieved, and what algorithm did you use? My naive approach would be something like 12.0/V_battery*percentage, but a voltage-squared system was mentioned earlier. Would this provide a more stable speed across voltages?

Teams with closed-loop control, what sort of stability have you achieved? I can't imagine that it would be easy to tune PID for a flywheel for stability and rapid convergence. Have you had luck with any sort of feed-forward?

45Auto 06-03-2012 13:01

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
We're using a closed-loop system (encoder feeding a PID). The feed system is not allowed to advance a ball unless the wheel is within 1% of the target speed. For us, less than 1% makes for an exponentially increasing huge delay between shots, more than 1% shoots faster but has more variance in the impact point.

We're driving 2 8" old kit wheels with 2 775's on Banebot Cim-U-Laters (3.7 to 1).

The wheel spins up to speed and stabilizes from a stop within about 2 seconds. It takes about a second or so between shots for the wheel to re-stabilize at the target RPM and the feed to start advancing again.

It took us about a full weekend plus one full day we were out of school for Mardi-Gras to get it dialed in. The PID loop is VERY picky!

We've only tested with the KOP balls, we're expecting to have to tune it at the regional. Our driver panel is set up to allow tuning without having to go into the code.

Video of testing at the end of week 5:

http://www.youtube.com/watch?v=0hIPc...ature=youtu.be

MrForbes 06-03-2012 13:05

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
Unfortunately I don't know enough about it to give you any more info...and I haven't had a chance to talk to our programmer or programming mentor since the competition

Chris Hibner 06-03-2012 13:07

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
Quote:

Originally Posted by andreboos (Post 1140112)
I plan to implement PID on our withheld launcher tonight. We installed encoders at the last minute to simply measure rate, and the wheel speed is stable within 10% of the average when driving them with a constant percent of battery voltage with a Victor.

Teams that have compensated with system voltage, what sort of stability have you achieved, and what algorithm did you use? My naive approach would be something like 12.0/V_battery*percentage, but a voltage-squared system was mentioned earlier. Would this provide a more stable speed across voltages?

Teams with closed-loop control, what sort of stability have you achieved? I can't imagine that it would be easy to tune PID for a flywheel for stability and rapid convergence. Have you had luck with any sort of feed-forward?

This is a good post with some nice pictures to help you tune: http://www.chiefdelphi.com/forums/sh...7&postcount=34

Feed forward is good for improving dynamic response when you expect the setpoint to change rapidly or if your external disturbance change significantly (and predictably) with a change in set point. For a shooter the setpoint is pretty constant or will change slowly, and the disturbance doesn't vastly change with setpoint (yes, the air resistance changes with the square of speed, but the disturbance doesn't change direction like an arm that moves through vertical). We didn't find any need for feed forward. We found with the P&I tuned well the dynamic response was really good.

IndySam 06-03-2012 13:10

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
Just as an aside, I wish you would change the title of the thread. there is no such thing as AM balls. AndyMark is just the venue FIRST chose to distribute the FIRST game pieces this year. There is no difference between the balls at competition and the balls distributed through AM.

andreboos 06-03-2012 13:17

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
Quote:

Originally Posted by 45Auto (Post 1140117)
We're driving 2 8" old kit wheels with 2 775's on Banebot Cim-U-Laters (3.7 to 1).

The wheel spins up to speed and stabilizes from a stop within about 2 seconds. It takes about a second or so between shots for the wheel to re-stabilize at the target RPM and the feed to start advancing again.

Interesting, we're using exactly the same motors, wheels, and gear ratio for our launcher (although we manufactured our own gearboxes). However, when applying a constant voltage, it takes our launcher quite a few seconds (more than 5, at least) to spin up. Maybe our imprecisely machined gearboxes are the culprit here. Does your controller overshoot initially to start the wheels and then decrease to stabilize?

jblay 06-03-2012 13:18

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
Quote:

Originally Posted by IndySam (Post 1140126)
Just as an aside, I wish you would change the title of the thread. there is no such thing as AM balls. AndyMark is just the venue FIRST chose to distribute the FIRST game pieces this year. There is no difference between the balls at competition and the balls distributed through AM.

Well I think part of the original question was if the balls we get from andymark are different when they are fresh out of the box than the fresh ones at the competition because some people have said that this might be the case. This is not meant to slander andymark or anything but instead to see if it is part of the issue teams are having.

AdamHeard 06-03-2012 13:22

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
A constant voltage applied will spinup slower than a proper closed loop control, and respond slower as well.

Lets say a 6V output results in roughly the steady state speed you desire, when you spinup (both initially and after a shot), you're running the motor at 6V.

Under closed loop control, when you spin up and are below your setpoint, you will get a voltage output higher than 6V (and likely the full ~12V for an appreciable amount of time), resulting in faster response.

andreboos 06-03-2012 13:23

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
Quote:

Originally Posted by Chris Hibner (Post 1140123)
This is a good post with some nice pictures to help you tune: http://www.chiefdelphi.com/forums/sh...7&postcount=34

Hmm, I tuned our drivetrain with P alone, and found that any amount of I caused significant oscillation. I suppose the I term would would cause an initial overshoot, which we'd want to spin a launcher up quickly, but we wouldn't want that in a drivetrain. I'll update with any progress tonight.

45Auto 06-03-2012 13:25

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
Quote:

Interesting, we're using exactly the same motors, wheels, and gear ratio for our launcher (although we manufactured our own gearboxes). However, when applying a constant voltage, it takes our launcher quite a few seconds (more than 5, at least) to spin up. Maybe our imprecisely machined gearboxes are the culprit here. Does your controller overshoot initially to start the wheels and then decrease to stabilize?
If you're applying the constant voltage that it takes to maintain the wheels at speed, then it is going to take a long time to ramp up. It takes very little power to maintain the speed.

Our system has no audible overshoot. Shooting speed is about 50% of max speed, so there is a big reserve of power available to bring the wheels up to speed. I haven't looked at the plots, but I would guess the control loop is ramping down from very near full power as the wheels come up to speed.

Ether 06-03-2012 13:34

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
Quote:

Originally Posted by Chris Hibner (Post 1140123)
Feed forward is good for improving dynamic response when you expect the setpoint to change rapidly or if your external disturbance change significantly (and predictably) with a change in set point.

Feedforward can also be helpful when you are trying to control speed with a canned PID routine that was designed to control the position of a position-integrating plant.



s_forbes 06-03-2012 13:54

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
It seems like the design of the system (gearing / wheel size / motors / compression / shooting distance) has a larger impact on spin up time than the control system does. Our light, low inertia system spins up in <1 second and is back up to speed after a shot in ~0.5 sec, and shots are pretty consistent at the moment with just a straight PWM value to each Jag. Old and new balls seem just as consistent. Video here of shooter firing off a couple sets of 3 balls, mixed with old and new.

We're still looking into a closed loop control system for the shooter, encoders are already mounted and spitting out data.

It sure is neat to hear how everyone is tackling this problem, I'd like to hear more teams post their results!

Ether 06-03-2012 14:09

Re: Problems with tuning shooters using AM basketballs on Practice Field?
 
Quote:

Originally Posted by s_forbes (Post 1140156)
Our light, low inertia system spins up in <1 second and is back up to speed after a shot in ~0.5 sec, and shots are pretty consistent at the moment with just a straight PWM value to each Jag.

What's your gear ratio (from motor to wheel) and what motor(s) are you using?




All times are GMT -5. The time now is 04:15.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi