Go to Post Do you know how, say, Native American cultures were kept? They had storytellers, sages, and the like. They passed on their legends and culture to the next generation. So will we. - EricH [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
  #4   Spotlight this post!  
Unread 10-02-2003, 01:38
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
No, it is scaled to sensor_counts / degree. Sensor_counts are the values from the analog input. These (and loops) are dimensionless.

If the machine is turning at one degree per sample time, then the analog input will read 127+53 each time it is sampled.

If it is moving slower (I hope it is, that's FAST!), then the number will be smaller. This means that each time thru the loop, the new motion will be less than 1 degree, so you have to accumulate in smaller units. You can accumulate these "sensor_counts" until there is enough to total at least one degree. Then you increment the degree counter, and subtract 53 from the sensor_counts accumulator.

The logic for values less than 127 (turning the other way), is left as an exercise for the reader(s).
__________________
Don Reid
 


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
Anyone know where to buy a spare yaw rate sensor? Jim Meyer Technical Discussion 11 30-03-2003 21:18
Aux Fuse 3 (Yaw Rate) Josh Hambright Electrical 0 18-02-2003 08:22
Yaw rate sensor (gyro for the layperson) Kris Verdeyen Rules/Strategy 4 14-01-2002 00:41
Yaw Rate Sensors dense Technical Discussion 4 10-01-2002 08:28
Yaw Rate Sensor ImmacGirl_03 Technical Discussion 2 10-12-2001 15:15


All times are GMT -5. The time now is 16:27.

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