Go to Post I am surprised at the relative conservative capability you described on our 2006 machine. As for the 2007 machine, in anticipation of an aquatic game, we have completed a robot that "walks on water" and are well along with one that can "part the sea". - Bill Beatty [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 02-17-2009, 04:20 AM
vamfun vamfun is offline
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 02-28-2009, 05:58 PM
vamfun vamfun is offline
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 01-25-2009 06:14 PM
Using WPILib RyanW Programming 1 01-19-2008 05:15 PM
Problem using VEX shaft encoder jskene Programming 15 10-28-2007 10:33 PM
Encoder Problem DustinB_3 Programming 22 01-03-2007 08:42 PM
Strange Encoder Problem AIBob Electrical 3 02-20-2005 10:20 PM


All times are GMT -5. The time now is 10:08 AM.

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