[Flightgear-devel] re: Fix for build break with New AIBase.cxx (mac os x and cygwin)

2004-05-28 Thread ima . sudonim
Oops!  Forgot 4 important things.  Try this one instead:


AIBase.cxx
Description: Binary data

(as follows):
void FGAIBase::bind() {
double (FGAIBase::*pgVS_fps) () const;
void (FGAIBase::*psVS_fps) ( double );
double (FGAIBase::*pga) () const ;
void (FGAIBase::*psa) ( double ) ;
double (FGAIBase::*pgLat) () const ;
void (FGAIBase::*psLat) ( double ) ;
double (FGAIBase::*pgLong) () const ;
void (FGAIBase::*psLong) ( double ) ;
bool (FGAIBase::*piN) () const;
	pgVS_fps = FGAIBase::_getVS_fps ;
	psVS_fps = FGAIBase::_setVS_fps ;
	pga = FGAIBase::_getAltitude ;
	psa = FGAIBase::_setAltitude ;
	pgLat = FGAIBase::_getLatitude ;
	psLat = FGAIBase::_setLatitude ;
	pgLong = FGAIBase::_getLongitude ;
	psLong = FGAIBase::_setLongitude ;
	piN = FGAIBase::_isNight ;
	
   props-tie(id, SGRawValuePointerint(id));
   props-tie(velocities/true-airspeed-kt,  
SGRawValuePointerdouble(speed));
   props-tie(velocities/vertical-speed-fps,
   SGRawValueMethodsFGAIBase,double(*this,
 pgVS_fps,
 psVS_fps));

   props-tie(position/altitude-ft,
   SGRawValueMethodsFGAIBase,double(*this,
 pga,
 psa ));
   props-tie(position/latitude-deg,
   SGRawValueMethodsFGAIBase,double(*this,
 pgLat,
 psLat));
   props-tie(position/longitude-deg,
   SGRawValueMethodsFGAIBase,double(*this,
 pgLong,
 psLong ));
   props-tie(orientation/pitch-deg,   
SGRawValuePointerdouble(pitch));
   props-tie(orientation/roll-deg,
SGRawValuePointerdouble(roll));
   props-tie(orientation/true-heading-deg, 
SGRawValuePointerdouble(hdg));

   props-tie(radar/bearing-deg,   
SGRawValuePointerdouble(bearing));
   props-tie(radar/elevation-deg, 
SGRawValuePointerdouble(elevation));
   props-tie(radar/range-nm, SGRawValuePointerdouble(range));
   props-tie(radar/h-offset, 
SGRawValuePointerdouble(horiz_offset));
   props-tie(radar/v-offset, 
SGRawValuePointerdouble(vert_offset));
   props-tie(radar/x-shift, SGRawValuePointerdouble(x_shift));
   props-tie(radar/y-shift, SGRawValuePointerdouble(y_shift));
   props-tie(radar/rotation, SGRawValuePointerdouble(rotation));

   props-tie(controls/lighting/nav-lights,
   SGRawValueMethodsFGAIBase,bool(*this, piN));
   props-setBoolValue(controls/lighting/beacon, true);
   props-setBoolValue(controls/lighting/strobe, true);
}
Sorry for the trouble!
Ima___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel


Re: [Flightgear-devel] re: Fix for build break with New AIBase.cxx (mac os x and cygwin)

2004-05-28 Thread Erik Hofman
[EMAIL PROTECTED] wrote:
Oops!  Forgot 4 important things.  Try this one instead:

Sorry for the trouble!
No problem. It turned out to be much simpler than that, but thanks for 
the hint anyway. A fix is in CVS now.

Erik
___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel