[ODE] Hinge2 lo-hi limits

LR logreg at free.fr
Tue May 1 15:09:50 MST 2007


Thank you for your help.
 
But in my case, stops are set one time at the start of the simulation and
values are statics: lo is negative (-178°) and hi is pausitive (+178). 
Then i don't understant why limits are disabled automaticaly with those
values whereas it works fine with lower values like lo=-177°, hi=+177° .....
or -90°, +90°
 
How is it possible that limits can be automaticaly disabled ?
 
i didn't look at the joint code ... then if some one know the response ...
it should be great :)
 
 
LR
 
 
 
 
  _____  

De : ode-bounces at ode.org [mailto:ode-bounces at ode.org] De la part de Szabo
Gabor
Envoyé : mardi 1 mai 2007 15:21
À : ode at ode.org
Objet : Re: [ODE] Hinge2 lo-hi limits


Hi,

Set the both limits twice and you got the result. It is because the limits
have to be consistent all the time, so a higher limit mustn't be lower than
the lower limit and vice versa. You can solve this problem also by checking
the direction of change of the limits and choose the corresponding order of
limit function calls.

Descending limits: 1. set lower, 2. then set upper
Ascending limits: 1. set upper, 2. then set lower stop param.

Bye,

  Gabor

LR wrote: 

Hi,
 
I've a problem with the hinge 2 vertical axis limits. It seems that when
lo=-177° , hi=177° it works fine but when lo=-178°, hi=178, limits are
disabled.
First i saw that because lo=-180, hi=180 disabled limits. (of courses angles
are in radians!!)
 
Does someone know that or i miss something ? 
 
Thank you for your help
 
LR

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ode.org/pipermail/ode/attachments/20070502/7481d446/attachment.htm


More information about the ODE mailing list