• You don't get fast in order to take part in club races, you take part in club races to get fast!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. #GiveAwayFriday. Win a copy of F1 2017 - The Game. Click here to join.

Apps Steering Input Display (Esotic Mod) V1.2

steering input display app from dJomp with a few modifications

  1. Esotic

    Esotic
    Premium

    Messages:
    432
    Ratings:
    +280
    Esotic submitted a new resource:

    Steering Input Display (Esotic Mod) - steering input display app from dJomp with a few modifications

    Read more about this resource...
     
  2. Esotic

    Esotic
    Premium

    Messages:
    432
    Ratings:
    +280
    @Vanisch @Trinacria

    I tried a few changes to the colors, but so far I've not found anything I personally like. When I'm driving during practice or a race I'm rarely trying to read the numbers. The exception would be maybe during a long straight when the colors are in the orange, yellow, green or aqua ranges (something within 2 KMH of previous fastest). I feel like all those colors are easy to read. Anything in the red/blue ranges is far enough off that I've probably not found good consistency with the preceding corner(s). Below is the code that defines the colors being used:

    colors = {
    "white" : [255, 255, 255],
    "yellow" : [255, 255, 0],
    "green" : [2, 221, 20],
    "red" : [252, 35, 35],
    "purple" : [255,0,255],
    "aqua" : [0,255,255],
    "violet" : [255,150,255],
    "blue" : [0,0,255],
    "orange" : [255,140,0]
    }

    There's some more logic that decides when to use each color:

    if False: # LapValid == 0 or (TimeOfLastOff > 0.0 and ((currentTime - TimeOfLastOff) < 5000.0)):
    #not relevant for this app?
    displayLabel.setFontColor(*rgb(colors["purple"], alpha))
    #ac.setFontColor(displayLabel, *rgb(colors["purple"], alpha))
    elif numDelta < -2.0:
    displayLabel.setFontColor(*rgb(colors["red"], alpha)) #red
    #ac.setFontColor(displayLabel, *rgb(colors["red"], alpha))
    elif numDelta < -1.0:
    displayLabel.setFontColor(*rgb(colors["orange"], alpha)) # orange
    #ac.setFontColor(displayLabel, *rgb(colors["orange"], alpha))
    elif numDelta < 0.0:
    displayLabel.setFontColor(*rgb(colors["yellow"], alpha)) # yellow
    #ac.setFontColor(displayLabel, *rgb(colors["yellow"], alpha))
    elif numDelta > 2.0:
    displayLabel.setFontColor(*rgb(colors["blue"], alpha)) # blue
    elif numDelta > 1.0:
    displayLabel.setFontColor(*rgb(colors["aqua"], alpha)) # aqua
    else: # > 0 < 1.0
    displayLabel.setFontColor(*rgb(colors["green"], alpha)) # green
    #ac.setFontColor(displayLabel, *rgb(colors["green"], alpha))

    Editing the values and logic should be pretty straight forward. If you come up with changes that you consider more appropriate I'd be happy to take your changes and add them as options. :)

    Cheers,

    Dave\Esotic
     
  3. schnipp

    schnipp

    Messages:
    243
    Ratings:
    +122
    Great idea.
    Would it be possible to switch/fade-out the circle so it's invisible above a certain speed?
    I don't really need the info while driving, but it's a very nice feature for the race starts.
     
    • Like Like x 1
  4. Esotic

    Esotic
    Premium

    Messages:
    432
    Ratings:
    +280
    This sounds pretty straight-forward to code, and I've added this to my ToDo list.
     
    • Like Like x 1
  5. Esotic

    Esotic
    Premium

    Messages:
    432
    Ratings:
    +280
  6. Esotic

    Esotic
    Premium

    Messages:
    432
    Ratings:
    +280
    @schnipp please note the V1.1 has the feature you've requested.

    Cheers,

    Esotic
     
    • Love Love x 1
  7. schnipp

    schnipp

    Messages:
    243
    Ratings:
    +122
    Thank you.
    I'll install it now.
     
  8. schnipp

    schnipp

    Messages:
    243
    Ratings:
    +122
    It works great:



    Set it to 30 kph.
     
    Last edited: Jun 10, 2017
    • Like Like x 1
  9. schnipp

    schnipp

    Messages:
    243
    Ratings:
    +122
    Quick question, if I want to adjust the allowed zone before the circle turns red is it enough to change this:

    Code:
            if (degrees < -10 or degrees > 10) and SpeedKMH < 1.0:
                showRed = True
    to this:

    Code:
            if (degrees < -25 or degrees > 25) and SpeedKMH < 1.0:
                showRed = True
    or do need to adjust other things too?
     
  10. Esotic

    Esotic
    Premium

    Messages:
    432
    Ratings:
    +280
    That looks right to me.
     
    • Like Like x 1
  11. Esotic

    Esotic
    Premium

    Messages:
    432
    Ratings:
    +280
    @leon_90 I do realize that not everyone is a coder, and I have not gotten around to creating an INI for this app yet, but if you open up the .PY file and look for the "setBackgroundOpacity" in the acMain, you can do something like this:

    ac.setBackgroundOpacity(appWindow, 0.7)

    The opacity can be anything between 0.0 and 1.0, with 0 being fully transparent and 1.0 being fully opaque.

    :)

    Cheers,

    Esotic
     
  12. leon_90

    leon_90

    Messages:
    216
    Ratings:
    +109
    Thanks for the help ;) however I tried but this setting seems to be doing nothing :( I put 1 to drawborder instead, just to help me locate it better, but opacity does not work alas
     
  13. Esotic

    Esotic
    Premium

    Messages:
    432
    Ratings:
    +280
    @leon_90 I forgot to check, and there is another instance of ac.setBackgroundOpacity(appWindow, 0) in the drawWheel routine, and that's the one that is doing the majority of the work. Sorry for not checking this the first time around (my coffee had not kicked in yet when I posted this morning). :p
     
  14. leon_90

    leon_90

    Messages:
    216
    Ratings:
    +109
    Thanks, now it worked great! Gonna change my review in 5 star plus plus (ok just 5 star technically :D )
     
  15. Esotic

    Esotic
    Premium

    Messages:
    432
    Ratings:
    +280
    Esotic updated Steering Input Display (Esotic Mod) with a new update entry:

    now supports changing background opacity and app scaling

    Read the rest of this update entry...
     
  16. Esotic

    Esotic
    Premium

    Messages:
    432
    Ratings:
    +280
    @leon_90 Thanks for the review! Sounds like you've already beaten me to upgrading your personal copy of the code, but the V1.2 should help make this easier for anyone else that wants to set the background, or scale the app up/down.

    The new code would allow you to make the app square, so you don't have a bunch of extra background above the top of the "wheel". This is assuming you are using the pinHack to hide the AC app icons.
    squaresteering.jpg

    I always tuck my apps into the dash/cockpit, so I almost never notice that apps need a background opacity setting. :p
    ac_apps.jpg

    Cheers!

    Esotic
     
    Last edited: Jul 23, 2017
    • Love Love x 1