Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[4652] Writing Your Own GPS Applications: Part 2

Last post 08-03-2007 10:11 AM by Schappi. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [4652] Writing Your Own GPS Applications: Part 2

    This thread is for discussions of Writing Your Own GPS Applications: Part 2.

    • Post Points: 25
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 05-13-2005 7:49 PM In reply to

    Love this product!...just 1 minor Logical ERROR

    This update may help save many lives!

    I love this product. Excellent Job on this product, Jon Person !. I'm really excited infact I am going to go buy and support
    your product 360%!... I just have to correct 1 minor error. I feel you should be aware or maybe your are already....don't know
    might have been a typo,... I'm not much of a C# coder but, I believe during the ParseGPGSV() function, which is suppose to
    parse the "Satellites in View" $GPGSV sentence.... If you look closesly. During the...  public bool ParseGPGSV(string sentence)

    Original Article: http://www.developerfusion.com/show/4652/4/
    Example Sentence: $GPGSV, 3, 1, 10, 24, 82, 023, 40, 05, 62, 285, 32, 01, 62, 123, 00, 17, 59, 229, 28*70

    Each Block consist of 4 words.. "24, 82, 023, 40"  ==  "PseudoRandomCode, Elevation, Azimuth, SignalToNoiseRatio"
    According to your Article... SNR values range from 0-50...where 50 means "Excellent Signal"...though SNR can go as high as  99,
    like you've stated.




    // Interprets a "Satellites in View" NMEA sentence -- section.
    //ERROR suspect

        Azimuth = Convert.ToInt32(Words[Count * 4 + 2]);
        SignalToNoiseRatio = Convert.ToInt32(Words[Count * 4 + 2]);
                                                                             // ^--- Logical Bug, I believe it should be ....

    //CORRECTION
        SignalToNoiseRatio = Convert.ToInt32(Words[Count * 4 + 3]);
                                                                             // ^--- This would be correct.


    Otherwise I believe it would return the same value from the Azimuth extraction. So you wouldn't get any SNR information to
    be able to base precision correctly. For the future of dependability and reliability of code production, I post this correction. As
    far as the Signal Strength of the satellites, within the Notification, of the Event call to,...

             SatelliteReceived ( PseudoRandomCode,  Azimuth,  Elevation, SignalToNoiseRatio );

    I believe it would generate incorrect results...to what ever is going to be done with the SNR variable.
    Please feel free to e-mail me at deciphered_scripturez@yahoo.com for additional details...I really Thank you, Jon Person, for
    your hard work and time put into this and I really would LOVE to help as much as possible...I believe in your product. !

    P.S. This update may save many lives! ... Can you imagine lets say for example, the next block of words over you had,
    "05, 62, 285, 32" in the example above, lets say you passed the third Word of 285 as the value I know 99 would be the highest possible value, but imagine the reliability of the signal being factored in the calculation based on the strength for precision. I assume maybe this would throw off a calculation significantly.

                                                                                                                                                                  Thank You,
                                                                                                                                                                   -- c_programming_guru
    • Post Points: 10
  • 03-14-2006 12:59 PM In reply to

    • AlexE
    • Not Ranked
    • Joined on 02-21-2006
    • United Kingdom
    • New Member
    • Points 45

    Re: Love this product!...just 1 minor Logical ERROR

    I spotted this slight error too and made the same correction as c_programming_guru.
    However this led to a new error as the final word in the string contained the checksum.
    ie in the example sentence

    $GPGSV, 3, 1, 10, 24, 82, 023, 40, 05, 62, 285, 32, 01, 62, 123, 00, 17, 59, 229, 28*70

    the final word would be 28*70
    this caused an error when trying to convert this to an int32 in the line

    SignalToNoiseRatio = Convert.ToInt32(Words[Count * 4 + 3]);

    My solution was to remove the checksum part of the sentence in GetWords, before splitting the sentence
     
        public string[] GetWords(string sentence)
        {
            //remove the final * + checksum
            sentence = sentence.Substring(0, sentence.IndexOf("*"));
            //now split it up
            return sentence.Split(',');
        }


    Assuming that I'm not talking out of my rear, I hope this proves useful
    Alex
     

























    • Post Points: 5
  • 03-23-2006 9:27 AM In reply to

    • AlexE
    • Not Ranked
    • Joined on 02-21-2006
    • United Kingdom
    • New Member
    • Points 45

    Convert the NMEA data to Ordnance Survey Grid References

    If you require Ordnance Survey Grid References, I have written an article on how to do so using NMEA data derived from Jon Person's excellent NMEAinterpreter class.

    GPS- Deriving British Ordnance Survey Grid Referece from NMEA data
    AlexE


    • Post Points: 5
  • 05-02-2006 8:11 PM In reply to

    • tugwell
    • Not Ranked
    • Joined on 05-02-2006
    • Canada
    • New Member
    • Points 10

    Re: [4652] Writing Your Own GPS Applications: Part 2

    Great paper.

     

    Thx very much.

    • Post Points: 10
  • 03-22-2007 1:59 AM In reply to

    • Maritime
    • Not Ranked
    • Joined on 11-06-2006
    • New Member
    • Points 45

    Re: [4652] Writing Your Own GPS Applications: Part 2


    Hello,
    I do not understand what you mean by writing your own GPS application, the most GPS receivers gives
    navigation data in real time as  UTC, Lat/Lon, SOG, TrueCourse, Magvar,Tracks,constellation sat.
    What we can get more with this application ?
     
     Best regards
     Maritime








    • Post Points: 5
  • 08-03-2007 10:11 AM In reply to

    • Schappi
    • Not Ranked
    • Joined on 08-03-2007
    • Germany
    • New Member
    • Points 5

    Re: [4652] Writing Your Own GPS Applications: Part 2

    schappi wrote:

    Great paper.



    Thx very much.

    • Post Points: 5
Page 1 of 1 (7 items)