Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
nps_flightgear.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void nps_flightgear_init (const char *host, unsigned int port, unsigned int port_in, unsigned int time_offset)
void nps_flightgear_send (void)
 Send FlightGear GUI packet For visualization of airplane position and attitude only start fgfs with –native-gui=socket... option.
void nps_flightgear_send_fdm (void)
 Send FlightGear FDM packet For visualization with moving surfaces (elevator, propeller etc).

Function Documentation

◆ nps_flightgear_init()

void nps_flightgear_init ( const char * host,
unsigned int port,
unsigned int port_in,
unsigned int time_offset )
extern

Definition at line 52 of file nps_flightgear.c.

References flightgear, nps_flightgear_receive(), and th_fg_rx.

Referenced by nps_flight_gear_loop().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nps_flightgear_send()

void nps_flightgear_send ( void )
extern

◆ nps_flightgear_send_fdm()

void nps_flightgear_send_fdm ( void )
extern

Send FlightGear FDM packet For visualization with moving surfaces (elevator, propeller etc).

start fgfs with –native-fdm=socket... option

Definition at line 115 of file nps_flightgear.c.

References FGNetFDM::agl, FGNetFDM::altitude, FGNetFDM::climb_rate, FGNetFDM::cur_time, FGNetFDM::elevator, FGNetFDM::eng_state, fdm, FG_NET_FDM_MAX_ENGINES, FG_NET_FDM_VERSION, flightgear, FGNetFDM::fuel_quantity, htond(), htonf(), FGNetFDM::latitude, FGNetFDM::left_aileron, FGNetFDM::left_flap, FGNetFDM::longitude, FGNetFDM::num_engines, FGNetFDM::num_tanks, FGNetFDM::phi, FGNetFDM::psi, FGNetFDM::right_aileron, FGNetFDM::right_flap, FGNetFDM::rpm, FGNetFDM::rudder, FGNetFDM::theta, FGNetFDM::vcas, FGNetFDM::version, and FGNetFDM::warp.

Referenced by nps_flight_gear_loop().

Here is the call graph for this function:
Here is the caller graph for this function: