Results 1 to 2 of 2

Thread: HEX value for gear status

  1. #1
    Join Date
    Feb 2019

    Question HEX value for gear status


    I am writing a tool that harvests the telemetry data from the udp packet (type 0 which is car physics), and having some problem. I want to read out which gear the car is in currently.
    based on the downloadable official .hpp file:

    unsigned char sGearNumGears; // 45 1

    Which means from byte 45 i have to read 1 byte to gather the status. But even in float, or int it is giving me a number like 112, 127 etc... which i associated with the actual gears.

    BUT when I change car, the values are also changing. (for example N is not 127 but 98 etc...)
    Am I doing something wrong or the gear indicator hex value is based on individual cars, meaning I have to write it for all the cars..?

    I dont have issue with the speed and the rpm - i can extract them without issues, they are properly represented(they are also in the same packet)

    Thanks for the tips.

  2. #2
    Join Date
    Feb 2019
    Ok found the solution… at position 45 i just read simply the second character instead of both and then it is reporting the proper gear.
    The following 2 users likes this Post: Maskmagog, satco1066

Similar Threads

  1. Online race status
    By Lillglutas in forum Technical Help & Support (PS4)
    Replies: 2
    Last Post: 16-10-2017, 19:33
  2. Status on Patch for PCars 2 on PS4
    By Phantom Harley in forum Technical Help & Support (PS4)
    Replies: 12
    Last Post: 11-10-2017, 11:13
  3. L P Q R session status?
    By ChristsChinHair in forum Multiplayer
    Replies: 0
    Last Post: 25-09-2017, 09:42
  4. Accolade status in calendar
    By Timilios in forum Feature Suggestions
    Replies: 1
    Last Post: 03-11-2015, 15:43
  5. Multiplayer driver status etc
    By rtazz17 in forum Project CARS on Xbox One
    Replies: 2
    Last Post: 28-08-2015, 21:07

Posting Permissions

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