Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nps_autopilot.h
Go to the documentation of this file.
1 #ifndef NPS_AUTOPILOT_H
2 #define NPS_AUTOPILOT_H
3 
4 #include "generated/airframe.h"
5 
6 #include "nps_radio_control.h"
7 
14 #ifndef NPS_COMMANDS_NB
15 #if defined MOTOR_MIXING_NB_MOTOR
16 #define NPS_COMMANDS_NB MOTOR_MIXING_NB_MOTOR
17 #else
18 #define NPS_COMMANDS_NB COMMANDS_NB
19 #endif /* #if defined MOTOR_MIXING_NB_MOTOR */
20 #endif /* #ifndef NPS_COMMANDS_NB */
21 
22 struct NpsAutopilot {
24  bool launch;
25 };
26 
27 extern struct NpsAutopilot nps_autopilot;
28 
29 extern bool nps_bypass_ahrs;
30 extern bool nps_bypass_ins;
31 extern void sim_overwrite_ahrs(void);
32 extern void sim_overwrite_ins(void);
33 
34 extern void nps_autopilot_init(enum NpsRadioControlType type, int num_script, char *js_dev);
35 extern void nps_autopilot_run_step(double time);
36 extern void nps_autopilot_run_systime_step(void);
37 
38 
39 #endif /* NPS_AUTOPILOT_H */
40 
bool nps_bypass_ins
struct NpsAutopilot nps_autopilot
#define NPS_COMMANDS_NB
Number of commands sent to the FDM of NPS.
Definition: nps_autopilot.h:18
NpsRadioControlType
bool nps_bypass_ahrs
void nps_autopilot_run_step(double time)
void sim_overwrite_ahrs(void)
void nps_autopilot_run_systime_step(void)
double commands[NPS_COMMANDS_NB]
Definition: nps_autopilot.h:23
void sim_overwrite_ins(void)
void nps_autopilot_init(enum NpsRadioControlType type, int num_script, char *js_dev)