Forums

Full Version: Problem with weight balance into all cars
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Since two or three weeks I have a problem with weight balance of all cars. When I start a race the cars have front wheels on the air and when I brake rear wheels are on the air (Chris you have got some screenshots into bmwm3gtr.zip allegated file). It seems to drive on a seesaw. I have tried to delete all setting files, sources and I have made a svn checkout but nothing.You have mentioned some problems with platform Ubuntu and OpenSuSE, I have got a Fedora Core 4 with gcc 4.0Gianni
This seems to be a problem that only appears with GCC 4. I'm baffled....
I too have the same problem. Using Mandriva 2006, compiled using Scons. The binary distribution doesn't worked. VDrift version: 03-11-2005Hope theres a easy solution
hi, think this problem is due to some array index errors, patch to src/vamos/body/Car.cc, does this fix it?
Code:
Index: Car.cc
===================================================================
--- Car.cc    (revision 1172)
+++ Car.cc    (working copy)
@@ -1994,7 +1994,7 @@
    retval = m_car_definition.GetParam("suspension-FR.hinge", tvec);
    if (!retval)
        success = false;
-    t3v2.m_vec[0] = tvec[0];    t3v2.m_vec[1] = tvec[1];    t3v2.m_vec[3] = tvec[3];
+    t3v2.m_vec[0] = tvec[0];    t3v2.m_vec[1] = tvec[1];    t3v2.m_vec[2] = tvec[2];
    
    //create front right suspension
    Side side = RIGHT;
@@ -2014,7 +2014,7 @@
    retval = m_car_definition.GetParam("suspension-FL.hinge", tvec);
    if (!retval)
        success = false;
-    t3v2.m_vec[0] = tvec[0];    t3v2.m_vec[1] = tvec[1];    t3v2.m_vec[3] = tvec[3];
+    t3v2.m_vec[0] = tvec[0];    t3v2.m_vec[1] = tvec[1];    t3v2.m_vec[2] = tvec[2];
    
    //create front left suspension
    side = LEFT;
@@ -2068,7 +2068,7 @@
    retval = m_car_definition.GetParam("suspension-RR.hinge", tvec);
    if (!retval)
        success = false;
-    t3v2.m_vec[0] = tvec[0];    t3v2.m_vec[1] = tvec[1];    t3v2.m_vec[3] = tvec[3];
+    t3v2.m_vec[0] = tvec[0];    t3v2.m_vec[1] = tvec[1];    t3v2.m_vec[2] = tvec[2];
    
    //create rear right suspension
    side = RIGHT;
@@ -2088,7 +2088,7 @@
    retval = m_car_definition.GetParam("suspension-RL.hinge", tvec);
    if (!retval)
        success = false;
-    t3v2.m_vec[0] = tvec[0];    t3v2.m_vec[1] = tvec[1];    t3v2.m_vec[3] = tvec[3];
+    t3v2.m_vec[0] = tvec[0];    t3v2.m_vec[1] = tvec[1];    t3v2.m_vec[2] = tvec[2];
    
    //create rear left suspension
    side = LEFT;
ladybirdman Wrote:hi, think this problem is due to some array index errors, patch to src/vamos/body/Car.cc, does this fix it?
As far as I can tell, it does fix it! I compiled with this patch using gcc4. vdrift ran fine without any weird car bumping. Great find, ladybirdman! The patch is checked into SVN.
Great catch! This also explains why I was having trouble moving the suspension hinge z coordinate around. I'll mess with the suspension hinges on one of the cars and see what it lets me do with the suspension geometries.
Great catch! This also explains why I was having trouble moving the suspension hinge z coordinate around. I'll mess with the suspension hinges on one of the cars and see what it lets me do with the suspension geometries.
This is awesome! So glad to hear this is fixed.
This is awesome! So glad to hear this is fixed.