Go to Post If you cannot complete relatively simple tasks, why would anyone assign you something more challenging?? - Chris Fultz [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 01-04-2005, 23:27
nobtiba nobtiba is offline
Registered User
no team
 
Join Date: Aug 2004
Location: VIETNAM
Posts: 14
nobtiba is an unknown quantity at this point
What to do next?

I have now gyro.c and gyro.h (and all navigation.zip too!) but can you tell me what software and hardware I have to take to make it work?
All I have now: ADXRS150, uC: ATMEGA8535 with 10bit ADC, superior loader to load program into uC. I also have a software which I wrote in Turbo C and it can receive data from ADXRS150 gyro through ADC of uC. It can measure voltage by software very exactly but when I change to angular it not exactly:
real 10 degree but value in software only :9.89
real 20 degree but value in software only :14.5
real 30 degree but value in software only :20.3
May be it cause of intergration in my software. I didn't measure the interval between a sample and the next exactly.
So I want to try another method as Kevin use here.
And again, I want to know what software, hardware I need to have and what to do next?
  #2   Spotlight this post!  
Unread 03-04-2005, 18:54
Ben Margolis Ben Margolis is offline
Programmer Boy
no team
 
Join Date: Mar 2005
Rookie Year: 2005
Location: San Bruno, CA
Posts: 9
Ben Margolis is a glorious beacon of lightBen Margolis is a glorious beacon of lightBen Margolis is a glorious beacon of lightBen Margolis is a glorious beacon of lightBen Margolis is a glorious beacon of lightBen Margolis is a glorious beacon of light
Re: What to do next?

As long as your samples are occuring consistently, you should be able to have a consistent error, which you seem to have, although I'm just eye-balling the numbers. I would try tweaking the gyro calculation constant (I believe thats what Kevin calls it).

The gyro gives whatever rate of rotation it has at the time of the call. Rate wise, it will always be accurate. If you don't call it quickly enough (your question), you may miss subtle changes. This is important because you are integrating the rate. Not having the smoothest slope (or as many samples of gyro rate) means you MAY be losing accuracy due to that. However, the processor works so darn fast, and our robots move so relatively slow, that I doubt that sample rate is the cause of your problem.

I hope I've made sense....
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


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

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