Announcement

Collapse
No announcement yet.

Roadrunner GPS in c#

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roadrunner GPS in c#

    I'm using roadrunner.sdk in c# by using the following code:

    Code:
    SDKType = System.Type.GetTypeFromProgID("RoadRunner.SDK");
    SDK = System.Activator.CreateInstance(SDKType);
    
    String winamppath = RRCom("GetInfo", "=$WINAMPPATH$")
    
    private String RRcom ( cmd, message )
    {
    Object o = SDKType.InvokeMember(cmd, System.Reflection.BindingFlags.InvokeMethod, null, SDK, new object[] { message });
    return (string) o;
    }
    I'm trying to do the same thing w/ Roadrunner.GPS. This is what i'm trying:

    Code:
    String cmd = "GetInfo";
    String message = "lat";
    SDKType = System.Type.GetTypeFromProgID("RoadRunner.GPS");
    SDK = System.Activator.CreateInstance(SDKType);
    Object o = SDKType.InvokeMember(cmd, System.Reflection.BindingFlags.InvokeMethod, null, SDK, new object[] { message });
    i get the following exception:
    - $exception {"Unknown name. (Exception from HRESULT: 0x80020006 (DISP_E_UNKNOWNNAME))"} System.Exception {System.Runtime.InteropServices.COMException}


    any ideas how to get lat and long from Roadrunner?
    Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

  • #2
    I wouldn't touch .net with a 14 foot pole.. but if you can't get the COM method to work, you should try the SendMessage method.. other than that, I'd just use Xport and read the GPS directly.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

    Comment


    • #3
      but i got roadrunner.sdk to work well. i figured it was just a different command and message.
      Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

      Comment


      • #4
        Actually, know what would be awesome? if road runner had built in GPS logging. That's all i really want. Store the lat/long and the time to a text file.
        Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

        Comment


        • #5
          There's a plugin for that, also, MM and most GPS software have support for that.

          Anyway, if the .SDK works, it's the same thing for the .GPS one.. it's read-only properties though, there are no methods or functions to "call" -- which should be simpler really.. so I'm not sure the syntax of the code should be the same from c# -- but knowing you want to read properties (and not make function/sub calls) may help you locate the proper syntax on some example in the web reading properties of COM objects.
          Ride Runner RR's Myspace

          "Being happy is not about having what you want, it's about wanting what you have."
          "The best things in life are always free - but that doesn't mean money can't buy you good things."

          Comment


          • #6
            i just noticed that xport logs gps data, but in the nmea format, not lat/long. i can probably pull the points out of it. Otherwise, i'll use MM.
            Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

            Comment

            Working...
            X