Narazil som na problem , neviem ktoru funkciu mam prepisat aby fungovala.
Povodny program pouziva starsi algoritmus. Zrejme tri atributy pocita cez jeden vzorec,ale ja mam 3 odlisne vzorce.
Vsetko sa nachadza v Suboroch Utils.ccp a utils.h
nove vzorce:
HandlingCent = HandlingPerformancePart*RATIOCENT
AccelerationCent = AccelerationPerformancePart*RATIOCENT
TopSpeedCent = TopSpeedPerformancePart*RATIOCENT
Fragment = RATIOFIRST/(((HandlingCent+AccelerationCent+TopSpeedCent)*TWO HALFTHREE)+RATIOFIRST)
HandlingFragment = Fragment*TopSpeedCent
AccelerationFragment = Fragment*AccelerationCent
TopSpeedFragment = Fragment*HandlingCent
TopSpeedTotal2 = FLOOR((((RATIOFIRST-HandlingFragment)-AccelerationFragment)-TopSpeedFragment)*topspeed+((t_hnd_t1*HandlingFrag ment)+(t_acc_t2*AccelerationFragment)+(t_tsp_t3*To pSpeedFragment));1)
AccelerationTotal2 = FLOOR((((RATIOFIRST-HandlingFragment)-AccelerationFragment)-TopSpeedFragment)*acceleration+((a_hnd_a1*Handling Fragment)+(a_acc_a2*AccelerationFragment)+(a_tsp_a 3*TopSpeedFragment));1)
HandlingTotal2 = FLOOR((((RATIOFIRST-HandlingFragment)-AccelerationFragment)-TopSpeedFragment)*handling+((h_hnd_h1*HandlingFrag ment)+(h_acc_h2*AccelerationFragment)+(h_tsp_h3*To pSpeedFragment));1)
Zrejme bude treba definovat nove nazvy cez int alebo?...
zdrojak
https://github.com/zmarek20/QtNFSWTuningCalculatorLatest
Mam pocit ako keby bolo nieco definovat. Neviem ci bude mozne vlozit 3 riadky do return fukncie.
na velmi presnom principe pracuje aj NFSWorld v Performanceshop pri vypocte statistiky vykonu auta.
https://mega.nz/#!ihBXQAhK!iBAN5j5Dbp4LPObPMQHmB-RwHPmTXA9hXKRU3XiIh30
z toho dokumenta by som chcel preniest ten cely proces vypoctu do QT