Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
booz_cam.h File Reference
#include "generated/airframe.h"
#include "math/pprz_algebra_int.h"
#include "std.h"
#include "led.h"
+ Include dependency graph for booz_cam.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOOZ_CAM_MODE_NONE   0
 
#define BOOZ_CAM_MODE_MANUAL   1
 
#define BOOZ_CAM_MODE_HEADING   2
 
#define BOOZ_CAM_MODE_WP   3
 
#define BOOZ_CAM_ON   LED_OFF(CAM_SWITCH_LED)
 
#define BOOZ_CAM_OFF   LED_ON(CAM_SWITCH_LED)
 
#define booz_cam_SetCamMode(_v)
 
#define BOOZ_CAM_STICK_TILT_INC   (ANGLE_BFP_OF_REAL(RadOfDeg(10.))/127.)
 
#define BOOZ_CAM_STICK_PAN_INC   (ANGLE_BFP_OF_REAL(RadOfDeg(20.))/127.)
 
#define BOOZ_CAM_STICK_PARSE(_dl_buffer)
 

Functions

void booz_cam_init (void)
 
void booz_cam_periodic (void)
 

Variables

uint8_t booz_cam_mode
 

Macro Definition Documentation

#define BOOZ_CAM_MODE_HEADING   2

Definition at line 35 of file booz_cam.h.

Referenced by booz_cam_periodic().

#define BOOZ_CAM_MODE_MANUAL   1

Definition at line 34 of file booz_cam.h.

Referenced by booz_cam_periodic().

#define BOOZ_CAM_MODE_NONE   0

Definition at line 33 of file booz_cam.h.

Referenced by booz_cam_periodic().

#define BOOZ_CAM_MODE_WP   3

Definition at line 36 of file booz_cam.h.

Referenced by booz_cam_periodic().

#define BOOZ_CAM_OFF   LED_ON(CAM_SWITCH_LED)

Definition at line 45 of file booz_cam.h.

#define BOOZ_CAM_ON   LED_OFF(CAM_SWITCH_LED)

Definition at line 42 of file booz_cam.h.

#define booz_cam_SetCamMode (   _v)
Value:
{ \
else { BOOZ_CAM_ON; } \
}
#define BOOZ_CAM_OFF
Definition: booz_cam.h:45
#define BOOZ_CAM_ON
Definition: booz_cam.h:42
#define BOOZ_CAM_MODE_NONE
Definition: booz_cam.h:33
uint8_t booz_cam_mode
Definition: booz_cam.c:33

Definition at line 61 of file booz_cam.h.

Referenced by booz_cam_init().

#define BOOZ_CAM_STICK_PAN_INC   (ANGLE_BFP_OF_REAL(RadOfDeg(20.))/127.)

Definition at line 68 of file booz_cam.h.

#define BOOZ_CAM_STICK_PARSE (   _dl_buffer)
Value:
{ \
booz_cam_tilt += (int16_t)(BOOZ_CAM_STICK_TILT_INC*(float)DL_BOOZ_CAM_STICK_tilt(_dl_buffer)); \
booz_cam_pan += (int16_t)(BOOZ_CAM_STICK_PAN_INC*(float)DL_BOOZ_CAM_STICK_pan(dl_buffer)); \
INT32_COURSE_NORMALIZE(booz_cam_pan); \
}
#define BOOZ_CAM_STICK_PAN_INC
Definition: booz_cam.h:68
#define BOOZ_CAM_STICK_TILT_INC
Definition: booz_cam.h:67
signed short int16_t
Definition: types.h:17
#define INT32_COURSE_NORMALIZE(_a)

Definition at line 70 of file booz_cam.h.

#define BOOZ_CAM_STICK_TILT_INC   (ANGLE_BFP_OF_REAL(RadOfDeg(10.))/127.)

Definition at line 67 of file booz_cam.h.

Function Documentation

void booz_cam_init ( void  )

Definition at line 75 of file booz_cam.c.

References BOOZ_CAM_DEFAULT_MODE, booz_cam_SetCamMode, and BOOZ_CAM_SetPwm.

Variable Documentation

uint8_t booz_cam_mode

Definition at line 33 of file booz_cam.c.

Referenced by booz_cam_periodic().