Skip to content

Commit

Permalink
Changed chassis flex structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ohyeah2389 committed Jan 24, 2025
1 parent 6cb3a93 commit 881c6d9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
Binary file added References/kart_torsion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 28 additions & 28 deletions ohyeah2389_modkart_class2/data/suspensions.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ BODY_1_MASS=2 ; -- guessed
BODY_1_POS=0.5, 0.102, -0.123
BODY_1_MIRROR=0

BODY_2_NAME=CHASSIS_FLEX_BODY_FRONT ; Front body to which all the front suspension components are attached; attached to the chassis via a longitudinal hinge with a torsion bar to simulate body flex
BODY_2_NAME=CHASSIS_FLEX_BODY_INTER
BODY_2_MASS=5 ; -- guessed
BODY_2_CARPOS=0, -0.26, 0.65
BODY_2_CARPOS=0, -0.25, 0.2
BODY_2_MIRROR=0

BODY_3_NAME=CHASSIS_FLEX_BODY_SIDE ; Body to which the wheel components are attached; attached to the front flex body via a hinge with a torsion bar to simulate body flex per front wheel
BODY_3_NAME=CHASSIS_FLEX_BODY_FRONT ; Front body to which all the front suspension components are attached; attached to the chassis via a longitudinal hinge with a torsion bar to simulate body flex
BODY_3_MASS=5 ; -- guessed
BODY_3_POS=0.24, -0.032, 0.054
BODY_3_MIRROR=1
BODY_3_CARPOS=0, -0.25, 0.2
BODY_3_MIRROR=0

BODY_4_NAME=KINGPIN_ADJUSTER ; Body to which the wheel components are attached; attached to the front flex body via a hinge with a torsion bar to simulate body flex per front wheel
BODY_4_NAME=KINGPIN_ADJUSTER ; Body to which the hub is partially attached
BODY_4_POS=0.166, 0.033, -0.009
BODY_4_MIRROR=1

Expand All @@ -61,7 +61,7 @@ J0_PARITY=-1
J0_KP=1 ; Sets up FFB and marks as the top kingpin joint

J1=KINGPIN_BOTTOMJOINT ; Bottom joint of kingpin, joins chassis and spindle
J1_BODY_A=CHASSIS_FLEX_BODY_SIDE
J1_BODY_A=CHASSIS_FLEX_BODY_FRONT
J1_BODY_B=SPINDLE
J1_POS=0.15, -0.033, 0.009 ; KINGPIN_BOTTOM in Blender
J1_PARITY=-1
Expand Down Expand Up @@ -96,36 +96,36 @@ DJ1_POS_B_1=0.175, -0.042, -0.114
DJ1_POS_B_2=0.163, -0.04, -0.11

DJ2=KINGPIN_ADJ_HEIGHT_KEEPER ; Keeps the KINGPIN_ADJUSTER body at a fixed height from the bottom kingpin joint to constrain all 3 axes of movement with the adjusters
DJ2_BODY_A=CHASSIS_FLEX_BODY_SIDE
DJ2_BODY_A=CHASSIS_FLEX_BODY_FRONT
DJ2_BODY_B=KINGPIN_ADJUSTER
DJ2_POS_A=0.15, -0.033, 0.009
DJ2_POS_B=0.166, 0.033, -0.009

DJ3=KINGPIN_ADJ_CAMBER ; Keeps the KINGPIN_ADJUSTER body at a fixed height from the bottom kingpin joint to constrain all 3 axes of movement with the adjusters
DJ3_BODY_A=CHASSIS_FLEX_BODY_SIDE
DJ3_BODY_A=CHASSIS_FLEX_BODY_FRONT
DJ3_BODY_B=KINGPIN_ADJUSTER
DJ3_POS_A=0.215, 0.021, -0.009
DJ3_POS_B=0.166, 0.033, -0.009

DJ4=KINGPIN_ADJ_CASTER ; Keeps the KINGPIN_ADJUSTER body at a fixed height from the bottom kingpin joint to constrain all 3 axes of movement with the adjusters
DJ4_BODY_A=CHASSIS_FLEX_BODY_SIDE
DJ4_BODY_A=CHASSIS_FLEX_BODY_FRONT
DJ4_BODY_B=KINGPIN_ADJUSTER
DJ4_POS_A=0.166, 0.046, 0.039
DJ4_POS_B=0.166, 0.033, -0.009

