View Poll Results: Do you think to use it ?

Voters
6. You may not vote on this poll
  • yes

    5 83.33%
  • no

    1 16.67%
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Elevation screen for RR

  1. #11
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,856

    Smile

    Quote Originally Posted by JohnWPB View Post
    It is actually pretty easy, being you are using a script to calculate the slider bars already.

    Put this line of code in your skin:

    S,725,77,70,447,720,77,60,447,v,01,"Bar.png",60,"$ ElevSlider$",

    Now, in your script you just need to set the limit of the $ElevSlider$ variable to be between 0 and 65535. For instance 32767 would be the very center, or the middle, of the slider.

    Being there are 20 steps of this slider, the formula to calculate it would be

    $ElevPosition = ($YourNumber * 65535)/20
    rr.Execute ("SetVar;ElevSlider;" & ElevPosition)

    Where your number is between 1 and 20. It is best to round the number up to 1 so there is no division or multiplication by 0.

    To test it to see how it works, its best to put that line in a skin, and in the skin tool fire the command SetVar;ElevSlider;32650. By changing that number you will see the slider move in the skin. Once you see that, it should be fairly simple to figure it out
    I am sorry but it is exactly that i do.

    I have that the the skin file:
    Code:
    S02,760,80,19,151,545,75,35,30,V,02,"",015,"$DISTANCESLIDER$",""
    and that into my autoit script:
    Code:
    global $distanceSlider = IniRead("Settings.ini", "Elevation", "distance", "");500
    global $multiplier = 65536/$distanceSlider
    $rr.execute("SETVAR;DISTANCESLIDER;"&$distance * $multiplier)

  2. #12
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,717
    Blog Entries
    1
    The difference is you are using the individual images in the "DistanceSliderImages" folder:
    slider_0.png
    slider_1.png
    slider_2.png
    slider_3.png.... all the way up to 20.

    With the dynamic slider line from above, all you need is a single image, the pointer.png. That single image "slides" up and down on the screen based on the variable.
    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

  3. #13
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,856
    Do you prefer that?
    Attached Files Attached Files

  4. #14
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,717
    Blog Entries
    1
    Ok, I guess I am lost here.... I thought this script was just to tell the slope that you were driving on, either going up a hill, or down a hill and how steep.

    What is the distance for, and why does distance need a slider?

    I was thinking the slider was for the slope itself. In the screen capture below, the red line is at 0[IMG]file:///C:/DOCUME%7E1/John/LOCALS%7E1/Temp/moz-screenshot.png[/IMG], this would mean that you are driving on level ground. If you go down a hill, that slider should move down the slider, depending on how steep the hill is.

    I still have no idea where the 5418% is coming from.... I have the GPS sitting on the desk next to me, so it is staying level. Should this not read 0%?
    Attached Images Attached Images  
    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

  5. #15
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,856

    Smile

    I have add a slider just for to do a slider test.
    It is the first time that i try to use a slider on a autoit script. The slider's setting is defined :
    distance=500 .
    With that setting the distance between the first point and le last point is 500m.
    Also, each 500m, the script give a new slope value.

    The slider give a distance, not an angle ! That would be a good idea to change that!
    I don't know if I am able to do that, but i can to try .

    The final script will have a specific GoogleMaps option who will give the slope of a track.

    The swf additions are just for a test. As you can see , they don't run on this screen.

    Can you try only on metre and say me if you have always a slope too big ? (> 45% is very dangerous !!!!)

  6. #16
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,856

    Smile Big update

    Thanks to JohnWPB for the slope slider idea.

    The vertical slider give the slope value between +45 and -45 with an alarm if the slope is higher than +-45 .

  7. #17
    Mod - all of it.
    Join Date
    Jul 2007
    Location
    Buena Park, So Cali
    Posts
    524
    For slope, this would be a great indicator option, and if one had the option to replace the Jeep with their own vehicle it would be even more cool.
    Attached Images Attached Images   
    CAR: 2007 G35 Sport Coupe 5AT
    HARDWARE: Dell D630 w/ dock, internal 80G HD, internal 320G HD, Verizon Wireless Card, iBlue GM-2 GPS w/iGuidance, OBDPros w/DashCommand, Visteon HD Radio w/ Home Made Cable, Current Version of RR w/ DFX Skin. My Install.

  8. #18
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,856

    Smile

    Version 0.4 is on the first post

  9. #19
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,348
    Quote Originally Posted by drewbp View Post
    For slope, this would be a great indicator option, and if one had the option to replace the Jeep with their own vehicle it would be even more cool.
    I bet Sonic could whip that up in a flash movie in a heartbeat!
    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

  10. #20
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,856

    Audi A4 B8 2008


Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 14
    Last Post: 09-11-2008, 04:14 PM
  2. Constantly removing the screen 7" lilliput advice
    By steveb in forum LCD/Display
    Replies: 10
    Last Post: 04-17-2007, 11:56 AM
  3. Cracked Touch Screen!
    By bmather9 in forum LCD/Display
    Replies: 5
    Last Post: 04-17-2007, 05:31 AM
  4. FAQ: LCD Technologies
    By dontpntpool in forum LCD/Display
    Replies: 4
    Last Post: 03-15-2007, 01:20 AM
  5. Replies: 4
    Last Post: 01-26-2006, 03:35 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
  •