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
infrared.h File Reference
#include "std.h"
#include "generated/airframe.h"
+ Include dependency graph for infrared.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Infrared_raw
 
struct  Infrared
 Infrared structure. More...
 

Macros

#define IR_IR1_SIGN   1
 
#define IR_IR2_SIGN   1
 
#define IR_TOP_SIGN   1
 
#define IR_TopOfIr(_ir)   (_ir)
 
#define IR_LATERAL_CORRECTION   1.
 
#define IR_LONGITUDINAL_CORRECTION   1.
 
#define IR_VERTICAL_CORRECTION   1.
 
#define IR_CORRECTION_LEFT   1.
 
#define IR_CORRECTION_RIGHT   1.
 
#define IR_CORRECTION_UP   1.
 
#define IR_CORRECTION_DOWN   1.
 
#define IR_ROLL_NEUTRAL_DEFAULT   0.0
 
#define IR_PITCH_NEUTRAL_DEFAULT   0.0
 
#define UpdateIRValue(_v)
 

Functions

void infrared_struct_init (void)
 Initialisation of ir structure. More...
 
void infrared_init (void)
 
void infrared_update (void)
 
void infrared_event (void)
 

Variables

struct Infrared infrared
 

Macro Definition Documentation

#define IR_CORRECTION_DOWN   1.

Definition at line 96 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_CORRECTION_LEFT   1.

Definition at line 84 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_CORRECTION_RIGHT   1.

Definition at line 88 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_CORRECTION_UP   1.

Definition at line 92 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_IR1_SIGN   1

Definition at line 36 of file infrared.h.

#define IR_IR2_SIGN   1

Definition at line 40 of file infrared.h.

#define IR_LATERAL_CORRECTION   1.

Definition at line 72 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_LONGITUDINAL_CORRECTION   1.

Definition at line 76 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_PITCH_NEUTRAL_DEFAULT   0.0

Definition at line 108 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_ROLL_NEUTRAL_DEFAULT   0.0

Definition at line 104 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_TOP_SIGN   1

Definition at line 44 of file infrared.h.

#define IR_TopOfIr (   _ir)    (_ir)

Definition at line 64 of file infrared.h.

#define IR_VERTICAL_CORRECTION   1.

Definition at line 80 of file infrared.h.

Referenced by infrared_struct_init().

#define UpdateIRValue (   _v)
Value:
{ \
}
float longitudinal_correction
Definition: infrared.h:138
int16_t ir2
Definition: infrared.h:115
float vertical_correction
Definition: infrared.h:139
struct Infrared infrared
Definition: infrared.c:36
int16_t roll
Definition: infrared.h:131
#define IR_TopOfIr(_ir)
Definition: infrared.h:64
#define IR_TOP_SIGN
Definition: infrared.h:44
float lateral_correction
Definition: infrared.h:137
#define IR_IR2_SIGN
Definition: infrared.h:40
#define IR_IR1_SIGN
Definition: infrared.h:36
struct Infrared_raw value
Definition: infrared.h:123
int16_t ir1
Definition: infrared.h:114
int16_t pitch
Definition: infrared.h:132
int16_t top
Definition: infrared.h:133
int16_t ir3
Definition: infrared.h:116

Definition at line 151 of file infrared.h.

Referenced by infrared_adc_update(), infrared_i2c_hor_event(), and infrared_i2c_ver_event().

Function Documentation

void infrared_event ( void  )

Definition at line 66 of file infrared_adc.c.

References infrared_i2cEvent.

void infrared_init ( void  )

Definition at line 57 of file infrared_adc.c.

References infrared_adc_init(), and infrared_i2c_init().

+ Here is the call graph for this function:

void infrared_update ( void  )

Definition at line 61 of file infrared_adc.c.

References infrared_adc_update(), and infrared_i2c_update().

+ Here is the call graph for this function:

Variable Documentation

struct Infrared infrared