-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-#ifdef HAVE_WINDOWS_H
-# include <windows.h>
-#endif
-#include <stdlib.h>
-#include <string.h>
-#include <Aircraft/aircraft.hxx>
-#include <Include/fg_constants.h>
-#include <Math/fg_random.h>
-#include <Math/mat3.h>
-#include <Math/polar3d.hxx>
-#include <Scenery/scenery.hxx>
-#include <Time/fg_timer.hxx>
+#include "hud.hxx"
-#include "hud.hxx"
//============ Top of fgTBI_instr class member definitions ==============
fgTBI_instr ::
bank_angle = current_ch2(); // Roll limit +/- 30 degrees
- if( bank_angle < -FG_PI_2/3 ) {
- bank_angle = -FG_PI_2/3;
- } else if( bank_angle > FG_PI_2/3 ) {
- bank_angle = FG_PI_2/3;
+ if( bank_angle < -SGD_PI_2/3 ) {
+ bank_angle = -SGD_PI_2/3;
+ } else if( bank_angle > SGD_PI_2/3 ) {
+ bank_angle = SGD_PI_2/3;
}
sideslip_angle = current_ch1(); // Sideslip limit +/- 20 degrees
- if( sideslip_angle < -FG_PI/9 ) {
- sideslip_angle = -FG_PI/9;
- } else if( sideslip_angle > FG_PI/9 ) {
- sideslip_angle = FG_PI/9;
+ if( sideslip_angle < -SGD_PI/9 ) {
+ sideslip_angle = -SGD_PI/9;
+ } else if( sideslip_angle > SGD_PI/9 ) {
+ sideslip_angle = SGD_PI/9;
}
cen_x = centroid.x;
cen_y = centroid.y;
- bank = bank_angle * RAD_TO_DEG;
+ bank = bank_angle * SGD_RADIANS_TO_DEGREES;
tee = -tee_height;
fspan = span;
hole = scr_hole;
- ss_const = 2 * sideslip_angle * fspan/(FG_2PI/9); // width represents 40 degrees
+ ss_const = 2 * sideslip_angle * fspan/(SGD_2PI/9); // width represents 40 degrees
// printf("side_slip: %f fspan: %f\n", sideslip_angle, fspan);
// printf("ss_const: %f hole: %f\n", ss_const, hole);