Go to Post Would all you teams please stop! My chin will be bruised for weeks from dropping on the floor so much. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-03-2016, 09:23
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,042
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: Automatic Differential/Motor Speed Compensation

Quote:
Originally Posted by RSNovi View Post
After turning the robot on the announcers would talk so long that the gyro would start drifting like crazy before the robots started. The reference library takes 5 seconds to calibrate the gyro. I wonder if that could be reduced.
It doesn't take 5 seconds to read the gyro and use that reading as a zero offset.


Reply With Quote
  #2   Spotlight this post!  
Unread 12-03-2016, 11:38
RSNovi RSNovi is offline
Registered User
FRC #6081
 
Join Date: Jan 2016
Location: Grass Lake
Posts: 12
RSNovi is an unknown quantity at this point
Re: Automatic Differential/Motor Speed Compensation

I know reading the gyro doesn't take that long, the calibration routine takes 5 seconds on the 450 gyro. That is when using the WPI class.

When it drifts it really takes off. I reset the gyro at the very beginning, but if it is already drifting it will be off a few degrees in a matter of a few seconds. Ideally I would like to calibrate the gyro in my autonomous init.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-03-2016, 11:57
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,042
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: Automatic Differential/Motor Speed Compensation

Quote:
Originally Posted by RSNovi View Post
I reset the gyro at the very beginning, but if it is already drifting it will be off a few degrees in a matter of a few seconds.
If you calibrate the gyro when it's cold, it will drift faster when it warms up.

Also make sure you have all vibration sources (like the compressor) turned off when you calibrate.

Or you could try this solution:

http://www.chiefdelphi.com/forums/sh...9&postcount=13
http://www.chiefdelphi.com/forums/sh...8&postcount=17


Reply With Quote
  #4   Spotlight this post!  
Unread 12-03-2016, 13:00
mark219 mark219 is offline
Programmer/Driver
AKA: Mark Szewczuk
FRC #0219 (Team Impact)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: United States
Posts: 12
mark219 is an unknown quantity at this point
Re: Automatic Differential/Motor Speed Compensation

We used a gyro to drive straight, by taking into account the change in angle and a constant value (a constant much like a P-value in a PID loop).
Reply With Quote
  #5   Spotlight this post!  
Unread 15-03-2016, 18:27
RSNovi RSNovi is offline
Registered User
FRC #6081
 
Join Date: Jan 2016
Location: Grass Lake
Posts: 12
RSNovi is an unknown quantity at this point
Re: Automatic Differential/Motor Speed Compensation

Quote:
Originally Posted by Ether View Post
If you calibrate the gyro when it's cold, it will drift faster when it warms up.

Also make sure you have all vibration sources (like the compressor) turned off when you calibrate.

Or you could try this solution:

http://www.chiefdelphi.com/forums/sh...9&postcount=13
http://www.chiefdelphi.com/forums/sh...8&postcount=17


I wonder if it would be better to bring the robot up to the course powered up so all of the electronics are warm. Then toggle the power after placement so the calibration is done while everything is somewhat warm.
Reply With Quote
Reply


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 10:17.

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