Initialize all members.
Modified Files: src/AIModel/AIAircraft.cxx src/AIModel/AIBase.cxx
This commit is contained in:
parent
ccb9e64caf
commit
cb10d714fd
2 changed files with 36 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue