Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nps_autopilot.h File Reference
#include "generated/airframe.h"
#include "nps_radio_control.h"
+ Include dependency graph for nps_autopilot.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  NpsAutopilot
 

Macros

#define NPS_COMMANDS_NB   4
 Number of commands sent to the FDM of NPS. More...
 

Functions

void sim_overwrite_ahrs (void)
 
void sim_overwrite_ins (void)
 
void nps_autopilot_init (enum NpsRadioControlType type, int num_script, char *js_dev)
 
void nps_autopilot_run_step (double time)
 
void nps_autopilot_run_systime_step (void)
 

Variables

struct NpsAutopilot autopilot
 
bool nps_bypass_ahrs
 
bool nps_bypass_ins
 

Data Structure Documentation

struct NpsAutopilot

Definition at line 27 of file nps_autopilot.h.

Data Fields
double commands[NPS_COMMANDS_NB]
bool launch

Macro Definition Documentation

#define NPS_COMMANDS_NB   4

Number of commands sent to the FDM of NPS.

If MOTOR_MIXING_NB_MOTOR is defined (usually rotorcraft firmware) we have that many commands (one per motor), otherwise we default to the number of high level commands (COMMANDS_NB).

Definition at line 22 of file nps_autopilot.h.

Referenced by nps_autopilot_run_step(), and nps_main_run_sim_step().

Function Documentation

void nps_autopilot_init ( enum NpsRadioControlType  type,
int  num_script,
char *  js_dev 
)

Definition at line 75 of file nps_autopilot_fixedwing.c.

References Ap, autopilot, FALSE, Fbw, init, NpsAutopilot::launch, main_init(), nps_bypass_ahrs, NPS_BYPASS_AHRS, nps_bypass_ins, NPS_BYPASS_INS, nps_electrical_init(), nps_radio_control_init(), and TRUE.

Referenced by nps_main_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void nps_autopilot_run_systime_step ( void  )

Definition at line 91 of file nps_autopilot_fixedwing.c.

References sys_tick_handler().

Referenced by nps_main_run_sim_step().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void sim_overwrite_ahrs ( void  )

Definition at line 195 of file nps_autopilot_fixedwing.c.

References NpsFdm::body_ecef_rotvel, fdm, NpsFdm::ltp_to_body_quat, QUAT_COPY, RATES_COPY, stateSetBodyRates_f(), and stateSetNedToBodyQuat_f().

Referenced by nps_autopilot_run_step().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

struct NpsAutopilot autopilot
bool nps_bypass_ahrs

Definition at line 59 of file nps_autopilot_fixedwing.c.

Referenced by nps_autopilot_init(), and nps_autopilot_run_step().

bool nps_bypass_ins