Shop OBEX P1 Docs P2 Docs Learn Events
C Code for GPS — Parallax Forums

C Code for GPS

NWCCTVNWCCTV Posts: 3,629
edited 2014-09-09 13:07 in Learn with BlocklyProp
Just wondering if anyone has any SimpleIDE code for the PMB 648 GPS Module. I have some Spin code and I suppose I could attempt to convert it if necessary but I think I would still need a library for it, correct? I doubt Parallax will be doing anything for it since it has been replaced but if anyone knows where I could start I would appreciate some advice.

Comments

  • Ken GraceyKen Gracey Posts: 7,392
    edited 2014-09-08 21:04
    Hey Andy -

    The PAM-7Q GPS Module does have GPS code that runs in SimpleIDE:

    https://www.parallax.com/product/28509

    I'm wondering if it would work without changes on the PMB-648.

    Ken Gracey
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-09-08 21:13
    I will give it a try. What would it take to make Arduino code work in SimpleIDE?
  • dgatelydgately Posts: 1,630
    edited 2014-09-08 21:15
    Andy,

    I used spin2cpp to translate a GPSPropeller spin project that was developed from I.K
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-09-08 21:28
    Thanks, I will give this a try also.
  • SRLMSRLM Posts: 5,045
    edited 2014-09-09 05:38
    This code will break up a serial stream into individual NMEA strings.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-09-09 12:51
    @dgately, I get the following error at the end of compilation:
    Timeout waiting for ACK/NAK

    error: SendPacket DATA failed


    error: load failed

    I'm sure it is something simple but not sure what!!!
  • dgatelydgately Posts: 1,630
    edited 2014-09-09 13:07
    NWCCTV wrote: »
    @dgately, I get the following error at the end of compilation:

    I'm sure it is something simple but not sure what!!!

    Ah, you may need to reset the Project Options in SimpleIDE (requires being in Project View)... Board type should be for your particular propeller board (Activity Board? Seems that Activity Board SDXMMC does NOT work, here!). And, you'll need to reset the Memory Model to LMM or CMM or even any other one model once you'v changed the board type.

    As soon as I did the above, re-compiling worked without issue...


    dgately
Sign In or Register to comment.