Go to Post Unlike robot design, in the clothing world there's no such thing as too much pocketing - Jaci [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 10-12-2007, 10:15
charlie1218 charlie1218 is offline
Registered User
FRC #1218
Team Role: Coach
 
Join Date: Jan 2006
Rookie Year: 2005
Location: PHILADELPHIA
Posts: 55
charlie1218 will become famous soon enoughcharlie1218 will become famous soon enough
Question Help with Angles and distance

I am programming a GPS bot. I am getting to sets of (x,y) one being my current location and the other being the destination. I need to do trig in easy c to get the robot to know at what angle to travel and for what distance. I know how to do this trig on paper but have NO IDEA on how to program this. My advisor has given me the task, and I have little if any knowledge of advanced easyC. I know that i will need to do an inverse tangent([X2-X1]/[Y2-Y1]) to get my angle of heading, and to get my distance i need sq rt([X2-X1]^2 + [Y2-Y1]^2). So as you can see, I know what I need to do, but have no idea on how to put this in terms of EasyC. I also know that I will need trig lookup tables and have NO IDEA on how to use them.
 


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
White Paper Discuss: Measuring Distance with Analog Potentiometers Daniel Extra Discussion 4 26-11-2008 13:52
Long distance network help needed Simon Strauss IT / Communications 16 26-07-2007 10:19
Encoder Help with VEX and MPLAB qnetjoe Programming 5 11-03-2007 21:04
How do I get distance between Camera and the target? sjung9442 Programming 5 27-01-2006 09:44
Help with Autocad and Bryce 5 Keith Chester Inventor 0 25-03-2002 17:33


All times are GMT -5. The time now is 08:59.

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