node->getIntValue("height"),
get_roll,
get_pitch, // FIXME getter functions from cockpit.cxx
- node->getBoolValue("working"),
+ node->getBoolValue("working", true),
HUDS_RIGHT),
width_units(int(node->getFloatValue("span_units"))),
div_units(int(fabs(node->getFloatValue("division_units")))),
factor = 640.0 / 55.0;
SG_LOG(SG_INPUT, SG_INFO, "Done reading HudLadder instrument"
- << node->getStringValue("name", "[NONE]"));
+ << node->getStringValue("name", "[unnamed]"));
if (!width_units)
width_units = 45;
}
-HudLadder::~HudLadder()
-{
-}
-
-
//
// Draws a climb ladder in the center of the HUD
//
alpha = get_aoa();
pla = get_throttleval();
-#ifdef ENABLE_SP_FMDS
+#ifdef ENABLE_SP_FDM
int lgear, wown, wowm, ilcanclaw, ihook;
ilcanclaw = get_iaux2();
lgear = get_iaux3();
glVertex2f(vel_x, vel_y + 6);
glEnd();
-#ifdef ENABLE_SP_FMDS
+#ifdef ENABLE_SP_FDM
// OBJECT MOVING RETICLE
// TYPE LINE
// ATTRIB - ON CONDITION
// TYPE - SQUARE_BRACKET
// ATTRIB - ON CONDITION
// alpha bracket
-#ifdef ENABLE_SP_FMDS
+#ifdef ENABLE_SP_FDM
if (alpha_bracket && ihook == 1) {
glBegin(GL_LINE_STRIP);
glVertex2f(vel_x - 20 , vel_y - (16 - alpha) * factor);
// OBJECT STATIC RETICLE
// TYPE LINE
// ATTRIB - ON CONDITION
-#ifdef ENABLE_SP_FMDS
+#ifdef ENABLE_SP_FDM
if (energy_worm && ilcanclaw == 1) {
glBegin(GL_LINE_STRIP);
glVertex2f(-15, -134);
LineList.erase();
StippleLineList.erase();
- int last = FloatToInt(vmax) + 1;
- int i = FloatToInt(vmin);
+ int last = float_to_int(vmax) + 1;
+ int i = float_to_int(vmin);
if (!scr_hole) {
x_end = half_span;
// TYPE LINE
// ATTRIB - ON CONDITION
// draw appraoch glide slope marker
-#ifdef ENABLE_SP_FMDS
+#ifdef ENABLE_SP_FDM
if (glide_slope_marker && ihook) {
Line(-half_span + 15, (glide_slope-actslope) * factor,
-half_span + hole, (glide_slope - actslope) * factor);
//*************************************************************
//*************************************************************
-#ifdef ENABLE_SP_FMDS
+#ifdef ENABLE_SP_FDM
if (waypoint_marker) {
//waypoint marker computation
float fromwp_lat, towp_lat, fromwp_lon, towp_lon, dist, delx, dely, hyp, theta, brg;