Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces 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
 

Data Structure Documentation

struct Infrared_raw

Definition at line 109 of file infrared.h.

Data Fields
int16_t ir1
int16_t ir2
int16_t ir3
struct Infrared

Infrared structure.

Definition at line 118 of file infrared.h.

+ Collaboration diagram for Infrared:
Data Fields
float correction_down
float correction_left
float correction_right
float correction_up
float lateral_correction
float longitudinal_correction
int16_t pitch
float pitch_neutral
float pitch_vneutral
int16_t roll
float roll_neutral
int16_t top
struct Infrared_raw value
float vertical_correction

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:
{ \
}
int16_t top
Definition: infrared.h:131
int16_t ir1
Definition: infrared.h:112
int16_t ir3
Definition: infrared.h:114
float longitudinal_correction
Definition: infrared.h:136
float lateral_correction
Definition: infrared.h:135
struct Infrared infrared
Definition: infrared.c:30
#define IR_TopOfIr(_ir)
Definition: infrared.h:62
#define IR_TOP_SIGN
Definition: infrared.h:42
float vertical_correction
Definition: infrared.h:137
int16_t roll
Definition: infrared.h:129
#define IR_IR2_SIGN
Definition: infrared.h:38
struct Infrared_raw value
Definition: infrared.h:121
#define IR_IR1_SIGN
Definition: infrared.h:34
int16_t ir2
Definition: infrared.h:113
int16_t pitch
Definition: infrared.h:130

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 66 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 60 of file infrared_adc.c.

References infrared_adc_update(), and infrared_i2c_update().

+ Here is the call graph for this function:

Variable Documentation