Time Logger in specific track points

Discussion in 'Apps' started by Eltar, Oct 3, 2022.

  1. Eltar

    Eltar New Member

    Joined:
    Oct 3, 2022
    Messages:
    3
    Likes Received:
    0
    Good day,

    I am actually a newbie on AC python. I was wondering what's the logic behind a logger that writes on a .txt each transit onto a specific point of the track (specified in the code).

    I found an app that logs info when a key is pressed, so I think it won't be hard to understand how to log information when the car crosses e.g. the position 0.23 (NormalizedSplinePosition).

    I tried to do so with an if statement inside acUpdate, but I am failing my attempts. Can anyone give me tips?

    Thanks a lot.
     
  2. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,117
    Likes Received:
    379
  3. Eltar

    Eltar New Member

    Joined:
    Oct 3, 2022
    Messages:
    3
    Likes Received:
    0
    Thank you for the quick reply. My question was concerning creating a custom application to log information in pre-set points (eg. Regularity rallies). I was trying to understand the code. Can I do it with ifs in the acUpdate? I'm not new into programming, but I have to understand how the functions run.

    [​IMG]
     
  4. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,117
    Likes Received:
    379
    Last edited: Oct 3, 2022
  5. Eltar

    Eltar New Member

    Joined:
    Oct 3, 2022
    Messages:
    3
    Likes Received:
    0
    You are right. I have to work within a range. I fixed the code and I managed to make it work as I wished.
     
  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