1
0
Fork 0

Initialize all members.

Modified Files:
	src/AIModel/AIAircraft.cxx src/AIModel/AIBase.cxx
This commit is contained in:
frohlich 2009-09-04 17:03:50 +00:00 committed by Tim Moore
parent ccb9e64caf
commit cb10d714fd
2 changed files with 36 additions and 1 deletions

View file

@ -79,11 +79,12 @@ FGAIAircraft::FGAIAircraft(FGAISchedule *ref) : FGAIBase(otAircraft) {
alt_lock = false;
roll = 0;
headingChangeRate = 0.0;
headingError = 0;
holdPos = false;
_performance = 0; //TODO initialize to JET_TRANSPORT from PerformanceDB
dt = 0;
}

View file

@ -82,6 +82,40 @@ FGAIBase::FGAIBase(object_type ot) :
_impact_reported = false;
_collision_reported = false;
_subID = 0;
_x_offset = 0;
_y_offset = 0;
_z_offset = 0;
_pitch_offset = 0;
_roll_offset = 0;
_yaw_offset = 0;
userpos = SGGeod::fromDeg(0, 0);
pos = SGGeod::fromDeg(0, 0);
speed = 0;
altitude_ft = 0;
speed_north_deg_sec = 0;
speed_east_deg_sec = 0;
turn_radius_ft = 0;
ft_per_deg_lon = 0;
ft_per_deg_lat = 0;
horiz_offset = 0;
vert_offset = 0;
ht_diff = 0;
serviceable = false;
fp = 0;
rho = 1;
T = 280;
p = 1e5;
a = 340;
Mach = 0;
}
FGAIBase::~FGAIBase() {