[ODE] Car Simulation(Lots of problems)

Marco Grubert mgrubert at conitec.net
Wed Aug 25 12:41:25 MST 2004


There is a catch-22 problem with setting hi/lo stops. If you set a low stop
it checks whether the parameter is smaller than hi stop. If you set hi stop
it checks whether the new parameter is larger than low stop. The simple
 workaround is to call each SetParam function twice.

 - Marco

> ----- Original Message ----- 
> From: "Robson Ito" <agemaniac at yahoo.com.br>
> To: <ode at q12.org>
> Sent: Friday, August 06, 2004 12:20
> Subject: [ODE] Car Simulation(Lots of problems)
>
>
>> Thanks for the replies. I really got my car working
>> better now. I have just one remaining problem.
>> When i hit the RIGHT button the car move instantly to
>> the right. its ok. But when i hit the LEFT button the
>> car seen to have a little lag to turn. and when it
>> turn the wheels have a full turn. This is my code:
>>
>> if(steer>0)
>> {
>>  joints[0]->Set_Param(dParamLoStop, XX);
>>  joints[0]->Set_Param(dParamHiStop, XX);
>>  joints[1]->Set_Param(dParamLoStop, XX);
>>  joints[1]->Set_Param(dParamHiStop, XX);
>> }
>> else
>> {
>>  joints[0]->Set_Param(dParamLoStop, YY);
>>  joints[0]->Set_Param(dParamHiStop, YY);
>>  joints[1]->Set_Param(dParamLoStop, YY);
>>  joints[1]->Set_Param(dParamHiStop, YY);
>> }
>>
>> when i hit LEFT XX will start to decrease from 0 to
>> -0.3 -> the wheel move properly.
>> when i hit RIGHT YY will start increase from 0 to 0.3
>> the wheel just start move when YY hits 0.3. Soh it
>> will be imoveable from 0 too 0.3. When hits 0.3 the
>> wheel got full steer and move instantly.
>>
>>
>>
>>
>>
>> _______________________________________________________
>> Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! Acesse: 
>> http://br.acesso.yahoo.com/
>> _______________________________________________
>> ODE mailing list
>> ODE at q12.org
>> http://q12.org/mailman/listinfo/ode
>> -= No virus found by mail at conitec =-
> 



More information about the ODE mailing list