David Megginson wrote:
>
> Fr�d�ric Bouvier writes:
>
> > Now I have 'Float overflow' here
> > void
> > FGInstrumentLayer::transform () const
> > {
> > transformation_list::const_iterator it = _transformations.begin();
> > transformation_list::const_iterator last = _transformations.end();
> > while (it != last) {
> > FGPanelTransformation *t = *it;
> > if (t->test()) {
> > >>>> float val = (t->node == 0 ? 0.0 : t->node->getFloatValue()); <<<<
> > if (val < t->min) {
> > val = t->min;
> > } else if (val > t->max) {
> > val = t->max;
> > }
> >
> > Reading the double value of the node 'level-gal_us' ( the offending node ),
> > I have -6.2774385622042e+066 (uninitialized I guess).
> >
> > Where this value is supposed to be initialized ?
>
> The property's tied to FGInterface::get_Tank1Fuel(), and you are
> right, the Tank1Fuel class variable is never initialized.
Ah, we should do that then! I've never been able to figure that one out!
CU,
Christian
--
The idea is to die young as late as possible. -- Ashley Montague
Whoever that is/was; (c) by Douglas Adams would have been better...
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel