Announcement

Collapse
No announcement yet.

Speedwatch

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

  • Speedwatch

    Is it possible to create an indicator or label to monitor the GPSSPD from GPS,
    and play a wav or flash an indicator when the selected speed is exceeded. I know some nav programs have this built in, but I would like to have it on a skin
    Mike
    Attached Files

  • #2
    Nobody have any idea, thought there would be someone clever out there, maybe its possible to incorporate this into the flash speedo

    Comment


    • #3
      I am sure it is doable.

      Not sure how to do it all in RoadRunner as I am not a RR skinner person, but I am sure someone will know.

      I know for a standalone application it would be really easy even with auto-it and then just sent that info to RR.

      Basically GPS doesnt tell speed, it tells location, so by differentiating what it gets in, you can get the speed. Then from there it is just a simple 1 liner "if speed is greater than user defined speed, then do blah".

      So if you can access the NMEA stream from RoadRunner which I am sure you can, then compare 2 values and take the difference in position over the distance in time of the2 points and bam you have speed.
      Fusion Brain Version 6 Released!
      1.9in x 2.9in -- 47mm x 73mm
      30 Digital Outputs -- Directly drive a relay
      15 Analogue Inputs -- Read sensors like temperature, light, distance, acceleration, and more
      Buy now in the MP3Car.com Store

      Comment


      • #4
        Too bad Skippy76 ,the originator of the GPS Volume code in RR isn't around. The same code for speed volume could probably be used with something akin to Blue Z3's RR application indicator plug-in to accomplish this easily.
        HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

        Comment


        • #5
          why don't u modify that flash file.. i mean you already have that speed value coming in from RR, compare it against ur speed limit and generate a warning sound.... by the way, nice looking skin how did you get to display st name and all?

          Comment


          • #6
            Originally posted by 2k1Toaster View Post
            I am sure it is doable.
            So if you can access the NMEA stream from RoadRunner which I am sure you can, then compare 2 values and take the difference in position over the distance in time of the2 points and bam you have speed.

            WOW! That is one way to do it I guess, it sure is the hard way though.

            In AUtoIt you can access RR's speed with:

            $rr = ObjCreate("RoadRunner.SDK")
            $MySPeed = RR.GetInfo("$GPSSPEED$")

            Then it is just a matter of some code to act upon it:

            If $MySPeed >55 then [Play an alert sound, switch screens or whatever you want it to do]
            Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

            My Fiero Build Thread

            Comment


            • #7
              Originally posted by brandensin View Post
              why don't u modify that flash file..
              Hi mate, the flash file is one I pinched from someone elses skin, thanks to whomever owns it. I know nothing about flash, maybe somone can take up the challenge.
              I want to have a few buttons with different speeds on them, and press the one that corresponds to the current speed limit, to have a selectable overspeed monitor

              The street and next turn info are custom commands from Freedrive.
              This skin I have created for 1024x768, I use it on a tablet pc, 10 in screen
              I will upload some screenshots when I get a chance
              John you are talking about stuff I know nothing about - autoit etc .That I leave to you experts. I will need to be taken through the process, step by step if neccessary.
              Thanks for your input
              Mike
              Attached Files

              Comment


              • #8
                Hey, i know nothing about flash, but let me play with it and ask guys around to get some help...

                well...
                no luck... Guys help me out...
                I've added this line to the script and it's complaining i can't use the function inside a conditional statement... wth..


                if (spd_tmp > 3){
                playSound("honk.wav", true);
                }



                Cannot have playSound or stopSound inside a conditional or loop in script:
                Scene_1:nSelfEvent (enterFrame, includingFirstFrame)
                Scene_1, line 17: playSound("honk.wav", true);
                Cannot have playSound or stopSound inside a conditional or loop in script:
                Scene_1:nSelfEvent (enterFrame, includingFirstFrame)
                Scene_1, line 17: playSound("honk.wav", true);


                --- these are the original code and i've added extra conditional statement to make a sound if overspeeding(great than 3) is detected...

                onSelfEvent (load) {
                stop();
                // gpsspd="160 km/h"; //used for testing only
                }
                onSelfEvent (enterFrame, includingFirstFrame) {
                tmpstr = _root.gpsspd;
                spd_tmp = tmpstr.slice(0,length(tmpstr) - 5); //get rid of " km/h" from end of speed

                gotoSceneAndStop("<current scene>",spd_tmp);
                if (spd_tmp <> 0) {
                nextFrameAndStop();
                }
                if (spd_tmp == 0) {
                gotosceneandstop("<current scene>",1);
                }
                if (spd_tmp > 3){
                playSound("honk.wav", true);
                }
                spd = _root.gpsspd;
                }

                Comment


                • #9
                  Maybe i need to create a custom event which calls playSound and call the event inside the conditional stm instead... Well... I don't know how..

                  Help me out yo!

                  Comment

                  Working...
                  X