HJ0=CHASSIS_FLEX_HINGE ; Connects CHASSIS_FLEX_BODY_FRONT and CHASSIS to simulate chassis flex about the longitudinal axis
HJ0=CHASSIS_FLEX_HINGE_LONG ; Connects CHASSIS and CHASSIS_FLEX_BODY_INTER to simulate chassis flex about the longitudinal axis
HJ0_BODY_A=CHASSIS
HJ0_BODY_B=CHASSIS_FLEX_BODY_FRONT
HJ0_CARPOS_A=0, -0.25, 0.88
HJ0_CARPOS_B=0, -0.25, 0.35
HJ0_BODY_B=CHASSIS_FLEX_BODY_INTER
HJ0_CARPOS_A=0, -0.25, 0.1
HJ0_CARPOS_B=0, -0.25, 0.3
HJ0_PARITY=0

HJ1=CHASSIS_FLEX_HINGE_SIDE ; Connects CHASSIS_FLEX_BODY_FRONT and CHASSIS_FLEX_BODY_SIDE to simulate per-front-wheel chassis flex
HJ1_BODY_A=CHASSIS_FLEX_BODY_FRONT
HJ1_BODY_B=CHASSIS_FLEX_BODY_SIDE
HJ1_POS_A=0.5, -0.087, 0.094
HJ1_POS_B=0.5, -0.087, -0.306
HJ1_PARITY=-1
HJ1=CHASSIS_FLEX_HINGE_LATERAL ; Connects CHASSIS_FLEX_BODY_INTER and CHASSIS_FLEX_BODY_FRONT to simulate chassis flex about the lateral axis
HJ1_BODY_A=CHASSIS_FLEX_BODY_INTER
HJ1_BODY_B=CHASSIS_FLEX_BODY_FRONT
HJ1_CARPOS_A=0.1, -0.25, 0.2
HJ1_CARPOS_B=-0.1, -0.25, 0.2
HJ1_PARITY=0

SLIDER_0=TRACK_WIDTH_SLIDER ; Allows the HUB to move relative to the SPINDLE for track width adjustments
SLIDER_0_BODY_A=SPINDLE
Expand All @@ -140,16 +140,16 @@ STEER_JOINT_0_POS_B=0.5, 0.2487, -0.3828 ; Wheel side
STEER_JOINT_0_PARITY=-1 ; Only one, two might break things as the STEERSHAFTs are already tied together

[FRONT_TORSION_0]
RATE=3600 ; JPG says my bad FEA calc =~ 3600
RATE=2200 ; kart_torsion.png about 2200
PRELOAD_TORQUE=0
HINGE=CHASSIS_FLEX_HINGE
HINGE=CHASSIS_FLEX_HINGE_LONG
PARITY=0

[FRONT_TORSION_1]
RATE=1300 ; JPG says my bad FEA calc =~ 1300
RATE=1000 ; Archpulled 1000
PRELOAD_TORQUE=0
HINGE=CHASSIS_FLEX_HINGE_SIDE
PARITY=-1
HINGE=CHASSIS_FLEX_HINGE_LATERAL
PARITY=0

[FRONT_DAMPER_0] ; chassis flex damper
DAMP_BUMP=200
Expand All @@ -159,7 +159,7 @@ DAMP_REBOUND=200
DAMP_FAST_REBOUND=200
DAMP_FAST_REBOUNDTHRESHOLD=0.1
BODY_A=CHASSIS
BODY_B=CHASSIS_FLEX_BODY_FRONT
BODY_B=CHASSIS_FLEX_BODY_INTER
POS_A=-0.2, 0.5, 0.0
POS_B=-0.2, 0.0, 0.0
MIN_LENGTH=0.3
Expand All @@ -175,8 +175,8 @@ DAMP_FAST_BUMPTHRESHOLD=0.1
DAMP_REBOUND=500
DAMP_FAST_REBOUND=500
DAMP_FAST_REBOUNDTHRESHOLD=0.1
BODY_A=CHASSIS_FLEX_BODY_FRONT
BODY_B=CHASSIS_FLEX_BODY_SIDE
BODY_A=CHASSIS_FLEX_BODY_INTER
BODY_B=CHASSIS_FLEX_BODY_FRONT
POS_A=-0.15, 0.5, 0.1
POS_B=-0.15, 0.0, 0.1
MIN_LENGTH=0.3
Expand Down

0 comments on commit 881c6d9

Please sign in to comment.