Go to Post At least try to make sure other teams are aware of you. Don't be obnoxious, but don't be a wall flower either. - Joe Johnson [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
  #1   Spotlight this post!  
Unread 09-02-2003, 14:21
Bruce C.'s Avatar
Bruce C. Bruce C. is offline
Registered User
#0647 (The Cyber Wolf Corps)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Killeen, Texas
Posts: 65
Bruce C. will become famous soon enough
Yaw Rate Sensor to 90 degrees?

OK, I give up. I never claimed to be a programmer (I live in an analog world!) But I've been trying to figure out how to integrate the rotational velocity output of the gyro to degrees of heading information. All I really need to do is determine when I have completed a 90 degree turn, either to the right or the left.

I understand how the how the gyro works, how it interfaces to the analog port, and how the resulting bit count (0-254) relates to rotational velocity. I can even figure out how to sample that each loop cycle time (26 msec.) and accumulate delta_heading changes. What I can't figure out is how to do it WITHOUT FLOATING POINT MATH!

I know there must be a way to scale the gyro output and manipulate it with integer math to figure out when it has rotated 90 degrees, but I just have no experience with integer math.

Please, someone, how about a hint of the pbasic code required. Someone must have done this already?

Thanks,

Bruce C.
 


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