Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
nps_main_sitl.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include "nps_main.h"
#include "nps_fdm.h"
+ Include dependency graph for nps_main_sitl.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
void nps_update_launch_from_dl (uint8_t value)
 
void nps_radio_and_autopilot_init (void)
 
void nps_main_run_sim_step (void)
 
void * nps_main_loop (void *data)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 35 of file nps_main_sitl.c.

References NpsMain::fg_host, nps_flight_gear_loop(), nps_main, nps_main_display(), nps_main_init(), nps_main_loop(), th_display_ivy, th_flight_gear, and th_main_loop.

+ Here is the call graph for this function:

◆ nps_main_loop()

void* nps_main_loop ( void *  data)

Definition at line 89 of file nps_main_sitl.c.

References clock_get_current_time, NpsMain::display_time, fdm_mutex, NpsMain::host_time_factor, HOST_TIMEOUT_MS, nps_main, nps_main_run_sim_step(), pauseSignal, NpsMain::real_initial_time, NpsMain::scaled_initial_time, SIM_DT, NpsMain::sim_time, time_to_double(), and TRUE.

Referenced by main().

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

◆ nps_main_run_sim_step()

void nps_main_run_sim_step ( void  )

Definition at line 74 of file nps_main_sitl.c.

References NpsAutopilot::commands, NpsAutopilot::launch, nps_atmosphere_update(), nps_autopilot, nps_autopilot_run_step(), nps_autopilot_run_systime_step(), NPS_COMMANDS_NB, nps_fdm_run_step(), nps_main, nps_sensors_run_step(), SIM_DT, and NpsMain::sim_time.

Referenced by nps_main_loop().

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

◆ nps_radio_and_autopilot_init()

void nps_radio_and_autopilot_init ( void  )

Definition at line 55 of file nps_main_sitl.c.

References JOYSTICK, NpsMain::js_dev, NORC, NpsMain::norc, nps_autopilot_init(), nps_main, NpsMain::rc_script, SCRIPT, SPEKTRUM, and NpsMain::spektrum_dev.

Referenced by nps_main_init().

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

◆ nps_update_launch_from_dl()

void nps_update_launch_from_dl ( uint8_t  value)

Definition at line 52 of file nps_main_sitl.c.

Referenced by on_DL_SETTING().

+ Here is the caller graph for this function: