Go to Post Looks like it will be to your advantage to keep the Refs happy. Remember, Donuts go a long way toward that end! - billbo911 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 28 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 27-10-2014, 09:12
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Jaguars and FAST PID Looptimes

First off, I am back. This time I'm working with Overclocked, #246.

Second, you'll all be shocked SHOCKED our Fall Practice Project* is a swerve drive chassis**

Third, since we want to this chassis to go the direction we want it to go and we don't want to be waiting around for the steering error to settle down to an acceptable level, we are going to put as much power as we dare into the steering angle drive . Bottom line, we are using a Banebot RS775-18 on each wheel (and there are 4 of course, 4 wheel independent steer swerve -- how could we do less?). So... we get the torque we need and still have the speed we want.

BUT... speed has a dark side. Speed is hard to control, especially at 50hz update rates typically used in FIRST control loops (I want to have 90 degree step change in steering angle in under 60ms -- probably too fast to have a 20ms loop time). I hear good things about the not yet available Talon SRX (coming soon to a FIRST Legal robot near you) but hearing good things doesn't help me today if it isn't available. So, we are left with Jaguars.

Now comes my question:
Has anyone had good luck using the Jaguar's in their PID mode with high speed actuators and very fast loop times? If so, please let me know in the comments below. I want to know the good the bad and the ugly.

Also, Jaguars are also unavailable for sale these days. Anyone willing to sell (or loan) me 4? If so, PM me with details.


Stay tuned for more results and videos as the project progresses.

Joe J.


*Yes, Fall Practice Projects are a thing. If your team is not doing one or more of them, you should be.

**Super Thanks go to Anthony Lapp and his company, Team221 Robotics, for helping us out with Wild Swerves. Literally wouldn't have been able to do this practice project without building off a solid swerve design.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2

Last edited by Joe Johnson : 27-10-2014 at 09:25.
  #2   Spotlight this post!  
Unread 27-10-2014, 09:34
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,373
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

Quote:
Originally Posted by Joe Johnson View Post
First off, I am back......
First off, Welcome back!
It is good to hears from you again. In fact, I was literally just thinking about you this morning while considering a simple transmission design.

I'm looking forward to what you find in your search for the ability to do a 90 deg step change in under 60ms. This should be FUN!!
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #3   Spotlight this post!  
Unread 27-10-2014, 11:26
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

