04-19-2010, 04:53 PM,
|
|
Quote:progressive
Any curve can be used, the XS has fancy suspension and the rate rises in a slightly less sharp curve, when it hits the bump stop it rises very quickly with more or less the same curve as the graph superimposed on the curve for the metal spring.
Used to pipe the terminal output to a file, do I need to compile with debugging option for that?
cheers
|
|
04-19-2010, 06:42 PM,
|
|
Not even looked at the curves these make, they aren't right but it's the right direction:
Code: spring-factor-1 = 0.052, 1.0
spring-factor-2 = 0.055, 1.2
spring-factor-3 = 0.1, 1.6
spring-factor-4 = 0.11, 2.1
spring-factor-5 = 0.12, 3
Didn't get any further than that, need to dump the values to a text file, think I added in code to do it last time.
Deadzone is in my wheel so that was nothing.
C7 on rouen.... Tried most of the suspension config from the XS on the C7 and still the weirdness, might try the complete config tomorrow and go from there.
|
|
04-20-2010, 08:47 PM,
|
|
Found something that may be worth a look. The force values for the suspension go into big positive values, don't think they should be able to go positive.
If there is unsprung weight then they should only go enough positive to counteract the unsprung weight, after that the wheel leaves the ground.
Tried setting rebound = 1 for front and rear and it feels a lot better, been at other things too though. More testing....
|
|
04-20-2010, 10:11 PM,
|
|
Different C7.car file.
Code: drive = RWD
version = 2
[ steering ]
max-angle = 28.94
[ engine ]
position = 0.0, 1.0, -0.24
mass = 110.0
max-power = 2.75e5
peak-engine-rpm = 8600.0
rpm-limit = 9000.0
inertia = 0.15
idle = 0.02
start-rpm = 1000
stall-rpm = 500
fuel-consumption = 1e-9
torque-friction = 0.0003
torque-curve-00 = 1000, 140.0
torque-curve-01 = 2000, 149.14
torque-curve-02 = 2200, 145.07
torque-curve-03 = 2500, 167.78
torque-curve-04 = 3000, 189.50
torque-curve-05 = 3300, 232.19
torque-curve-06 = 4000, 229.50
torque-curve-07 = 4500, 226.77
torque-curve-08 = 5600, 252.19
torque-curve-09 = 5800, 250.83
torque-curve-10 = 6000, 248.12
torque-curve-11 = 6100, 257.61
torque-curve-12 = 6200, 266.42
torque-curve-13 = 6300, 272.53
torque-curve-14 = 6500, 278.92
torque-curve-15 = 6700, 285.92
torque-curve-16 = 7000, 290.24
torque-curve-17 = 7600, 285.49
torque-curve-18 = 8000, 280.39
torque-curve-19 = 8200, 275.04
torque-curve-20 = 8300, 265.43
torque-curve-21 = 9200, 250.43
[ clutch ]
sliding = 0.27
radius = 0.15
area = 0.75
max-pressure = 22000.0
[ transmission ]
gears = 6
gear-ratio-r = -2.96
gear-ratio-1 = 2.30
gear-ratio-2 = 1.81
gear-ratio-3 = 1.49
gear-ratio-4 = 1.22
gear-ratio-5 = 1.08
gear-ratio-6 = 0.96
shift-delay = 1.5
[ differential ]
final-drive = 3.97
anti-slip = 280.0
[ fuel-tank ]
position = -0.17, -0.26, -0.56
capacity = 40.0
volume = 40.0
fuel-density = 1.0
[ suspension-front ]
spring-constant = 20
spring-factor-1 = 0.02, 1
spring-factor-2 = 0.04, 2500
spring-factor-3 = 0.06, 3700
spring-factor-10 = 0.2, 4000
spring-factor-20 = 0.4, 4000
spring-factor-30 = 0.6, 4000
spring-factor-40 = 0.8, 4000
spring-factor-50 = 1.0, 4000
spring-factor-60 = 1.2, 4100
spring-factor-70 = 1.4, 4500
spring-factor-80 = 1.6, 5500
spring-factor-90 = 1.8, 8000
spring-factor-100 = 2.0, 20000
bounce = 120
rebound = 10
damper-factor-10 = 0.02, 2.0
damper-factor-20 = 0.04, 1.6
damper-factor-30 = 0.06, 1.4
damper-factor-40 = 0.08, 1.2
damper-factor-50 = 0.1, 1.0
damper-factor-60 = 0.12, 1.0
damper-factor-70 = 0.14, 1.0
damper-factor-80 = 0.16, 1.0
damper-factor-90 = 0.18, 1.0
damper-factor-100 = 0.2, 0.2
travel = 0.2
max-compression-velocity = 100
camber = -1.33
caster = 6.12
toe = 0.0
anti-roll = 7000
[ suspension-rear ]
spring-constant = 18
spring-factor-1 = 0.02, 1
spring-factor-2 = 0.04, 2500
spring-factor-3 = 0.06, 3700
spring-factor-10 = 0.2, 4000
spring-factor-20 = 0.4, 4000
spring-factor-30 = 0.6, 4000
spring-factor-40 = 0.8, 4000
spring-factor-50 = 1.0, 4000
spring-factor-60 = 1.2, 4100
spring-factor-70 = 1.4, 4500
spring-factor-80 = 1.6, 5500
spring-factor-90 = 1.8, 8000
spring-factor-100 = 2.0, 20000
bounce = 100
rebound = 10
damper-factor-10 = 0.02, 2.0
damper-factor-20 = 0.04, 1.6
damper-factor-30 = 0.06, 1.4
damper-factor-40 = 0.08, 1.2
damper-factor-50 = 0.1, 1.0
damper-factor-60 = 0.12, 1.0
damper-factor-70 = 0.14, 1.0
damper-factor-80 = 0.16, 1.0
damper-factor-90 = 0.18, 1.0
damper-factor-100 = 0.2, 0.2
travel = 0.2
max-compression-velocity = 100
camber = -0.45
caster = 0.28
toe = 0.0
anti-roll = 5000
[ tire-front ]
radius = 0.29
rolling-resistance = 1.3e-2, 6.5e-6
rotational-inertia = 3.0
tread = 0.0
# Lateral force
a0=1.6
a1=-38
a2=1201
a3=1914
a4=8.7
a5=0.014
a6=-0.24
a7=1.0
a8=-0.03
a9=-0.0013
a10=-0.15
a111=-8.5
a112=-0.29
a12=17.8
a13=-2.4
# Longitudinal force
b0=1.7
b1=-80
b2=1571
b3=23.3
b4=300
b5=0
b6=0.0068
b7=0.055
b8=-0.024
b9=0.014
b10=0.26
b11=-86
b12=350
# Aligning moment
c0=2.3
c1=-3.8
c2=-3.14
c3=-1.16
c4=-7.2
c5=0.0
c6=0.0
c7=0.044
c8=-0.58
c9=0.18
c10=0.043
c11=0.048
c12=-0.0035
c13=-0.18
c14=0.14
c15=-1.029
c16=0.27
c17=-1.1
[ tire-rear ]
radius = 0.2935
rolling-resistance = 1.3e-2, 6.5e-6
rotational-inertia = 3.0
tread = 0.0
# Lateral force
a0=1.6
a1=-38
a2=1201
a3=1914
a4=8.7
a5=0.014
a6=-0.24
a7=1.0
a8=-0.03
a9=-0.0013
a10=-0.15
a111=-8.5
a112=-0.29
a12=17.8
a13=-2.4
# Longitudinal force
b0=1.7
b1=-80
b2=1571
b3=23.3
b4=300
b5=0
b6=0.0068
b7=0.055
b8=-0.024
b9=0.014
b10=0.26
b11=-86
b12=350
# Aligning moment
c0=2.3
c1=-3.8
c2=-3.14
c3=-1.16
c4=-7.2
c5=0.0
c6=0.0
c7=0.044
c8=-0.58
c9=0.18
c10=0.043
c11=0.048
c12=-0.0035
c13=-0.18
c14=0.14
c15=-1.029
c16=0.27
c17=-1.1
[ brakes-front ]
friction = 0.4
max-pressure = 2.5e6
bias = 0.68
radius = 0.17
area = 0.015
[ brakes-rear ]
friction = 0.4
max-pressure = 2.5e6
bias = 0.32
radius = 0.14
area = 0.015
handbrake = 1
[ driver ]
position = -0.208, -0.57, -0.1
mass = 90.0
view-position = -0.208, -0.57, 0.2
hood-mounted-view-position = 0.0, 0.24, 0.12
[ drag ]
position = 0.0, 0.0, 0.2
frontal-area = 2
drag-coefficient = 0.3
[ wing-front ]
position = 0.0, 1.9, 0.60
frontal-area = 0.2
drag-coefficient = 0.0
surface-area = 0.3
lift-coefficient = -0.5
efficiency = 0.95
[ wing-rear ]
position = 0.0, -2.14, 0.37
frontal-area = 0.05
drag-coefficient = 0.0
surface-area = 0.5
lift-coefficient = -0.75
efficiency = 0.95
[ wheel-FR ]
position = 0.61, 1.19, -0.43
roll-height = 0.325
mass = 12
restitution = 0.1
[ suspension-FR ]
position = 0.58, 1.19, -0.07
hinge = -0.63, 1.19, -0.7
[ wheel-FL ]
position = -0.61, 1.19, -0.43
roll-height = 0.325
mass = 12
restitution = 0.1
[ suspension-FL ]
position = -0.58, 1.19, -0.07
hinge = 0.63, 1.19, -0.7
[ wheel-RR ]
position = 0.65, -1.17, -0.43
roll-height = 0.340
mass = 15
restitution = 0.1
[ suspension-RR ]
position = 0.60, -1.17, -0.07
hinge = -0.65, -1.17, -0.7
[ wheel-RL ]
position = -0.65, -1.17, -0.43
roll-height = 0.340
mass = 15
restitution = 0.1
[ suspension-RL ]
position = -0.60, -1.17, -0.07
hinge = 0.65, -1.17, -0.7
# these are used to calculate the weight distribution and balance
[ particle-00 ]
mass = 20.0
position = 0.0, -1.35, -0.37
[ particle-01 ]
mass = 30.0
position = 0.0, 0.96, -0.37
[ particle-02 ]
mass = 75.0
position = 0.5, -1.0, -0.2
[ particle-03 ]
mass = 75.0
position = -0.5, -1.0, -0.2
[ particle-04 ]
mass = 75.0
position = 0.45, 1.0, -0.13
[ particle-05 ]
mass = 75.0
position = -0.45, 1.0, -0.13
|
|
04-20-2010, 10:47 PM,
|
|
joevenzon
Administrator
|
Posts: 2,679
Threads: 52
Joined: Jun 2005
|
|
Just to go back and talk about the scheduler question, VDrift doesn't have a scheduler but it has a few different rates that it will run things at. All of the physics run at a fixed time step, and some of them run at higher rates than others. For example, the chassis is simulated at a rate around 100 Hz, but the wheels/tires are simulated at around 600 Hz (NaN knows the exact rates). The graphical display is updated as fast as the card can draw it, which is variable, and independent of the physics rate. The graphics will just grab the latest physics results and display them on the screen.
The pacejka equation is pretty fast, I don't think there's a need to precompute it (although I haven't had a chance to profile the latest trunk).
Motion blur is an eye candy effect that isn't enabled at the moment. The approach I like is a rough approximation that's purely there to make things look cool.
|
|
04-21-2010, 08:13 AM,
|
|
Another one. Testing on ruudskogen.
Code: drive = RWD
version = 2
[ steering ]
max-angle = 28.94
[ engine ]
position = 0.0, 1.0, -0.24
mass = 110.0
peak-engine-rpm = 6500
rpm-limit = 7200
inertia = 0.15
idle = 0.02
start-rpm = 1000
stall-rpm = 500
fuel-consumption = 1e-9
torque-friction = 0.0003
torque-curve-00 = 500, 50
torque-curve-01 = 1000, 80
torque-curve-02 = 2000, 126
torque-curve-03 = 3000, 151
torque-curve-04 = 4000, 158
torque-curve-05 = 5000, 163
torque-curve-06 = 6000, 169
torque-curve-07 = 7000, 172
torque-curve-08 = 8000, 168
torque-curve-09 = 9000, 150
torque-curve-10 = 10000, 100
[ clutch ]
sliding = 0.27
radius = 0.15
area = 0.75
max-pressure = 16000.0
[ transmission ]
gears = 5
gear-ratio-r = -2.96
gear-ratio-1 = 2.80
gear-ratio-2 = 1.81
gear-ratio-3 = 1.49
gear-ratio-4 = 1.22
gear-ratio-5 = 1.08
shift-delay = 1.0
[ differential ]
final-drive = 3.6
anti-slip = 280.0
[ fuel-tank ]
position = -0.17, -0.26, -0.56
capacity = 40.0
volume = 40.0
fuel-density = 1.0
[ suspension-front ]
spring-constant = 20
spring-factor-1 = 0.02, 1
spring-factor-2 = 0.04, 2500
spring-factor-3 = 0.06, 3700
spring-factor-10 = 0.2, 4000
spring-factor-20 = 0.4, 4000
spring-factor-30 = 0.6, 4000
spring-factor-40 = 0.8, 4000
spring-factor-50 = 1.0, 4000
spring-factor-60 = 1.2, 4100
spring-factor-70 = 1.4, 4500
spring-factor-80 = 1.6, 5500
spring-factor-90 = 1.8, 8000
spring-factor-100 = 2.0, 20000
bounce = 120
rebound = 10
damper-factor-10 = 0.02, 2.0
damper-factor-20 = 0.04, 1.6
damper-factor-30 = 0.06, 1.4
damper-factor-40 = 0.08, 1.2
damper-factor-50 = 0.1, 1.0
damper-factor-60 = 0.12, 1.0
damper-factor-70 = 0.14, 1.0
damper-factor-80 = 0.16, 1.0
damper-factor-90 = 0.18, 0.8
damper-factor-100 = 0.2, 0.6
damper-factor-150 = 0.5, 0.2
travel = 0.2
max-compression-velocity = 100
camber = -1.33
caster = 6.12
toe = 0.0
anti-roll = 7000
[ suspension-rear ]
spring-constant = 18
spring-factor-1 = 0.02, 1
spring-factor-2 = 0.04, 2500
spring-factor-3 = 0.06, 3700
spring-factor-10 = 0.2, 4000
spring-factor-20 = 0.4, 4000
spring-factor-30 = 0.6, 4000
spring-factor-40 = 0.8, 4000
spring-factor-50 = 1.0, 4000
spring-factor-60 = 1.2, 4100
spring-factor-70 = 1.4, 4500
spring-factor-80 = 1.6, 5500
spring-factor-90 = 1.8, 8000
spring-factor-100 = 2.0, 20000
bounce = 100
rebound = 10
damper-factor-10 = 0.02, 2.0
damper-factor-20 = 0.04, 1.6
damper-factor-30 = 0.06, 1.4
damper-factor-40 = 0.08, 1.2
damper-factor-50 = 0.1, 1.0
damper-factor-60 = 0.12, 1.0
damper-factor-70 = 0.14, 1.0
damper-factor-80 = 0.16, 1.0
damper-factor-90 = 0.18, 1.0
damper-factor-100 = 0.2, 0.6
damper-factor-150 = 0.5, 0.2
travel = 0.2
max-compression-velocity = 100
camber = -0.45
caster = 0.28
toe = 0.0
anti-roll = 5000
[ tire-front ]
radius = 0.29
rolling-resistance = 1.3e-2, 6.5e-6
rotational-inertia = 3.2
tread = 0.0
# Lateral force
a0=1.6
a1=-38
a2=1200
a3=2000
a4=8.5
a5=0.014
a6=-0.24
a7=1.0
a8=-0.03
a9=-0.0013
a10=-0.15
a111=-8.5
a112=-0.29
a12=17.8
a13=-2.4
# Longitudinal force
b0=1.5
b1=-130
b2=1600
b3=23.3
b4=300
b5=0
b6=0.0068
b7=0.055
b8=-0.024
b9=0.014
b10=0.26
b11=-86
b12=350
# Aligning moment
c0=2.3
c1=-3.8
c2=-3.14
c3=-1.16
c4=-7.2
c5=0.0
c6=0.0
c7=0.044
c8=-0.58
c9=0.18
c10=0.043
c11=0.048
c12=-0.0035
c13=-0.18
c14=0.14
c15=-1.029
c16=0.27
c17=-1.1
[ tire-rear ]
radius = 0.2935
rolling-resistance = 1.3e-2, 6.5e-6
rotational-inertia = 5.0
tread = 0.0
# Lateral force
a0=1.6
a1=-38
a2=1200
a3=2000
a4=8.5
a5=0.014
a6=-0.24
a7=1.0
a8=-0.03
a9=-0.0013
a10=-0.15
a111=-8.5
a112=-0.29
a12=17.8
a13=-2.4
# Longitudinal force
b0=1.5
b1=-130
b2=1600
b3=23.3
b4=300
b5=0
b6=0.0068
b7=0.055
b8=-0.024
b9=0.014
b10=0.26
b11=-86
b12=350
# Aligning moment
c0=2.3
c1=-3.8
c2=-3.14
c3=-1.16
c4=-7.2
c5=0.0
c6=0.0
c7=0.044
c8=-0.58
c9=0.18
c10=0.043
c11=0.048
c12=-0.0035
c13=-0.18
c14=0.14
c15=-1.029
c16=0.27
c17=-1.1
[ brakes-front ]
friction = 0.4
max-pressure = 2.5e6
bias = 0.68
radius = 0.17
area = 0.015
[ brakes-rear ]
friction = 0.4
max-pressure = 2.5e6
bias = 0.32
radius = 0.14
area = 0.015
handbrake = 1
[ driver ]
position = -0.208, -0.57, -0.1
mass = 90.0
view-position = -0.208, -0.57, 0.2
hood-mounted-view-position = 0.0, 0.24, 0.12
[ drag ]
position = 0.0, 0.0, 0.2
frontal-area = 2
drag-coefficient = 0.3
[ wing-front ]
position = 0.0, 1.9, 0.60
frontal-area = 0.2
drag-coefficient = 0.0
surface-area = 0.3
lift-coefficient = 0.2
efficiency = 0.95
[ wing-rear ]
position = 0.0, -2.14, 0.37
frontal-area = 0.05
drag-coefficient = 0.0
surface-area = 0.5
lift-coefficient = 0.15
efficiency = 0.95
[ wheel-FR ]
position = 0.61, 1.19, -0.43
roll-height = 0.325
mass = 12
restitution = 0.1
[ suspension-FR ]
position = 0.58, 1.19, -0.07
hinge = -0.63, 1.19, -0.7
[ wheel-FL ]
position = -0.61, 1.19, -0.43
roll-height = 0.325
mass = 12
restitution = 0.1
[ suspension-FL ]
position = -0.58, 1.19, -0.07
hinge = 0.63, 1.19, -0.7
[ wheel-RR ]
position = 0.65, -1.17, -0.43
roll-height = 0.340
mass = 15
restitution = 0.1
[ suspension-RR ]
position = 0.60, -1.17, -0.07
hinge = -0.65, -1.17, -0.7
[ wheel-RL ]
position = -0.65, -1.17, -0.43
roll-height = 0.340
mass = 15
restitution = 0.1
[ suspension-RL ]
position = -0.60, -1.17, -0.07
hinge = 0.65, -1.17, -0.7
# these are used to calculate the weight distribution and balance
[ particle-00 ]
mass = 20.0
position = 0.0, -1.35, -0.37
[ particle-01 ]
mass = 30.0
position = 0.0, 0.96, -0.37
[ particle-02 ]
mass = 75.0
position = 0.5, -1.0, -0.2
[ particle-03 ]
mass = 75.0
position = -0.5, -1.0, -0.2
[ particle-04 ]
mass = 75.0
position = 0.45, 1.0, -0.13
[ particle-05 ]
mass = 75.0
position = -0.45, 1.0, -0.13
|
|
04-21-2010, 02:58 PM,
|
|
Only used SVN for checking out, have access but not sure how or where. Have file for the C7 and FF, also for the 350Z but there is a quirk on banked corners (all suspension load disappears).
Trying this from my C7 folder:
svn ci -m "modified C7.car file"
Prompted for password, then different username, then password again, etc. Tried any combinations I can think of but nothing.
|
|
04-21-2010, 04:26 PM,
|
|
Ohh...THAT password... duh. C7 and FF car files committed, hope they aren't too far off the mark.
cheers
|
|
|