Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Online Python compiler (interpreter) to run Python online.
- #!/usr/bin/python
- #input your values
- wb=2.500
- orig_cg=0.38
- new_cg=0.38
- z_offset=-0.1
- d = (wb * (orig_cg - new_cg)) + z_offset
- print(d ,"#new graphical offset if cog change")
- #lets try basey
- #Distance of CG from the center of the wheel in meters.
- #Rear Wheel Radius-BASEY=Rear CoG
- #Actual CG height =(FWR-FBasey)+(-Rbasey))/CG_LOCATION%
- # CG_LOCATION% = FRONT COG % in car.ini
- #FWR - BASEY = FCoG [solve for BASEY]
- fwr=0.3048
- orig_cg= 0.38
- #fBASEY formula here
- fBASEY = (fwr * orig_cg)
- print (fBASEY, "#front BASEY") #debug
- #RWR - BASEY = RCoG [solve for BASEY]
- rwr= 0.3556
- rcog= 0.63
- #rBASEY formula here
- rBASEY = (rwr * rcog)
- print (rBASEY, "#rear BASEY") #debug
- #(FWR-FBasey)+(RWR-Rbasey))/CG_LOCATION% = Actual CG height
- # wtf is this number? = Actual CG height
- aCoGh = (fwr-fBASEY) + (rwr-rBASEY) / orig_cg
- print (aCoGh, "#actual CG height")
Advertisement
Add Comment
Please, Sign In to add comment