Go to Post One of these years, the game piece will be an actual red herring. - Taylor [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2008, 02:12
RJohnston's Avatar
RJohnston RJohnston is offline
Registered User
FRC #1620 (Robolution)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Pickering, ON
Posts: 3
RJohnston is an unknown quantity at this point
Accelerometer functions

I noticed there are GetVelocity and GetDistance functions in the library that are not documented, and if I call them (int GetDistance(unsigned char port) assumed for example), the values are always increasing even though the GetAcceleration values appear to be read perfectly fine.

Brad, please provide the docs for how to use these functions. I have initialized and started the accelerometer in question.

Thank you Brad, WPILib is working great for our team and has certainly simplified teaching the students how to program the robot and teach them C at the same time.
  #2   Spotlight this post!  
Unread 12-02-2008, 09:13
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Accelerometer functions

Quote:
Originally Posted by RJohnston View Post
I noticed there are GetVelocity and GetDistance functions in the library that are not documented, and if I call them (int GetDistance(unsigned char port) assumed for example), the values are always increasing even though the GetAcceleration values appear to be read perfectly fine.

Brad, please provide the docs for how to use these functions. I have initialized and started the accelerometer in question.

Thank you Brad, WPILib is working great for our team and has certainly simplified teaching the students how to program the robot and teach them C at the same time.
I tried very quickly to make those work, but there was too much error accumulation doing the integration and double integration. So the functions should have been removed, but it never happened. You're welcome to play with it, but I wouldn't count on getting usable data. Sorry about the confusion.

I think to really work it needs some more serious filtering to get reliable numbers.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #3   Spotlight this post!  
Unread 12-02-2008, 11:06
RJohnston's Avatar
RJohnston RJohnston is offline
Registered User
FRC #1620 (Robolution)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Pickering, ON
Posts: 3
RJohnston is an unknown quantity at this point
Re: Accelerometer functions

Thank you for looking into it. As time is short, we will have to stick with a gear tooth sensor for now. Too bad, it would have been an interesting application for data collection on the robot's movement as well.

Thank you for the effort though.
  #4   Spotlight this post!  
Unread 03-05-2008, 11:23
dgitz dgitz is offline
Registered User
FRC #2219
 
Join Date: Apr 2008
Location: Carbondale, IL
Posts: 9
dgitz is an unknown quantity at this point
Re: Accelerometer functions

Did this ever get looked into more? Where can I download these functions? I don't have WPilib, just MPlab. I have some experience with Kalman filters, and could take a look at this to get working better.
Closed Thread


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
Camera functions. winners Programming 1 21-01-2006 19:42
Auton + Functions ten3brousone Programming 0 27-02-2005 20:11
Cordic functions... Zalumaskov Programming 1 13-02-2005 00:58
Trigometric Functions cibressus53 Programming 4 25-10-2004 21:49
subs/functions maDGag Programming 2 16-02-2003 23:27


All times are GMT -5. The time now is 23:49.

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