Stability Control

General discussion, news and update announcements

Stability Control

Postby hotpass105 » Mon Jan 28, 2013 1:38 am

How do the adjustments in the car-mod window for stability control work?
hotpass105
 
Posts: 6
Joined: Mon Jan 28, 2013 1:37 am

Re: Stability Control

Postby Eugene Cojocar » Mon Jan 28, 2013 5:06 am

Hello Hotpass,

Do you mean Stability Control parameters in the VehiclePhysics or something else?
XMR Developer
User avatar
Eugene Cojocar
 
Posts: 937
Joined: Thu Oct 18, 2012 2:49 pm

Re: Stability Control

Postby hotpass105 » Mon Jan 28, 2013 10:57 pm

These values.
Attachments
these.JPG
these.JPG (132.96 KiB) Viewed 6618 times
hotpass105
 
Posts: 6
Joined: Mon Jan 28, 2013 1:37 am

Re: Stability Control

Postby hotpass105 » Mon Jan 28, 2013 11:11 pm

Also, while I've got your attention... Is multithreading going to be implemented one day?
hotpass105
 
Posts: 6
Joined: Mon Jan 28, 2013 1:37 am

Re: Stability Control

Postby Eugene Cojocar » Tue Jan 29, 2013 3:24 pm

Stability Control begins functioning if it enabled in the menu and if:
1. abs( Left Front Slip Angle ) > Control Slip Angle && abs( Right Front Slip Angle ) > Control Slip Angle && Vehicle Velocity > Min Velocity.
2. Then it checks UndersteerGradient, Yaw Angular Velocity and the angle between body and vector of velocity – Angle2.
3. If (UndersteerGradient < 0 ) or (abs(Yaw Angular Velocity) > Control Yaw) or (Angle2 > Control Body Angle) it works as oversteer program.
4. If (UndersteerGradient > 0 ) && (Angle2 < Control Body Angle) it works as understeer program.
5. else LF, RF, RR and LR Strength values tend to 0:
LF Strength -= Release Speed * time;
RF Strength -= Release Speed * time;
RR Strength -= Release Speed * time;
LR Strength -= Release Speed * time;

Oversteer program:
1. If (Angle of Steering Wheel) < -2 degrees (turned to the left)
1.1 If ( abs( Right Front Slip )) < Max Sleep then RF Strength += Apply Speed * time
1.2 LF Strength -= Release Speed * time;
RR Strength -= Release Speed * time;
LR Strength -= Release Speed * time;

2. Oversteer program: If (Angle of Steering Wheel) > 2 degrees (turned to the right)
2.1 If ( abs( Left Front Slip )) < Max Sleep then LF Strength += Apply Speed * time
2.2 RF Strength -= Release Speed * time;
RR Strength -= Release Speed * time;
LR Strength -= Release Speed * time;

3. Then LF, RF, RR and LR Strength values are applied to the wheels as braking torques:
LF Braking += LF Strength * Max Front Brake Torque;
RF Braking += RF Strength * Max Front Brake Torque;
RR Braking += RR Strength * Max Rear Brake Torque;
LR Braking += LR Strength * Max Rear Brake Torque;


Understeer program:
1. If (Angle of Steering Wheel) < -2 degrees (turned to the left)
1.1 If ( abs( Left Rear Slip )) < Max Sleep then LR Strength += Apply Speed * time
1.2 LF Strength -= Release Speed * time;
RF Strength -= Release Speed * time;
RR Strength -= Release Speed * time;

2. If (Angle of Steering Wheel) < 2 degrees (turned to the right)
2.1 If ( abs( Right Rear Slip )) < Max Sleep then LR Strength += Apply Speed * time
2.2 LF Strength -= Release Speed * time;
RF Strength -= Release Speed * time;
LR Strength -= Release Speed * time;

3. Then LF, RF, RR and LR Strength values are applied to the wheels as braking torques:
LF Braking += LF Strength * Max Front Brake Torque;
RF Braking += RF Strength * Max Front Brake Torque;
RR Braking += RR Strength * Max Rear Brake Torque;
LR Braking += LR Strength * Max Rear Brake Torque;

You can watch the braking torques via real-time telemetry by 'I'.

So, you can define these values in the VehiclePhysics:
Control Slip Angle, Control Body Angle, Min Velocity, Control Yaw, Max Slip, Apply Speed, Release Speed, Max Front Brake Torque and Max Rear Brake Torque.
XMR Developer
User avatar
Eugene Cojocar
 
Posts: 937
Joined: Thu Oct 18, 2012 2:49 pm

Re: Stability Control

Postby Eugene Cojocar » Tue Jan 29, 2013 3:28 pm

hotpass105 wrote:Also, while I've got your attention... Is multithreading going to be implemented one day?

XMR uses multithreading, but the general thread does 95% of work.
I tried to add multithreading to the physics, but give up this idea because synchronization loss was too big.
XMR Developer
User avatar
Eugene Cojocar
 
Posts: 937
Joined: Thu Oct 18, 2012 2:49 pm


Return to General

Who is online

Users browsing this forum: No registered users and 2 guests

cron