Team138Entropy / Entropy2020

Team 138 FIRST Robotics Infinite Recharge 2020
4 stars 0 forks source link

Storage Current Draw Concerns #157

Closed joecaraccio closed 4 years ago

joecaraccio commented 4 years ago

Max,

We did a ton of testing on the shooter yesterday. At first we weren't able to get the shooter up to top speed - before then finding that there were loose connections and a possible choke on the gage of wire.

However, what happens when we shoot is we reach an inevitable drop in shooter velocity as we run the storage system to get a ball into the shooter (bad enough to miss the shot). We need to figure out a solution to this tonight. From testing, we found that if we hold a ball just below the shooter (so that we barely have to run the storage system to get it up) it makes the shot.

So there are two potential solutions to this that we are exploring:

Use the 'integration' branch tonight as it has some changes we have been making. For distances at 35 feet or so, we want to be using a speed of about 2900. Probably 2925 or so to give ourselves a little wiggle room.

Example of Current Limiting:

/* The following java example limits the current to 10 amps whenever the current has exceeded 15 amps for 100 Ms */
talon.configContinuousCurrentLimit(10, 0);
talon.configPeakCurrentLimit(15, 0);
talon.configPeakCurrentDuration(100, 0);
talon.enableCurrentLimit(true);
joecaraccio commented 4 years ago

To note, we should be able to handle the current on this. We are going to tap into the power distribution board ( https://docs.wpilib.org/en/latest/docs/software/can-devices/power-distribution-panel.html ) before we do anything and make sure there isn't a really big draw somewhere.

joecaraccio commented 4 years ago

Actually, @maxh65000 looks like we aren't currently setting PID values. That is our issue. I think I am going crazy thinking about this all day!

Lets set those tonight.