Re: Very high changes in acceleration and wheel forces which is not logical
Alan Ali <[email protected]>
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Message-ID | <CAM0BHSRWd-hGK=D1uC28G0-jTydO0Hi3K3CAfWFfQZn3PmHp4A@mail.gmail.com> |
Hi Berniw, I think i were not very clear in my last email, but what i want to say is that the *problem* of high changes *disappear* when the car moves *only for * ( *tita* , car2-trb1) car. *While* for the other cars (*bt* , car2-trb1 and *berniw2*, "FOCW61) it *always* *exist* (at low and high speeds). Anyway tomorrow i will try to print the suspension... Thank you very much On Thu, Mar 14, 2013 at 9:40 PM, Bernhard Wymann <[email protected]> wrote: > Hi Alan > > Please print out the suspension course, max, and if the SUSP_EXT condition > kicks in, I bet that is the reason. Review as well the car model, in the > previous post I mentioned the interesting parameters. > > That the noise disappears with growing speed is clear, because at the > start just the wight of the car is present as main force, so the spring is > on this magic "cannot extend more" limit. When the car dives faster, > downforce (wings and ground effect) kicks in, and the suspension gets > compressed, so relative to the lower actual ride height it can then extend > a bit, because not operating anymore on the "mechanical limit". > > Makes all total sense to me;-) > > Best regards > > Bernhard > > > On 03/14/2013 08:34 PM, Alan Ali wrote: > >> Hi Berniw, >> >> Thank you very much for your help. >> >> But the problem still exist . >> * >> The changes i made is the followings:* >> >> >> I put your code from "TORCS Robot tutorial" instead of the drive >> function for the robot >> static void drive(int index, tCarElt* car, tSituation *s) >> { >> memset(&car->ctrl, 0, sizeof(tCarCtrl)); >> >> float angle; >> const float SC = 1.0; >> >> angle = RtTrackSideTgAngleL(&(car->_trkPos)) - car->_yaw; >> NORM_PI_PI(angle); // put the angle back in the range from -PI to PI >> angle -= SC*car->_trkPos.toMiddle/car->_trkPos.seg->width; >> >> // set up the values to return >> car->ctrl.steer = angle / car->_steerLock; >> car->ctrl.gear = 1; // first gear >> car->ctrl.accelCmd = 0.3; // 30% accelerator pedal >> car->ctrl.brakeCmd = 0.0; // no brakes >> } >> >> and i print the forces of the first wheel as i have already mentioned... >> >> *The expeimenrts :* >> >> >> i have tested (TORCS 1.3.3,tita3, car1-trb1 on wheel-1) the changes >> exist just at start , and it disapear (smooth force changes) after the >> car moves even without any changes. >> >> But I am using (TORCS 1.3.3 ,bt , car2-trb1 on wheel-1) i have wiped out >> all stuff out of the default xml file for all the cars( >> D:\torcs-1.3.3\runtimed\drivers\bt\ i \default.xml , where i =0...9 ) >> (keeping the brake part as you told me to do) >> but the problem didn't disaprear... >> >> I have also tested (TORCS 1.3.3,berniw2, "FOCW61"on wheel-1) and the >> same problem exist. >> acutally what i made is to replace all the drive funciotn. >> >> i have also replaced the code >> Ft -= F * sx / s; >> Fn -= F * sy / s; >> but it still exist... >> >> >> Thank you very much again and sory for bothering you... >> >> >> >> > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Torcs-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/torcs-users