Go to Post Mentoring is HARD. - Akash Rastogi [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 20-01-2008, 11:02
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Acceleromter: totally Hopeless

Yeah, I've never used the accelerometer before and i have no idea how to code it. I tried to search for other threads, but most had very specific questions. Is there any code by kevin watson designed for use with the accelerometer, or should i somehow alter the gyro code. Any help would be greatly appreciated.
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
  #2   Spotlight this post!  
Unread 20-01-2008, 13:31
CyDrive's Avatar
CyDrive CyDrive is offline
Registered User
FRC #1203 (pandemonium)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: West Babylon
Posts: 26
CyDrive is an unknown quantity at this point
Re: Acceleromter: totally Hopeless

The accelerometer is very similar to the gyro. First you would want to calculate a bias like the gyro has. Then use ADC to grab the input from the analog input and minus the bias from it. This way you get a variable containing no background noise. Well almost no background noise. Now the number you get is returned in milivolts. 1000mv = 1g. There is code on chiefdelphi that has most of these functions already done. Use the search feature.
  #3   Spotlight this post!  
Unread 20-01-2008, 13:40
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: Acceleromter: totally Hopeless

ok i found some. if anyone reading needs some code, this is what i found:http://www.chiefdelphi.com/forums/sh...82&postcount=5

EDIT: to complie, include the files, and comment out:
Code:
#include "ifi_aliases.h"
#include "ifi_default.h"
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."

Last edited by paulcd2000 : 20-01-2008 at 14:10. Reason: More info:
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
Totally confused Justin Brooks Pneumatics 2 16-01-2007 15:22
Totally useless trivia fact... dlavery Chit-Chat 35 08-04-2006 06:06
to Anton , from totally anal Tom archiver 2001 1 24-06-2002 01:15
OK...so I'm totally out of the loop... Markfuscius 3D Animation and Competition 8 03-02-2002 02:39


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

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