+ Reply to Thread
Results 1 to 5 of 5

Thread: Calculating Bearing and Elevation from GPS co-ords

  1. #1
    Wire Noob MistaGiggles's Avatar
    Join Date
    May 2007
    Posts
    27

    Default

    Hi

    I've been trying to make a turret that points towards where GPS co=ordinates are set. So far I can calculate the angle between 2 points by using Trig. I use Tan-1 or (atan in Gmod) on the values of Z2 - Z1, Y2 - Y1 and X2 - X1 to find differences for making triangle for trig, and getting the bearing using the Bearing, using atan = (Y2 - Y1)/(X2 - X1), and so on for Elevations, (though I don't know weather to use Y or X in the equation with Z for elevation). Now My problem is that I don't know what set up would be used for the Turret to decide which way it is facing in comparison the the Calculated bearing, and how the GPS(the one on the turret for Calc) should be attached, weither is should be welded on, or just set up at the side.

    So can anyone help with Setups, or if any od my Calculations are wrong ?

    Many Thanks


    Mattz

  2. #2
    Wire Amateur kalleguld's Avatar
    Join Date
    May 2007
    Location
    gm_construct
    Posts
    40

    Default

    The gyroscope should output precisely what you want: yaw is the bearing and pitch is the elevation angle.
    And you should consider welding on the GPS, as it makes it easier to move your contraption around. And it should be placed as close as possible to the gyro, to make the errors as small as possible.
    Isn't this the equivalent of "Let's introduce some bugs?"

  3. #3
    Wire Noob MistaGiggles's Avatar
    Join Date
    May 2007
    Posts
    27

    Default

    Thanks, I'll try that out later, and so what would your suggestion for working out the thrusters thrust depending on readings of Calcualted angle and GyroScope?

  4. #4
    Wirererer timas's Avatar
    Join Date
    Apr 2007
    Location
    Vennesla, Norway
    Posts
    151

    Default

    u could take a subrtact gate.. say the calculations say that pitch should be 30degrees and actual is 20degrees then u would get a -ten in the subtract, run it trough a sign gate and u have somthing to go from.. if i understood u correctly

    If you'd been listening you'd know that Nintendos! pass trough everything! - Colonel Jack. O'Niel
    Good news everyone!
    I have invented a device that makes your read this in your head, in my voice.

  5. #5
    Wire Noob MistaGiggles's Avatar
    Join Date
    May 2007
    Posts
    27

    Default

    Well, I actually meant, for the bearing; eg; I have a Value of 88 for the bearing calculated from some other gates (first post) and then I have a reading on my Gyro, showing which was the turret is facing, what would be the best way to find out wither it should be positive thrust, or negative thrust?

+ Reply to Thread

Similar Threads

  1. bearing elevation inputs for ranger?
    By andy4848 in forum Installation and Malfunctions Support
    Replies: 9
    Last Post: 08-25-2008, 04:20 PM
  2. Expression Bearing and Elevation
    By chinoto in forum Finished contraptions
    Replies: 7
    Last Post: 08-12-2008, 12:19 PM
  3. Calculating Bearing, Elevation, and Distance with vectors
    By GhostMX in forum Installation and Malfunctions Support
    Replies: 8
    Last Post: 08-11-2008, 02:20 PM
  4. Bearing and elevation out of vectors
    By Shockbolt in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 11-06-2007, 05:46 PM
  5. Calculating bearing?
    By thesage1014 in forum Installation and Malfunctions Support
    Replies: 7
    Last Post: 08-19-2007, 11:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots