Results 1 to 3 of 3

Thread: gps speed based event

  1. #1
    MySQL Error scott_fx's Avatar
    Join Date
    Dec 2004
    Location
    Los Angeles Ca
    Posts
    3,995

    gps speed based event

    Hey guys,

    i'm very new to modifying skins but im having a great time with it. I have a special application that i'm not sure how to accomplish. basically I have a button that sets off a few different events (via mjsgadget's usb-io).

    is there a way that i can hit a button, have it set off 2 commands and then wait for the 3rd command once the gps speed goes above 5 mph?

    i have never done any programming so bare with me on this. i was looking in the skin commands doc and came across the following entries, but i'm not sure how to implement them.

    "IFVAR" - simple variable compare (equals or not equals only and string contains)
    ex. "IFVAR;myvar=5;DOTRUE<<DOFALSE"
    if myvar = 5 then "DOTRUE" would execute, else "DOFALSE"
    ex. "IFVAR;myvar<>1;DOTRUE<<DOFALSE"
    if myvar <> 1 then "DOTRUE" would execute, else "DOFALSE"
    ex. "IFVAR;MYVAR~#;TRUECODE<<FALSECODE"
    if MYVAR contains a "#" then "TRUECODE" else "FALSECODE"

    "GPSSPDN" - GPS Speed (Number only -- doesn't show Mi/h or Km/h) (Ride Runner Only)
    would it look something like this?

    /WedgeControl Buttons
    B,25,114,252,115,"IFVAR;GPSSPDN>5;wedgeadvanced"


    and how would how would i go about implementing the other two command before it?
    i have 3 variables in the ExecTbl

    1. "fillall"
    2. "setPP"
    3. "wedgeadvanced"


    B,25,114,252,115,"fillall||setPP||IFVAR;GPSSPDN>5; wedgeadvanced"
    New System in progress:
    M10k
    Phaze TD1500 ~> Dynaudio MD130
    Phaze TD1500 ~> Seas g18rnx/p
    Zapco Ref 500.1 ~ 12" tc-9
    Behringer DCX2496 ~ Envision Electronics psu
    Transflective Xenarc

    My Car Pc Install
    My Boat Pc worklog

  2. #2
    The Curator
    Auto Apps:loading...
    Blue ZX3's Avatar
    Join Date
    Aug 2004
    Location
    Chicago area,IL
    Posts
    5,079
    While not trying to plug my own plugin here but... this could be accomplished via the Global timer feature in my RRExtended PI. Found Here

    new btn code:

    B,25,114,252,115,"fillall||setPP||GblTmr_Add;gpsspdcheck;.5;checkspd"

    then add the cmd its gonna call every 1/2 sec to the exectbl.ini file

    "CheckSpd","IFVAR;GPSSPDN>5; wedgeadvanced"

    and on the end of your wedgeadvanced cmd add: GblTmr_Delete;gpsspdcheck. eg.. "wedgeadvanced","xxxxxxx||GblTmr_Delete;gpsspdchec k"


    What this does, is that when you click your btn, it creates the timer "gpsspdcheck" and sets it to run every 1/2 second, which will execute the checkspd cmd. Then the CheckSpd cmd checks your speed and when it is over 5, executes your wedgeadvanced cmd. At the end it deletes the gpsspdcheck timer as you only need it when you click your btn.
    RideRunner...The #1 FE, PERIOD.

    Current Project: DFXVoice [v1.0 Released]
    Next in line: RRMedia v2.0

    DFX 5.1.1 Skin
    Appstore Link

    My RideRunner Plugins
    RRMedia
    RRExtended
    DFXVoice

    "There are no bugs - only undocumented features."

  3. #3
    MySQL Error scott_fx's Avatar
    Join Date
    Dec 2004
    Location
    Los Angeles Ca
    Posts
    3,995
    ugh...for some reason i was never notified about your post. thanks! ill give it a shot
    New System in progress:
    M10k
    Phaze TD1500 ~> Dynaudio MD130
    Phaze TD1500 ~> Seas g18rnx/p
    Zapco Ref 500.1 ~ 12" tc-9
    Behringer DCX2496 ~ Envision Electronics psu
    Transflective Xenarc

    My Car Pc Install
    My Boat Pc worklog

Similar Threads

  1. Speed-based volume control?
    By bdqpdx2000 in forum DigitalMods (Scripts / API)
    Replies: 34
    Last Post: 03-14-2009, 04:45 PM
  2. Replies: 2
    Last Post: 05-02-2006, 01:14 AM
  3. Replies: 2
    Last Post: 08-31-2005, 06:01 PM
  4. Automated volume based on vehicle speed.
    By The Grinch in forum FrodoPlayer
    Replies: 14
    Last Post: 03-03-2005, 11:55 PM
  5. iGuidance: Speed based zoom script (need)
    By d_sellers1 in forum GPS
    Replies: 3
    Last Post: 10-25-2004, 06:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •