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.c File Reference
#include "cam_control/booz_cam.h"
#include "modules/core/booz_pwm_arch.h"
#include "subsystems/ahrs.h"
#include "firmwares/rotorcraft/navigation.h"
#include "subsystems/ins.h"
#include "generated/flight_plan.h"
#include "std.h"
+ Include dependency graph for booz_cam.c:

Go to the source code of this file.

Macros

#define BOOZ_CAM_SetPwm(_v)   BoozSetPwmValue(_v)
 
#define BOOZ_CAM_DEFAULT_MODE   BOOZ_CAM_MODE_NONE
 
#define D_TILT   (BOOZ_CAM_TILT_MAX - BOOZ_CAM_TILT_MIN)
 
#define CT_MIN   Min(BOOZ_CAM_TILT_MIN,BOOZ_CAM_TILT_MAX)
 
#define CT_MAX   Max(BOOZ_CAM_TILT_MIN,BOOZ_CAM_TILT_MAX)
 
#define CP_MIN   Min(BOOZ_CAM_PAN_MIN,BOOZ_CAM_PAN_MAX)
 
#define CP_MAX   Max(BOOZ_CAM_PAN_MIN,BOOZ_CAM_PAN_MAX)
 

Functions

void booz_cam_init (void)
 
void booz_cam_periodic (void)
 

Variables

uint8_t booz_cam_mode
 

Macro Definition Documentation

#define BOOZ_CAM_DEFAULT_MODE   BOOZ_CAM_MODE_NONE

Definition at line 72 of file booz_cam.c.

Referenced by booz_cam_init().

#define BOOZ_CAM_SetPwm (   _v)    BoozSetPwmValue(_v)

Definition at line 68 of file booz_cam.c.

Referenced by booz_cam_init(), and booz_cam_periodic().

#define CP_MAX   Max(BOOZ_CAM_PAN_MIN,BOOZ_CAM_PAN_MAX)

Definition at line 91 of file booz_cam.c.

Referenced by booz_cam_periodic().

#define CP_MIN   Min(BOOZ_CAM_PAN_MIN,BOOZ_CAM_PAN_MAX)

Definition at line 90 of file booz_cam.c.

Referenced by booz_cam_periodic().

#define CT_MAX   Max(BOOZ_CAM_TILT_MIN,BOOZ_CAM_TILT_MAX)

Definition at line 89 of file booz_cam.c.

Referenced by booz_cam_periodic().

#define CT_MIN   Min(BOOZ_CAM_TILT_MIN,BOOZ_CAM_TILT_MAX)

Definition at line 88 of file booz_cam.c.

Referenced by booz_cam_periodic().

#define D_TILT   (BOOZ_CAM_TILT_MAX - BOOZ_CAM_TILT_MIN)

Definition at line 87 of file booz_cam.c.

Referenced by booz_cam_periodic().

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().