|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include <pthread.h>#include <sys/time.h>#include "nps_fdm.h"#include "mcu_periph/sys_time.h"#include "nps_atmosphere.h"#include "nps_sensors.h"#include "nps_autopilot.h"Go to the source code of this file.
Data Structures | |
| struct | NpsMain |
Macros | |
| #define | clock_get_current_time(_x) |
| #define | SIM_DT (1./SYS_TIME_FREQUENCY) |
| #define | DISPLAY_DT (1./30.) |
| #define | HOST_TIMEOUT_MS 40 |
Functions | |
| bool | nps_main_parse_options (int argc, char **argv) |
| int | nps_main_init (int argc, char **argv) |
| void | nps_radio_and_autopilot_init (void) |
| void | nps_main_run_sim_step (void) |
| void | nps_set_time_factor (float time_factor) |
| void * | nps_main_loop (void *data) |
| void * | nps_flight_gear_loop (void *data) |
| void * | nps_main_display (void *data) |
| void | tstp_hdl (int n) |
| void | cont_hdl (int n) |
| double | time_to_double (struct timeval *t) |
| double | ntime_to_double (struct timespec *t) |
| void | nps_update_launch_from_dl (uint8_t value) |
| void | nps_hitl_impl_init (void) |
| END pprzlink_dev. | |
Variables | |
| pthread_t | th_flight_gear |
| pthread_t | th_display_ivy |
| pthread_t | th_main_loop |
| pthread_mutex_t | fdm_mutex |
| int | pauseSignal |
| struct NpsMain | nps_main |
| struct NpsMain |
Definition at line 53 of file nps_main.h.
| #define clock_get_current_time | ( | _x | ) |
Definition at line 17 of file nps_main.h.
Referenced by nps_flight_gear_loop(), nps_main_loop(), and nps_sensors_loop().
| #define DISPLAY_DT (1./30.) |
Definition at line 21 of file nps_main.h.
Referenced by nps_flight_gear_loop().
| #define HOST_TIMEOUT_MS 40 |
Definition at line 22 of file nps_main.h.
Referenced by nps_main_loop().
| #define SIM_DT (1./SYS_TIME_FREQUENCY) |
Definition at line 20 of file nps_main.h.
Referenced by nps_main_init(), nps_main_loop(), and nps_main_run_sim_step().
|
extern |
Definition at line 68 of file nps_main_common.c.
References cont_hdl(), and tstp_hdl().
Referenced by cont_hdl(), and nps_main_init().
|
extern |
Definition at line 265 of file nps_main_common.c.
References clock_get_current_time, DISPLAY_DT, E6, fdm_mutex, nps_flightgear_init(), nps_flightgear_send(), nps_flightgear_send_fdm(), nps_main, and TRUE.
Referenced by main().
|
extern |
END pprzlink_dev.
Definition at line 154 of file nps_hitl_sensors.c.
References AP_BAUD, AP_DEV, char_available(), check_free_space(), dev, getch(), nps_ap_data_loop(), nps_sensors_loop(), put_buffer(), put_byte(), send_message(), serial_port_free(), serial_port_new(), serial_port_open_raw(), th_ap_data, and th_sensors.
Referenced by main().
|
extern |
Definition at line 313 of file nps_main_common.c.
References nps_ivy_init(), nps_ivy_run(), and nps_main.
Referenced by main().
|
extern |
Definition at line 86 of file nps_main_common.c.
References cont_hdl(), nps_atmosphere_init(), nps_fdm_init(), nps_main, nps_main_parse_options(), nps_radio_and_autopilot_init(), nps_sensors_init(), pauseSignal, SIM_DT, time_to_double(), and tstp_hdl().
Referenced by main().
|
extern |
Definition at line 78 of file nps_main_hitl.c.
References clock_get_current_time, E6, fdm, fdm_mutex, HOST_TIMEOUT_MS, nps_fdm_run_init_step(), nps_main, nps_main_run_sim_step(), ntime_to_double(), pauseSignal, SIM_DT, t1, time_to_double(), and TRUE.
Referenced by main().
|
extern |
Definition at line 154 of file nps_main_common.c.
References nps_main, TRUE, and usage().
Referenced by nps_main_init().
|
extern |
Definition at line 68 of file nps_main_hitl.c.
References 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(), and SIM_DT.
Referenced by nps_main_loop().
|
extern |
Definition at line 58 of file nps_main_hitl.c.
References JOYSTICK, NORC, nps_autopilot_init(), nps_main, SCRIPT, and SPEKTRUM.
Referenced by nps_main_init().
|
extern |
Definition at line 126 of file nps_main_common.c.
References nps_main, and time_to_double().
Referenced by on_WORLD_ENV().
| void nps_update_launch_from_dl | ( | uint8_t | value | ) |
Definition at line 62 of file nps_main_hitl.c.
References nps_autopilot.
Referenced by on_DL_SETTING().
|
extern |
Definition at line 81 of file nps_main_common.c.
Referenced by nps_main_loop().
|
extern |
Definition at line 76 of file nps_main_common.c.
Referenced by nps_main_init(), nps_main_loop(), and nps_set_time_factor().
|
extern |
Definition at line 56 of file nps_main_common.c.
References pauseSignal.
Referenced by cont_hdl(), and nps_main_init().
|
extern |
Definition at line 36 of file nps_main_common.c.
Referenced by nps_ap_data_loop(), nps_flight_gear_loop(), nps_flightgear_receive(), nps_ivy_display(), nps_ivy_send_WORLD_ENV_REQ(), nps_main_loop(), and nps_sensors_loop().
|
extern |
Definition at line 38 of file nps_main_common.c.
Referenced by main(), nps_flight_gear_loop(), nps_main_display(), nps_main_init(), nps_main_loop(), nps_main_parse_options(), nps_main_run_sim_step(), nps_radio_and_autopilot_init(), nps_sensors_loop(), and nps_set_time_factor().
|
extern |
Definition at line 37 of file nps_main_common.c.
Referenced by nps_main_init(), nps_main_loop(), and tstp_hdl().
|
extern |
Definition at line 34 of file nps_main_common.c.
Referenced by main().
|
extern |
Definition at line 33 of file nps_main_common.c.
Referenced by main().
|
extern |
Definition at line 35 of file nps_main_common.c.
Referenced by main().