Go to Post Every game design should be a means to an end. - Mark McLeod [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 30-01-2016, 15:49
CSkillet CSkillet is offline
Registered User
FRC #0135
 
Join Date: Jan 2016
Location: Indiana
Posts: 11
CSkillet is an unknown quantity at this point
Getting Motor to update faster

So I'm having trouble getting values from a motor at a fast pace. I have a Talon hooked up to a motor which is hooked to an Encoder with the idea that I can eventually do PID. Basically I have a program where I log the encoder Velocity along with time. The time updates pretty fast, about every .01 seconds, but the encoder velocity updates every .1 seconds, so the encoder velocity value is the same for ten iterations of time. I have been experimenting with setExpiration() and SetSafetyEnabled() and none of that has worked. I changed the expiration time to .01 figuring that the motor would update every .01 seconds but that didn't work. I was wondering if I had to use EnableControl(). Any Ideas?
 


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 20:07.

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