The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 752 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 892 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5308 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5308 errorHandler->error
/global.php 1024 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1429 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key 1 - Line: 866 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 866 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key 1 - Line: 885 - File: inc/class_parser.php PHP 8.1.27 (Linux)
File Line Function
/inc/class_parser.php 885 errorHandler->error
/inc/class_parser.php 938 postParser->mycode_parse_post_quotes
[PHP] postParser->mycode_parse_post_quotes_callback1
/inc/class_parser.php 816 preg_replace_callback
/inc/class_parser.php 451 postParser->mycode_parse_quotes
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Forums
Wrong calculation of rolling resistance - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: Bugs (https://www.vdrift.net/Forum/forumdisplay.php?fid=7)
+--- Thread: Wrong calculation of rolling resistance (/showthread.php?tid=1537)

Pages: 1 2 3


- NaN - 07-30-2011

I've had this fixed in my rewrite by limiting friction torque to the torque needed to reduce contact velocity to zero if I remember correctly.


- LBodnar - 07-30-2011

Another bug elsewhere:

I have dumped input parameters coming into PacejkaFy function and in a spin I see slip angles alpha of 100, 300, 2000 degrees and more!

Pacejka Fy formula does not work for slip angle outside of +-90 degrees! It is not designed to be periodical. From common sense it has to be symmetrical around 90 degrees but it is responsibility of the calling function to wrap around slip angles.

This has to be fixed at the calling point where slip angle is generated.


- NaN - 07-30-2011

The output of atan2 is [-pi,+pi] -> [-180, 180].

But then there is also the Fx, Fy combining method which I can't really comment, no idea what is going on there.


- LBodnar - 07-30-2011

NaN Wrote:The output of atan2 is [-pi,+pi] -> [-180, 180].

But then there is also the Fx, Fy combining method which I can't really comment, no idea what is going on there.

Even this is not right, 180 degrees means tyre just freely rolling backwards and its Fy should be almost zero. PacejkaFy on the other hand will produce lateral force at 0.5...1 Fz level if you just calculate Fy(180).

Code:
assert (btFabs(alpha) <= 180);
if (alpha > 90) alpha = 180 - alpha;
if (alpha < 90) alpha = -180 - alpha;

[Image: Fy%20symmetry.png]

Same story with Mz: PacejkaMz will generate non-zero aligning torque at 90 degrees and above while common sense suggests that if you drag the tyre sidewise it will not have any aligning torque due to its symmetry. Thus real world Mz has to be anti-simmetrical around 90 degrees value.


- NaN - 07-30-2011

Quote:Even this is not right, 180 degrees means tyre
I didn't want to imply that it is correct, was just looking for the reason for this values.

The slip angle should be obviously atan(v_lat/abs(v_lon)) not atan2.

But there is still the combining equation which will scale it.


- LBodnar - 07-30-2011

For Mz I suggest using this:

Code:
btScalar CARTIRE::PacejkaMz(btScalar sigma, btScalar alpha, btScalar Fz, btScalar gamma, btScalar friction_coeff, btScalar & max_Mz) const
{
    btScalar Input_alpha = alpha;                // save slip angle on entry
    if (alpha > 90.0) alpha = 180.0 - alpha;    // symmetry around +90 degrees if caller missed it
    if (alpha < -90.0) alpha = -180.0 - alpha;    // symmetry around -90 degrees if caller missed it

... calculations

    // anti-symmetry around +-90 degrees
    Mz *= cos(Input_alpha * M_PI / 180.0);
    return Mz;
}
Here is what we get as a result compared to existing formula. Of course anything beyond 10-20 degrees slip angle is already a heavy slide but at least we get common sense outputs in this calculations.

Caller still has to limit the input slip angle to +-180 degrees!

[Image: Mz%20symmetry.png]


Update: Haha! I have just had a look in Pacejka's 2006 book and he includes cos(alpha) factor in Mz stating
Quote:factor cos(a) appearing in the equations for the aligning torque to properly handle the case of large slip angles and possibly backwards running...

:lol: