Go to Post The Lord of the Bots.... - Bob Steele [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
  #16   Spotlight this post!  
Unread 27-10-2014, 22:11
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,081
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

Quote:
Originally Posted by Joe Johnson View Post

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.
6" shop.
__________________




.
  #17   Spotlight this post!  
Unread 27-10-2014, 22:37
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
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 Joe Johnson View Post
Can you provide details on the ratios and motors involved on that swerve or do I have to go pester Anthony?
Hi Joe,

I'd like to help but you'll have to ask Anthony for those details. He contacted me because he needed help implementing integer math. He had coded the swerve inverse kinematics in floating point, and the floating-point emulation library was chewing up all the processing power on the ATmega2560. I sent him an integer-math implementation scaled for his inputs and outputs.


  #18   Spotlight this post!  
Unread 27-10-2014, 22:42
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
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 Joe Johnson View Post
do the Jaguar's really have 1ms update periods when in PID mode?
Follow the link for the full text:

Quote:
Originally Posted by dyanoshak View Post
...Which is called by the Controller Interrupt Handler which is triggered every 1ms by the H-Bridge.... When the PID is updated, the output is converted to a voltage command to the H-Bridge.

  #19   Spotlight this post!  
Unread 27-10-2014, 22:59
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
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 Joe Johnson View Post
what is the minimum steering angle speed you'd recommend before the vehicle kinematics would be compromised?
As you no doubt are aware, pedantically speaking any steering response (or drive motor response) less than infinite causes some compromise in the kinematics (in the form of wheel scrubbing).

As a practical matter, as the steering response gets slower and slower, you get more and more wheel scrub, especially during rapid evasive maneuvers. Eventually I suppose you'll reach a point where the vehicle starts exhibiting undesired or unpredictable "macro" behaviors.

Calling all teams who have deployed successful "Unicorn" swerves with 3DoF driver interface: please share your experience/data concerning steering dynamic response.


  #20   Spotlight this post!  
Unread 28-10-2014, 08:14
Gdeaver Gdeaver is online now
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,371
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Jaguars and FAST PID Looptimes

What is the rational for very fast steering response and why is there a need to expend allot of power to accomplish this?
This is a link to a page showing what we have done with swerve.

http://wiki.team1640.com/index.php?title=Swerve_Central

We use a RS540 and banes bot 1 : 133 trans. Plenty for power and speed. Other designs and drive wheels may need more power but this solution has worked well for us.
I would caution on the use of Jags for positional control. We burned up several on the steering motors. We have used Victors and Talons for the steering motors with out failures.
For auto navigation, Tight PID tuning, well calibrated and accurate steering angle sensor and a good stable gyro - IMU are needed. Swerve does not like to go straight.
For teleop, a looser PID can actually be better. This is especially true if the driver is the button smasher gamer type. Next year we are planning on a very tight PID values for Auto and looser PID values for teleop. This year we tuned it to a value between the 2 ideal settings.
For 2015 we are looking forward to the power distribution boards ability to log current draw of all motors. The excel spread sheet and code TOM LINE posted looks very promising for swerve power analysis under battle field conditions. We don't know what our swerve consumes on the field and we should know this.
So again I ask why is there a need to bash the steering for very fast and precise angle?
  #21   Spotlight this post!  
Unread 28-10-2014, 09:20
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
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 Gdeaver View Post
So again I ask why is there a need to bash the steering for very fast and precise angle?
I think the question here is how fast is "fast enough" to accomplish the desired tasks.

The answer depends on what you want to accomplish with the swerve. Rapid evasive maneuvers require faster response than a gently sweeping curve.

The steering doesn't have to be perfect or instantaneous. But if the steering is way too slow or inaccurate, the vehicle will not behave as desired.

Your team seems to have found an acceptable compromise. Can you link to some videos showing rapid evasive maneuvers?



Last edited by Ether : 28-10-2014 at 10:03.
  #22   Spotlight this post!  
Unread 28-10-2014, 16:18
RyanShoff RyanShoff is offline
Registered User
FRC #4143 (Mars Wars)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2012
Location: Metamora, IL
Posts: 147
RyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to behold
Re: Jaguars and FAST PID Looptimes

Quote:
Originally Posted by Ether View Post
Calling all teams who have deployed successful "Unicorn" swerves with 3DoF driver interface: please share your experience/data concerning steering dynamic response.


Bag motor 90:1 to wheel through versaplanetary.

This loop was minimally tuned to stop any shaking. We didn't spend a lot of time optimizing it. Response of wheels turning 90 degrees wasn't timed. I would guess around 250ms. As tuned, it visibly overshoots a little and comes back on a full speed 90 degree move.

This was all copied from Bombsquad. Looking back on their original code (2013), it looks like we took D from 0 to .2 and increased the STEERPOW from .75 to 1. I don't know what motor or reduction they used.

Next year we'll be looking to decrease the loop period and the tolerance if we do a swerve again. The speed and response was just fine but it could have driven straighter.

PID loops setup like this:

Code:
#define CONTINUOUS true
#define P 1.0
#define I 0.0
#define D 0.2
#define F 0.0
#define POTMIN 0.2
#define POTMAX 4.8
#define STEERPOW  1.0
#define TOLERANCE 0.2
#define PERIOD .02
#define RATIO 1

driveTrainFrontLeftDrive = new Talon(1, FLD);
driveTrainFrontLeftPos = new AnalogChannelVolt(1, FLP, true, RATIO);
driveTrainFrontLeftSteer = new Talon(1, FLS);
driveTrainFrontLeft = new PIDController(P, I, D, F,  driveTrainFrontLeftPos,
driveTrainFrontLeftSteer, PERIOD);
driveTrainFrontLeft->SetContinuous(CONTINUOUS); 
driveTrainFrontLeft->SetAbsoluteTolerance(TOLERANCE); 
driveTrainFrontLeft->SetInputRange(POTMIN, POTMAX);
driveTrainFrontLeft->SetOutputRange(-STEERPOW, STEERPOW);
__________________
Ryan Shoff
4143 Mars/Wars
CheapGears.com
  #23   Spotlight this post!  
Unread 28-10-2014, 16:40
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
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 RyanShoff View Post
The speed and response was just fine but it could have driven straighter.
Thanks Ryan.

When you commanded rapid evasive maneuvers, did it consistently behave as expected1? Do you have some videos?


1 i.e. "as expected" according to kinematic calculations.

Last edited by Ether : 28-10-2014 at 20:21.
  #24   Spotlight this post!  
Unread 29-10-2014, 10:04
RyanShoff RyanShoff is offline
Registered User
FRC #4143 (Mars Wars)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2012
Location: Metamora, IL
Posts: 147
RyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to behold
Re: Jaguars and FAST PID Looptimes

http://www.thebluealliance.com/match/2014wimi_qf3m1
This is high def match video from Wisconsin. It ended up 3 vs 1 so we have lots of room to drive around at the end.
__________________
Ryan Shoff
4143 Mars/Wars
CheapGears.com
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 13:47.

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