Go to Post Do you think it's important? Is it actually possible for the students to change the lives of the mentors? - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 17-02-2009, 04:20
vamfun vamfun is online now
Mentor :Contol System Engineer
AKA: Chris
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2003
Location: Van Nuys, California
Posts: 182
vamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of light
Send a message via AIM to vamfun
WPILIB Encoder SetMInRate() Problem

When we use the GetRate() wpilib encoder method, the rate works except that we get an "inf" value when the encoders are still. The SetMinRate() or SetMaxPeriod() methods should force the output to zero the way I understand it. We tried both but still get the "inf" with the printout.

We use C++ and use this in the constructor:
encoder->SetMinRate(1.); //to set min rate to 1 in per second

Any ideas?
Reply With Quote
  #2   Spotlight this post!  
Unread 28-02-2009, 17:58
vamfun vamfun is online now
Mentor :Contol System Engineer
AKA: Chris
FRC #0599 (Robodox)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2003
Location: Van Nuys, California
Posts: 182
vamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of lightvamfun is a glorious beacon of light
Send a message via AIM to vamfun
Re: WPILIB Encoder SetMInRate() Problem

This has been addressed at
http://forums.usfirst.org/showthread...7884#post27884
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Screwing Encoder into Encoder Mount? Adrien Electrical 3 25-01-2009 18:14
Using WPILib RyanW Programming 1 19-01-2008 17:15
Problem using VEX shaft encoder jskene Programming 15 28-10-2007 22:33
Encoder Problem DustinB_3 Programming 22 03-01-2007 20:42
Strange Encoder Problem AIBob Electrical 3 20-02-2005 22:20


All times are GMT -5. The time now is 02:46.

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