25  unsigned int initial_time;
 
   26  unsigned int time_offset;
 
   58    perror(
"nps_flightgear_init flightgear.socket socket()");
 
   63    perror(
"nps_flightgear_init flightgear.socket setsockopt()");
 
   77      perror(
"nps_flightgear_init flightgear.socket_in socket()");
 
   82      perror(
"nps_flightgear_init flightgear.socket_in setsockopt()");
 
   90      perror(
"nps_flightgear_init bind()");
 
 
  202  gui.fuel_quantity[0] = 0.;
 
  210  gui.ground_elev = 0.;
 
  212  gui.tuned_freq = 125.65;
 
  213  gui.nav_radial = 90.;
 
  216  gui.course_deviation_deg = 0.;
 
  217  gui.gs_deviation_deg = 0.;
 
 
  251              (
double)
env.wind_from_north,
 
  252              (
double)
env.wind_from_east,
 
  253              (
double)
env.wind_from_down);
 
  267        perror(
"nps_flightgear_receive recvfrom()");
 
 
#define FG_NET_FDM_VERSION
#define FG_NET_FDM_MAX_ENGINES
#define FG_NET_GUI_VERSION
double alt
in meters above WGS84 reference ellipsoid
void nps_atmosphere_set_wind_ned(double wind_north, double wind_east, double wind_down)
Atmosphere model (pressure, wind) for NPS.
struct DoubleEulers ltp_to_body_eulers
float rpm[FG_NET_FDM_MAX_ENGINES]
uint32_t eng_state[FG_NET_FDM_MAX_ENGINES]
struct NpsFdm fdm
Holds all necessary NPS FDM state information.
void * nps_flightgear_receive(void *data)
Receive Flight Gear environment messages.
void nps_flightgear_send(void)
Send FlightGear GUI packet For visualization of airplane position and attitude only start fgfs with –...
void nps_flightgear_init(const char *host, unsigned int port, unsigned int port_in, unsigned int time_offset)
static double htond(double x)
static float htonf(float x)
static struct @357 flightgear
void nps_flightgear_send_fdm(void)
Send FlightGear FDM packet For visualization with moving surfaces (elevator, propeller etc).
pthread_mutex_t fdm_mutex