QUESTION Missing information

Discussion in 'Apps' started by Sk_Panda, Nov 18, 2021.

  1. Sk_Panda

    Sk_Panda New Member

    Joined:
    Apr 19, 2021
    Messages:
    7
    Likes Received:
    0
    I've read the AC Python documentation, but it looks like several interesting pieces of information are not available. For example, how do I get the type of session (practice, quali, race...) and the total number of laps / time remaining in the session?

    Also, what's the commonly used way to obtain the gap between two cars? I'm thinking of two ways:
    1) divide the lap into "microsectors" using the normalized spline position, then keep track of when each car passed each sector, then compute the difference between the two cars using the last microsector that was completed by the car behind;
    2) compute the normalized spline position distance (plus laps difference, of course) and compute a time based on the cars's speed, similar to the "real time" app.
    The first is cumbersome, the second is too much approssimate. Is there a better way?
     
  2. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    608
    Likes Received:
    220
    Last edited: Nov 19, 2021
  3. Sk_Panda

    Sk_Panda New Member

    Joined:
    Apr 19, 2021
    Messages:
    7
    Likes Received:
    0
    I've always wondered about sim_info. Is there an official/reference source for it? Or do I just cannibalize it from an existing app?
     
  4. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    608
    Likes Received:
    220
    use a different file- and class-name
    upload_2021-11-19_15-0-57.png
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice