Shop OBEX P1 Docs P2 Docs Learn Events
String to Number method — Parallax Forums

String to Number method

J LudwigJ Ludwig Posts: 19
edited 2009-04-23 20:50 in Propeller 1
I'm looking for a method (or object) that would convert an ASCII string to an integer number.··Specifically, I want to use desired track, ground track, magnetic variation, and cross track error·from an NMEA string downloaded from a Garmin GPS in a navigation project.· In a recent post, StephanL38 referenced a StrToDec-method but I have been unable to locate it.

Thanks,
Jim

Comments

  • ProcessingData...ProcessingData... Posts: 208
    edited 2009-04-23 16:58
    Hmm, I Think I've seen something like that in FullDuplexSerialPlus. I'll try to find it.--.:ProccessingData...:.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Basic Stamp,···· Propeller,·· · SX,·· FUN!


    START:·
    >Proccessing Data. . . .··
    >Task Complete. . .·.
    >Saving Data. . . .
    >Entering SLEEP Mode. . . .
    >Signing OFF




    Post Edited (ProcessingData...) : 4/23/2009 5:11:28 PM GMT
  • ProcessingData...ProcessingData... Posts: 208
    edited 2009-04-23 17:08
    Here it is. (Attached) It is in *.TXT format so Propeller Tool shold be able to open it.--.:ProccessingData...:.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Basic Stamp,···· Propeller,·· · SX,·· FUN!


    START:·
    >Proccessing Data. . . .··
    >Task Complete. . .·.
    >Saving Data. . . .
    >Entering SLEEP Mode. . . .
    >Signing OFF


  • J LudwigJ Ludwig Posts: 19
    edited 2009-04-23 19:55
    ProcessingData,
    Thanks very much, I had not looked in the PLUS version of FDS.
    Jim

    I'm new to Spin and programming with methods and objects - most of my experience has been with 68HC11 and hex machine code.
  • simonlsimonl Posts: 866
    edited 2009-04-23 20:50
    You'll also find "numbers.spin" in the PropIDE - it has what you're looking for wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,
    Simon

    www.norfolkhelicopterclub.com

    You'll always have as many take-offs as landings, the trick is to be sure you can take-off again wink.gif
Sign In or Register to comment.