On Sunday, May 12, 2002, at 09:50 AM, David Megginson wrote:
> Jonathan Polley writes:
>
>> I just updated to the newest FDM code and hit a problem with
>> BalloonSim.cpp building under MSVC. Since MSVC does not define
>> FG_NEW_ENVIRONMENT, the compiler generates the following errors:
>
> Try updating again -- the current CVS version of BalloonSim.cpp as of
> late yesterday doesn't contain any reference to FG_NEW_ENVIRONMENT.
>
Sorry, I mistyped the incorrect macro. The block of code reads:
#ifdef FG_WEATHERCM
sgScaleVec3(fFriction, v, cw_envelope * wind_facing_area_of_balloon *
WeatherDatabase->getAirDensity(position) * speed / 2.0); //wind resistance
sgScaleVec3(fLift, gravity_vector, -balloon_envelope_volume *
wdbpos.AirPressure / (287.14 * wdbpos.Temperature));
#endif
sgAddVec3(fTotal, fLift);
sgAddVec3(fTotal, fFriction);
The values for fLift and fFriction are only set if FG_WEATHERCM is defined.
Jonathan Polley
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel