return( FG_Altitude * FEET_TO_METER /* -rough_elev */ );
}
+double get_agl( void )
+{
+ fgFLIGHT *f;
+ double agl;
+
+ f = current_aircraft.flight;
+ agl = FG_Altitude * FEET_TO_METER - scenery.cur_elev;
+
+ return( agl );
+}
+
double get_sideslip( void )
{
fgFLIGHT *f;
/* $Log$
-/* Revision 1.11 1998/07/13 21:00:45 curt
-/* Integrated Charlies latest HUD updates.
-/* Wrote access functions for current fgOPTIONS.
+/* Revision 1.12 1998/07/13 21:28:00 curt
+/* Converted the aoa scale to a radio altimeter.
/*
+ * Revision 1.11 1998/07/13 21:00:45 curt
+ * Integrated Charlies latest HUD updates.
+ * Wrote access functions for current fgOPTIONS.
+ *
* Revision 1.10 1998/07/08 14:41:08 curt
* Renamed polar3d.h to polar3d.hxx
*
break;
- case 3: // Angle of Attack
+ case 3: // Radio Altimeter
HIptr = (instr_item *) new hud_card( 420,
195,
25,
150,
- get_aoa,
+ get_agl,
HUDS_LEFT | HUDS_VERT,
- 50, -40,
+ 1000, 0,
1.0,
- 2, 1,
+ 25, 5,
0,
- 1,
- 5.0,
+ 0,
+ 200.0,
true);
break;
}
/* $Log$
-/* Revision 1.16 1998/07/13 21:00:47 curt
-/* Integrated Charlies latest HUD updates.
-/* Wrote access functions for current fgOPTIONS.
+/* Revision 1.17 1998/07/13 21:28:02 curt
+/* Converted the aoa scale to a radio altimeter.
/*
+ * Revision 1.16 1998/07/13 21:00:47 curt
+ * Integrated Charlies latest HUD updates.
+ * Wrote access functions for current fgOPTIONS.
+ *
* Revision 1.15 1998/07/08 14:41:08 curt
* Renamed polar3d.h to polar3d.hxx
*
extern double get_pitch ( void );
extern double get_heading ( void );
extern double get_altitude ( void );
+extern double get_agl ( void );
extern double get_sideslip ( void );
extern double get_frame_rate ( void );
extern double get_latitude ( void );
#endif // _HUD_H
/* $Log$
-/* Revision 1.9 1998/07/13 21:00:48 curt
-/* Integrated Charlies latest HUD updates.
-/* Wrote access functions for current fgOPTIONS.
+/* Revision 1.10 1998/07/13 21:28:02 curt
+/* Converted the aoa scale to a radio altimeter.
/*
+ * Revision 1.9 1998/07/13 21:00:48 curt
+ * Integrated Charlies latest HUD updates.
+ * Wrote access functions for current fgOPTIONS.
+ *
* Revision 1.8 1998/07/03 13:16:29 curt
* Added Charlie Hotchkiss's HUD updates and improvementes.
*