Go to Post So yeah, everyone please remember that lathes are one of the most dangerous machine tools you'll encounter. And keep your hand on the chuck key whenever it's in the chuck. If you never let it go till it's out of the chuck, it's stupendously less likely to take flight. - Kevin Sevcik [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 12-02-2010, 23:10
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Motor declarations break analog module

Why did you choose to set the average bits to 30? By my calculations, you'll get a new value every 4 hours or so (if the FPGA even supports a value that large). A more reasonable value is 10, which will get you updates at about 50hz.

If you actually wanted it to average 30 samples, you should set the average bits to 5, since 2^5 is 32.

Last edited by Joe Ross : 12-02-2010 at 23:16.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2010, 23:37
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Motor declarations break analog module

I beleieve the person who put that in thought that 30 bits=30 samples, or she might have just been testing an extreme amount because we were having problems with noise on the input. I have to check with her, though. In any case, the FPGA seems to be limiting it to a more reasonable number since the update rate is at least 10 hz.
__________________
Get yer robot source code here!
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2010, 22:59
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Motor declarations break analog module

And it is fixed!

What happened, we believe, was that the 30-bit averaging, combined with the motor stuff, was using too much FPGA memory and the errors that we were getting were the result of an out-of-memory condition. The system now works after we reduced the averaging bits to 10.
__________________
Get yer robot source code here!
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
Open motor reference on Slot 6 DIO Module trilogy2826 NI LabVIEW 2 27-01-2009 08:42
spring break thatphotochick Chit-Chat 6 29-03-2006 17:41
Taking apart the motor control module Adam Y. FIRST Tech Challenge 1 15-04-2005 14:02
Module 7 gear -- fischer price motor archiver 2001 6 23-06-2002 22:55
DC Motor current to an Analog Input junkyarddawg Motors 43 04-04-2002 15:53


All times are GMT -5. The time now is 15:17.

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