Go to Post Gracious Professionalism is a compass, not a set of calipers. It should be used to guide what you do rather than to measure it. - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2013, 20:38
AliciaBos AliciaBos is offline
Registered User
FRC #3197 (HexHounds)
Team Role: Programmer
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Wisconsin
Posts: 1
AliciaBos is an unknown quantity at this point
Please Help with Encoder in C++!

We are trying to control the speed of a motor on our shooter mechanism with an encoder. We have researched up and down and still can't seem to find any simplified advice. We just switched from Lab View to C++ this year and we are all still learning. Does anyone have some sample code and/or an explanation of how to incorporate an encoder into a Command Based C++ program? Thank you!
-Alicia of Team 3197
  #2   Spotlight this post!  
Unread 14-02-2013, 21:19
Meshbeard's Avatar
Meshbeard Meshbeard is offline
Previously of 422
AKA: Jonas
FRC #0190 (190)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2006
Location: Richmond, VA
Posts: 25
Meshbeard is a name known to allMeshbeard is a name known to allMeshbeard is a name known to allMeshbeard is a name known to allMeshbeard is a name known to allMeshbeard is a name known to all
Re: Please Help with Encoder in C++!

https://github.com/wkunkel/422-robot...ms/Shooter.cpp

Here is our starting PID control system for our shooter. It has two wheels, with an encoder on each wheel. The encoder resolution is 256 ticks per revolution. This loop needs to be tuned (changing the P, I, and D constants), but it is functional starting code.
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 02:14.

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