Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
nps_main_common.c File Reference
#include "nps_main.h"
#include <signal.h>
#include <stdio.h>
#include <getopt.h>
#include "nps_flightgear.h"
#include "nps_ivy.h"
+ Include dependency graph for nps_main_common.c:

Go to the source code of this file.

Functions

void tstp_hdl (int n)
 
void cont_hdl (int n)
 
double time_to_double (struct timeval *t)
 
double ntime_to_double (struct timespec *t)
 
int nps_main_init (int argc, char **argv)
 
void nps_set_time_factor (float time_factor)
 
bool nps_main_parse_options (int argc, char **argv)
 
void * nps_flight_gear_loop (void *data)
 
void * nps_main_display (void *data)
 

Function Documentation

◆ cont_hdl()

void cont_hdl ( int  n)

Definition at line 61 of file nps_main_common.c.

References tstp_hdl().

Referenced by nps_main_init().

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

◆ nps_flight_gear_loop()

void* nps_flight_gear_loop ( void *  data)

Definition at line 258 of file nps_main_common.c.

References clock_get_current_time, DISPLAY_DT, fdm_mutex, NpsMain::fg_fdm, NpsMain::fg_host, NpsMain::fg_port, NpsMain::fg_port_in, NpsMain::fg_time_offset, nps_flightgear_init(), nps_flightgear_send(), nps_flightgear_send_fdm(), nps_main, and TRUE.

Referenced by main().

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

◆ nps_main_display()

void* nps_main_display ( void *  data)

Definition at line 306 of file nps_main_common.c.

References clock_get_current_time, DISPLAY_DT, fdm, fdm_mutex, NpsMain::ivy_bus, NpsMain::nodisplay, nps_ivy_display(), nps_ivy_init(), nps_main, sensors, and TRUE.

Referenced by main().

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

◆ nps_main_init()

int nps_main_init ( int  argc,
char **  argv 
)

◆ nps_main_parse_options()

bool nps_main_parse_options ( int  argc,
char **  argv 
)

◆ nps_set_time_factor()

void nps_set_time_factor ( float  time_factor)

Definition at line 119 of file nps_main_common.c.

References NpsMain::host_time_factor, nps_main, NpsMain::scaled_initial_time, and time_to_double().

Referenced by on_WORLD_ENV().

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

◆ ntime_to_double()

double ntime_to_double ( struct timespec *  t)

Definition at line 74 of file nps_main_common.c.

Referenced by nps_main_loop().

+ Here is the caller graph for this function:

◆ time_to_double()

double time_to_double ( struct timeval *  t)

Definition at line 69 of file nps_main_common.c.

Referenced by nps_main_init(), nps_main_loop(), and nps_set_time_factor().

+ Here is the caller graph for this function:

◆ tstp_hdl()

void tstp_hdl ( int  n)

Definition at line 49 of file nps_main_common.c.

References pauseSignal.

Referenced by cont_hdl(), and nps_main_init().

+ Here is the caller graph for this function: