Go to Post With any dollar amount to invest I would be more interested in the number of individuals (students is too narrow) impacted than the number of teams created--after all, this is about people. - kramarczyk [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 30-01-2015, 12:34
2386programming 2386programming is offline
Registered User
FRC #2386 (Trojans)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Burlington
Posts: 34
2386programming is an unknown quantity at this point
Encoders With Motor Speeds

Hello, my team is programming the drive train for this years robot and all the gear boxes move at different speeds. We are trying to figure out a way to get a value from the encoders for inches per second per say, and then send readings to our talons making all the wheels spin at the same speed.
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2015, 12:35
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Encoders With Motor Speeds

Quote:
Originally Posted by 2386programming View Post
Hello, my team is programming the drive train for this years robot and all the gear boxes move at different speeds. We are trying to figure out a way to get a value from the encoders for inches per second per say, and then send readings to our talons making all the wheels spin at the same speed.
Are you using the new Talons or the older ones?
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2015, 12:39
2386programming 2386programming is offline
Registered User
FRC #2386 (Trojans)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Burlington
Posts: 34
2386programming is an unknown quantity at this point
Re: Encoders With Motor Speeds

We're using the old ones.
Reply With Quote
  #4   Spotlight this post!  
Unread 30-01-2015, 12:40
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Encoders With Motor Speeds

Quote:
Originally Posted by 2386programming View Post
We're using the old ones.
What programming structure are you using? Iterative, Sample, or Command?
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2015, 12:41
2386programming 2386programming is offline
Registered User
FRC #2386 (Trojans)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Burlington
Posts: 34
2386programming is an unknown quantity at this point
Re: Encoders With Motor Speeds

We're using an iterative structure
Reply With Quote
  #6   Spotlight this post!  
Unread 30-01-2015, 12:49
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is online now
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Encoders With Motor Speeds

Quote:
Originally Posted by 2386programming View Post
We're using an iterative structure
What you'll want to do is look at the Encoder class and make sure to configure the distancePerPulse. Then you will pass that encoder into a PIDController along with the motor you want to control with it.

Code:
PIDController leftFrontWheel = new PIDController(p, i, d, leftFrontEncoder, leftFrontTalon);
Reply With Quote
  #7   Spotlight this post!  
Unread 30-01-2015, 16:38
2386programming 2386programming is offline
Registered User
FRC #2386 (Trojans)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Burlington
Posts: 34
2386programming is an unknown quantity at this point
Re: Encoders With Motor Speeds

Great thank you! Is there any way that you could help and explain how a PID controller actually works in layman's terms?
Reply With Quote
  #8   Spotlight this post!  
Unread 30-01-2015, 17:07
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
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: Encoders With Motor Speeds

Quote:
Originally Posted by 2386programming View Post
Great thank you! Is there any way that you could help and explain how a PID controller actually works in layman's terms?
Watch this video.


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 13:34.

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