![]() |
Velocity Control - Battery Compensation Term
When doing velocity control with the talon srx's, the velocity you get from your feed-forward term is going to be affected by battery voltage. Has anyone experimented or used a battery offset term to correct for this? Is it worth it?
|
Re: Velocity Control - Battery Compensation Term
Quote:
The I gain is for things like that. We use I and P for velocity control and as long as you design your gearbox / motor combo with enough headroom then the I and P can compensate. We design our speed controlled devices to operate at 60% duty for the ideal situation. For example, if you want your shooter to go 2500 RPM, it better hit that speed at 60% - 70% duty. This way, the I and P gain can do their job. When testing without speed control, if you set your motor command at .6 or .7, then you should be able to score your game object from the desired shooting spot with a full battery and one ball at a time. At least, this is what we do. Paul |
Re: Velocity Control - Battery Compensation Term
I'm currently working on something similar. It seems like when the Talon is in Velocity Control Mode the feed forward term is used to calculate an output voltage. This would make think that it wouldn't be affected by battery voltage unless it dropped bellow the requested output.
I'm not certain, but I'm sure CTRE will give an answer soon. |
Re: Velocity Control - Battery Compensation Term
Quote:
|
Re: Velocity Control - Battery Compensation Term
Quote:
10000 rpm motor free speed at 100% command 6500 rpm motor free speed at 65% command 2500 desired operating rpm of flywheel 2.6:1 speed reduction gear ratio = 6500/2500 YMMV depending on how much friction and windage you have in your gearing and flywheel |
Re: Velocity Control - Battery Compensation Term
Quote:
|
Re: Velocity Control - Battery Compensation Term
Quote:
|
Re: Velocity Control - Battery Compensation Term
Quote:
Take a CIM whose free speed is 5310 rpm at 12 volts and connect it to a good quality properly assembled and lubed 2:1 gearbox whose output shaft is connected to nothing (no load). Using the same computation you did above, the CIM's speed would now be 5310*0.8 = 4248 rpm. Now go to the motor curves for CIM and you'll see that CIM is drawing 29 amps. Do you believe that? If not, where is the error? |
Re: Velocity Control - Battery Compensation Term
Quote:
The 0.8-0.9 factor approximates typical losses seen in FRC for gearboxes + belt/chain + bearing friction + wheel/roller windage. |
Re: Velocity Control - Battery Compensation Term
Quote:
It would be very interesting to see test data for a quality 2:1 single-stage gearbox (properly assembled and lubed) connected directly to a properly balanced spokeless shooter flywheel, when the flywheel is spinning unloaded (i.e. not firing balls) at its operating speed. Volunteers? |
Re: Velocity Control - Battery Compensation Term
I would guesstimate the torque speed relationship is not linear from free speed. So the small amount of load the gearbox presents reduces the speed more initially without necessarily loading the motor to the point of 29A. I would then expect additional load to be more linear in current and speed.
|
Re: Velocity Control - Battery Compensation Term
Quote:
The other thing to watch for, is if you are going to let the shooter wheels run down, put them in %vbuss mode, or you will pid them to 0, which will make them stop fast and with a lot of heat for no good reason. |
Re: Velocity Control - Battery Compensation Term
Quote:
|
Re: Velocity Control - Battery Compensation Term
Quote:
|
Re: Velocity Control - Battery Compensation Term
Quote:
Good to know I don't have to mess around with battery compensation. |
| All times are GMT -5. The time now is 06:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi