Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules 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 94 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_CORRECTION_LEFT   1.

Definition at line 82 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_CORRECTION_RIGHT   1.

Definition at line 86 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_CORRECTION_UP   1.

Definition at line 90 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_IR1_SIGN   1

Definition at line 34 of file infrared.h.

#define IR_IR2_SIGN   1

Definition at line 38 of file infrared.h.

#define IR_LATERAL_CORRECTION   1.

Definition at line 70 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_LONGITUDINAL_CORRECTION   1.

Definition at line 74 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_PITCH_NEUTRAL_DEFAULT   0.0

Definition at line 106 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_ROLL_NEUTRAL_DEFAULT   0.0

Definition at line 102 of file infrared.h.

Referenced by infrared_struct_init().

#define IR_TOP_SIGN   1

Definition at line 42 of file infrared.h.

#define IR_TopOfIr (   _ir)    (_ir)

Definition at line 62 of file infrared.h.

#define IR_VERTICAL_CORRECTION   1.

Definition at line 78 of file infrared.h.

Referenced by infrared_struct_init().

#define UpdateIRValue (   _v)
Value:
{ \
}
float longitudinal_correction
Definition: infrared.h:136
int16_t ir2
Definition: infrared.h:113
float vertical_correction
Definition: infrared.h:137
struct Infrared infrared
Definition: infrared.c:34
int16_t roll
Definition: infrared.h:129
#define IR_TopOfIr(_ir)
Definition: infrared.h:62
#define IR_TOP_SIGN
Definition: infrared.h:42
float lateral_correction
Definition: infrared.h:135
#define IR_IR2_SIGN
Definition: infrared.h:38
#define IR_IR1_SIGN
Definition: infrared.h:34
struct Infrared_raw value
Definition: infrared.h:121
int16_t ir1
Definition: infrared.h:112
int16_t pitch
Definition: infrared.h:130
int16_t top
Definition: infrared.h:131
int16_t ir3
Definition: infrared.h:114

Definition at line 149 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 64 of file infrared_adc.c.

References infrared_i2cEvent.

void infrared_init ( void  )

Definition at line 55 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 59 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