Quote:
Originally Posted by Joe Johnson View Post
BUT... speed has a dark side. Speed is hard to control, especially at 50hz update rates typically used in FIRST control loops (I want to have 90 degree step change in steering angle in under 60ms -- probably too fast to have a 20ms loop time).
20 ms is the old Victor update rate. You can hit 5 ms (might need to tweak the WPILib constants, can't remember, but the hardware can do it) with the Talon SR. That gives you 12 cycles to settle, which might be enough.

How did you come up with 90 degrees in 60 ms?
  #4   Spotlight this post!  
Unread 27-10-2014, 11:54
Chadfrom308's Avatar
Chadfrom308 Chadfrom308 is offline
Slave to the bot
AKA: Chad Krause
FRC #0308 (The Monsters)
Team Role: Driver
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Novi
Posts: 272
Chadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to behold
Re: Jaguars and FAST PID Looptimes

I remember seeing something that said although the jags can do PIDs, they are hard to implement.
  #5   Spotlight this post!  
Unread 27-10-2014, 12:08
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

Quote:
Originally Posted by AustinSchuh View Post
20 ms is the old Victor update rate. You can hit 5 ms (might need to tweak the WPILib constants, can't remember, but the hardware can do it) with the Talon SR. That gives you 12 cycles to settle, which might be enough.

How did you come up with 90 degrees in 60 ms?
I've had mixed results with deducing the update times with WPILib. I am going to have 4 loops running at all times this isn't a burst mode. I remember some very odd behavior showing up in other, unrelated bits of the code. I think it was something related to the threading that WPILib was doing in the background.

Kinda creeped me out frankly.

I know that the Jaguar comes with it's own baggage but at least it lets me find out if an updated loop time allows for sufficient control. I may try a half measure where for this project (not FIRST legal obviously) where I put a coprocessor between the CRio and a Talon that is doing the PID loop itself. Kind of a Kludge but answers the question of "can a Talon SRX do this?"

As to the oddly specific spec of 90 degrees in 60ms, it falls out of a calculation for path following at the various speeds of interest. But in actual fact, it is somewhat arbitrary (faster is better could have been the spec), but part of the point if a Fall Practice Project is to discover the edges of what is possible. The easiest thing in the world is to slow the steering rate down. And I may have to go there, but i am not starting there.

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2

Last edited by Joe Johnson : 27-10-2014 at 14:06.
  #6   Spotlight this post!  
Unread 27-10-2014, 14:26
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

Quote:
Originally Posted by Chadfrom308 View Post
I remember seeing something that said although the jags can do PIDs, they are hard to implement.
Position PID on a Jaguar is not hard to get working well. That's what would be needed for swerve steering.

On the other hand, velocity PID on a Jaguar is much harder to do. Fortunately, once you understand why it doesn't work the way it "should", tuning it becomes a lot less frustrating.
  #7   Spotlight this post!  
Unread 27-10-2014, 15:02
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,580
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

Here's a summary of update rates

Servo: 50hz
Victor and Talon: 100hz (changeable with SetPeriodMultiplier)
Jaguar PWM: 200hz
Jaguar PID: 1000hz, but you can't read status or set setpoints anywhere close to that fast
Driver Station: 50hz
Java iterative methods: synced to driver station
C++ iterative methods: synced to driver station by default, changeable with SetPeriod
WPILib PIDController: 50hz, changeable by changing period parameter in constructor

Last edited by Joe Ross : 27-10-2014 at 15:17.
  #8   Spotlight this post!  
Unread 27-10-2014, 15:07
Woodie Flowers Award
JDNovak JDNovak is offline
Mentor
AKA: John Novak
FRC #0016 (Bomb Squad)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 1996
Location: Mountain Home, AR
Posts: 52
JDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

Good to see you coming back to your roots with swerve.

The issue with all this is available energy and where it gets absorbed.

We used window motors for steering for years until the rules limited them to 2.
Then we decided on AM9015 motors because the range of BaneBot motors is more versatile. It became quickly obvious that four 85 amp motors and four 120 amp motors all turning on at the same time was more than the battery could supply as the voltage at the terminals of a fully charged Enercel fell to 8 volts. We monitor battery resistance and cycle test and haven't found another brand that is better yet. Some are worse. Most battery specs list max current draw at 20 or 50 amps. We know that isn't possible. We also shorten the 6 gauge wire as much as possible and use 10 gauge to larger motors. This actually makes the problem more acute.

This year we are limiting the AM9015s to 75% output but if driving aggressively, the two 775s driving the catapult don't get enough energy to fire. They draw close to 40 amps to start. We used Talons for the drive motors and Jaguars for the rest so we couldn't deduce all power consumed. Next year should be easier as the PDP will allow monitoring of all current sources. The robot will just make it through a 2 minute match with normal driving and defense before the battery charge is reduced to the point that it affects operation. That reads about 80% charge on a Battery Beak after a match. More aggressive steering with defense or a less than absolutely fully charged battery hinders performance by the end of the match.

Bottom line is you can choose to steer fast or accelerate fast but not both at the same time. Whatever is left has to operate also. If the Catapult delays firing for a second the shot is usually missed.

I'm looking into improving steering efficiency and reducing motor size but until then power management is the only option. This never seemed to be a problem before the larger steering motors arrived.
  #9   Spotlight this post!  
Unread 27-10-2014, 16:14
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

We used the on-board Jaguar PID for position control for our shooter turret in 2012.

Don't know if that qualifies as "similar" to your swerve application, but I do have a working knowledge of the pitfalls of the Jag's PID (both position and velocity).

The bottom line is that we did get it working, although it wasn't pretty, and there was still a lot left to be desired. While we were able to get the turret to go to a commanded position effectively, I wouldn't say we had it "perfectly tuned," nor did our system have a lot of dynamic forces on it. The turret was pretty free-spinning, and remained that way throughout.

It was powered by a single RS550 through a planetary. I don't think we were close to hitting your 90 degrees in 60ms spec though. There is a 10-turn pot that you can see in the picture as well.

Here's a pic of the setup:


Here is our competition code for the turret on Google Code:
https://code.google.com/p/robotics61...ms/Turret.java

You can navigate through the source path section to find the PID constants we used as well.

Good luck!

If you have any other questions, post here, and I'll try and find time to share what I can.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
  #10   Spotlight this post!  
Unread 27-10-2014, 16:34
Richard Wallace's Avatar
Richard Wallace Richard Wallace is offline
I live for the details.
FRC #3620 (Average Joes)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1996
Location: Southwestern Michigan
Posts: 3,663
Richard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond reputeRichard Wallace has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

Quote:
Originally Posted by JDNovak View Post
... The issue with all this is available energy and where it gets absorbed.
... Bottom line is you can choose to steer fast or accelerate fast but not both at the same time.
... I'm looking into improving steering efficiency and reducing motor size but until then power management is the only option. This never seemed to be a problem before the larger steering motors arrived.
Dr. Joe and John, too? Wow, there is a lot of horsepower in this thread!

How much acceleration is needed for swerve steering? Is Dr. Joe correct about 90 deg in 60 ms? What trajectory, maybe some kind of spline to reduce or eliminate jerks?

How important is swerve module moment of inertia about the steering axis? How important is scrub? Will overhung motor mass and fat treads be significant factors?

(Is Ether reading this?)

John, what do you think are the window motor attributes that kept this from being a problem in the past? Can a motor engineer help with this?
__________________
Richard Wallace

Mentor since 2011 for FRC 3620 Average Joes (St. Joseph, Michigan)
Mentor 2002-10 for FRC 931 Perpetual Chaos (St. Louis, Missouri)
since 2003

I believe in intuition and inspiration. Imagination is more important than knowledge. For knowledge is limited, whereas imagination embraces the entire world, stimulating progress, giving birth to evolution. It is, strictly speaking, a real factor in scientific research.
(Cosmic Religion : With Other Opinions and Aphorisms (1931) by Albert Einstein, p. 97)
  #11   Spotlight this post!  
Unread 27-10-2014, 16:41
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

I believe the microcontroller on the jag runs at a rate of 50MHz and the encoder is read at 1/4 of that rate. Not clear on how fast the control loop on the jag is running, but I think it is safe to say it is orders of magnitude higher than the software loop.

However you can only command it and read from it as fast as CAN packets are being sent/received.

In your requirement for 90 degrees in 60ms. How much of that is actuation time, and how much of that is settling time?

If you want to be at 90 degrees confirmed in 60ms, then you need the mechanical system (wheel/gear) and anything else that is tied to the motor load including friction between wheel and floor to accelerate and decelerate in that amount of time.

If your target is 60ms, then you should target an actuation time of 40ms, and a settling time of 20ms. Can your mechanical system move that quickly? That is pretty fast by any FRC standard.

If you also plan to run 4 independent loops, they each will settle differently because each motor will react differently. As your speed requirement increases, your engineering tolerances reduce, naturally. You will need very tight tolerances on the manufacture of the assembly, sensor mount, and backlash in order to have reasonable reaction time across all pods. Also take the time to test the motors you are using to ensure their drive characteristics are very similar to each other.

We typically run our control loops at 100ms and give our actuators a settling time of around 100-150ms on top of that because that is a very safe margin, and very achievable with the manufacturing tolerances on our team.

Although we have not done motion planning on FRC(yet) and all of our control loops run in software.

For the motion planning model on my work outside of FRC, a 100ms control loop was more than efficient to follow a waypoint path on a skid steer chassis. Not sure how that equates to the dynamics of a swerve, but I would hope they are somewhat comparable.

Plus, the baggage of CAN error implementation, preventing CANTimeOutErrors and all that other good stuff will need to be user implemented as part of the CAN baggage.

Regards,
Kevin
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner

Last edited by NotInControl : 27-10-2014 at 16:44.
  #12   Spotlight this post!  
Unread 27-10-2014, 18:15
Woodie Flowers Award
JDNovak JDNovak is offline
Mentor
AKA: John Novak
FRC #0016 (Bomb Squad)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 1996
Location: Mountain Home, AR
Posts: 52
JDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond reputeJDNovak has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

Quote:
Originally Posted by Richard Wallace View Post
How important is scrub? Will overhung motor mass and fat treads be significant factors?

what do you think are the window motor attributes that kept this from being a problem in the past? Can a motor engineer help with this?
My previous post was a little from the hip so I used some numbers loosely. My intent was to point out that trying to start moving a load with higher powered motors takes a lot of energy. The Denso window motors are rated at 23 watts and the AM9015 is rated 179 watts. The latter is rated at 69 amps stall current. I haven't tried metering them individually but steering is a significant hit on the battery. We use wedge-top tread and 1" wide wheels because they seemed to cause less turning force on carpet. Those things were more important with the limited torque of the window motors. We are getting the performance we want out of the current steering motors but the energy hit on the battery was a surprise. I didn't mention that the drive train is geared about 9:1 which is around 12 fps actual top speed. It takes quite a bit of energy to accelerate a 145 lb to that speed. The battery just isn't an infinite supply.

One thing I blew over was whether the strategy is to turn to the intended direction before driving the wheels. Our main driving mode relies on constantly correcting the direction which means running all motors at once.
  #13   Spotlight this post!  
Unread 27-10-2014, 19:46
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

Quote:
Originally Posted by Richard Wallace View Post
(Is Ether reading this?)
I am lurking <smile>.

The 90deg/60ms discussion reminds me of a sentence in the last two paragraphs in the swerve inverse kinematics paper1 I posted in March 2011.

Quote:
The 4 wheel speed and wheel angle pairs are now suitable for sending to a control algorithm which will decide how to actuate the steering and drive motors to achieve those speeds and angles for each wheel...

This is a separate and interesting problem, which may involve, for example, logic to reverse the wheel speed instead of steering the wheel 180 degrees (and similarly for other steering/speed commands). This control logic is highly dependent on the limitations of the vehicle design, such as the response of the steering motor...
Does anyone have data showing how wheel speed and driving torque affects steering response?

1 FWIW, I recently wrote an integer-math implementation of swerve reverse kinematics for Anthony Lapp for a project he was working on to run swerve on ATmega2560. He has a video posted here.


  #14   Spotlight this post!  
Unread 27-10-2014, 21:43
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

ChiefDelphi never disappoints.

Thanks to all for the great input.

As to John Novak's comments, you've definitely given me a lot to think about. When the Bomb Squad speaks about swerve, you'd have to be a fool not to listen.

I am curious about a window motor working better than a higher power motor. It's not obvious why you couldn't gear the higher power motor down to the point that it was pulling less power than the window motor (which is purposefully designed to be inefficient so that it will not backdrive and let your windows fall as you drive).

In any case, I will take your advice to keep an eye on overall current draws, especially when shooting mechanisms that are current sensitive are involved.

I have a question about the speeds you discuss. You say you have a 9:1 ratio and I think you guys are a 4" wheel shop these days (which roughly checks with your 12 fps top speed). You happy with that? Do you guys wish you had a bit more metal in the pedal when zipping back and forth across the field? Do tell.

As to Joe Ross, do the Jaguar's really have 1ms update periods when in PID mode? I don't need to read the sensor anywhere near that fast so that doesn't both me but I would like the faster loop time. (Yes, I know Jaguars have other baggage - but remember this is a Fall Practice Project -- I can afford to take risks now that I would be very hesitant to take come January).

Finally, a question for Ether, but of course, all are welcome to comment. Given a 4 wheel independent steer swerve, with the 12fps top speed our good friends from Mountain Home report, what is the minimum steering angle speed you'd recommend before the vehicle kinematics would be compromised?

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
  #15   Spotlight this post!  
Unread 27-10-2014, 22:02
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

Quote:
Originally Posted by Ether
FWIW, I recently wrote an integer-math implementation of swerve reverse kinematics for Anthony Lapp for a project he was working on to run swerve on ATmega2560. He has a video posted here
Ether,

Nice try making the font small so we'd not follow the link. But I'm on to your tricks ;-)

Very cool chassis. Can you provide details on the ratios and motors involved on that swerve or do I have to go pester Anthony? It seems like there is a point in the video where one of the steering angles is close to 90 degrees in 100ms. I could be wrong because I am just eyeballing it but even so, that's some pretty zippy steering.

My kind of swerve if you know what I mean...

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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