1
0
Fork 0

Added Mach Number to hud.

Change reported speed on hud from V_equiv_kts to V_calibrated_kts.
This commit is contained in:
curt 2000-01-10 21:06:39 +00:00
parent 226b8a8971
commit eedbfddbf1
3 changed files with 28 additions and 1 deletions

View file

@ -161,11 +161,17 @@ float get_rudderval( void )
float get_speed( void )
{
// Make an explicit function call.
float speed = current_aircraft.fdm_state->get_V_equiv_kts()
float speed = current_aircraft.fdm_state->get_V_calibrated_kts()
* current_options.get_speed_up();
return( speed );
}
float get_mach(void)
{
float mach=current_aircraft.fdm_state->get_Mach_number();
return mach;
}
float get_aoa( void )
{
float aoa = current_aircraft.fdm_state->get_Alpha() * RAD_TO_DEG;

View file

@ -333,6 +333,26 @@ int fgHUDInit( fgAIRCRAFT * /* current_aircraft */ )
50.0,
true);
HUD_deque.insert( HUD_deque.begin(), HIptr);
// case 10: // Digital Mach number
HIptr = (instr_item *) new instr_label ( min_x , //same as speed tape
cen_y-(compass_w/2) -10, //below speed tape
40,
30,
get_mach,
"%4.2f",
"",
NULL,
1.0,
HUDS_TOP,
RIGHT_JUST,
font_size,
0,
TRUE );
HUD_deque.insert( HUD_deque.begin(), HIptr);
// case 9:

View file

@ -180,6 +180,7 @@ extern float get_vfc_ratio ( void );
extern float get_vfc_tris_drawn ( void );
extern float get_vfc_tris_culled ( void );
extern float get_climb_rate ( void );
extern float get_mach( void );
extern char *coord_format_lat(float);
extern char *coord_format_lon(float);
//extern char *coord_format_latlon(float latitude, float longitude); // cockpit.cxx