Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
rc_settings.c File Reference
#include <inttypes.h>
#include "generated/radio.h"
#include "rc_settings.h"
#include "autopilot.h"
#include "subsystems/nav.h"
#include "subsystems/sensors/infrared.h"
#include "estimator.h"
#include "inter_mcu.h"
#include "firmwares/fixedwing/stabilization/stabilization_attitude.h"
#include "generated/settings.h"
+ Include dependency graph for rc_settings.c:

Go to the source code of this file.

Macros

#define ParamValInt16(param_init_val, param_travel, cur_pulse, init_pulse)   (param_init_val + (int16_t)(((float)(cur_pulse - init_pulse)) * param_travel / (float)MAX_PPRZ))
 
#define ParamValFloat(param_init_val, param_travel, cur_pulse, init_pulse)   (param_init_val + ((float)(cur_pulse - init_pulse)) * param_travel / (float)MAX_PPRZ)
 
#define RcChannel(x)   (fbw_state->channels[x])
 

Functions

void rc_settings (bool_t mode_changed __attribute__((unused)))
 Includes generated code from tuning_rc.xml. More...
 

Variables

uint8_t rc_settings_mode = 0
 
float slider_1_val
 
float slider_2_val
 

Macro Definition Documentation

#define ParamValFloat (   param_init_val,
  param_travel,
  cur_pulse,
  init_pulse 
)    (param_init_val + ((float)(cur_pulse - init_pulse)) * param_travel / (float)MAX_PPRZ)

Definition at line 43 of file rc_settings.c.

#define ParamValInt16 (   param_init_val,
  param_travel,
  cur_pulse,
  init_pulse 
)    (param_init_val + (int16_t)(((float)(cur_pulse - init_pulse)) * param_travel / (float)MAX_PPRZ))

Definition at line 40 of file rc_settings.c.

#define RcChannel (   x)    (fbw_state->channels[x])

Definition at line 46 of file rc_settings.c.

Function Documentation

void rc_settings ( bool_t mode_changed   __attribute__(unused))

Includes generated code from tuning_rc.xml.

Definition at line 52 of file rc_settings.c.

Referenced by telecommand_task().

+ Here is the caller graph for this function:

Variable Documentation

uint8_t rc_settings_mode = 0

Definition at line 37 of file rc_settings.c.

float slider_1_val

Definition at line 38 of file rc_settings.c.

float slider_2_val

Definition at line 38 of file rc_settings.c.