Go to Post it isn't about the technology but about the teams working together. Sneaky GDC has done it again. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #22   Spotlight this post!  
Unread 18-03-2010, 00:09
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: encoder for cam-driven kicker?

A quick look at the C++ WPILib Encoder class source code suggests that it uses a 32-bit register (INT32) in the FPGA. There is no accounting for overflow that I see (but you might have a tough time overflowing 32 bits in a match with a reasonable application). You can reset the count with the Reset Function (it actually strobes a reset line). Since you probably will not overflow it you might as well just mod the encoder count by the number of ticks in a full cam revolution (plus whatever offset you need to find your stoping spot).
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
Reply With Quote
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: 2252 kicker cam EIT2 Extra Discussion 1 16-02-2010 07:51
pic: Winch for Kicker MrForbes Extra Discussion 10 10-02-2010 10:42
pic: KICKER FOR 1322 joeweber Extra Discussion 12 26-01-2010 16:45
Event Driven Development for FRC-Java spartango Java 5 05-01-2010 11:52
Looking for miniDV cam MattK Chit-Chat 3 31-01-2006 20:32


All times are GMT -5. The time now is 19:59.

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