Skip to content

Commit

Permalink
[booz_cam] fix compilation when settings is loaded wihtout tilt
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger committed Jun 26, 2012
1 parent dc73ef9 commit 4c0b304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion sw/airborne/modules/cam_control/booz_cam.c
Expand Up @@ -34,8 +34,8 @@ uint8_t booz_cam_mode;

// Tilt definition
int16_t booz_cam_tilt;
#ifdef BOOZ_CAM_TILT_NEUTRAL
int16_t booz_cam_tilt_pwm;
#ifdef BOOZ_CAM_TILT_NEUTRAL
#ifndef BOOZ_CAM_TILT_MIN
#define BOOZ_CAM_TILT_MIN BOOZ_CAM_TILT_NEUTRAL
#endif
Expand Down Expand Up @@ -79,6 +79,7 @@ void booz_cam_init(void) {
BOOZ_CAM_SetPwm(booz_cam_tilt_pwm);
booz_cam_tilt = 0;
#else
booz_cam_tilt_pwm = 1500;
booz_cam_tilt = 0;
#endif
#ifdef BOOZ_CAM_USE_PAN
Expand Down
3 changes: 0 additions & 3 deletions sw/airborne/modules/cam_control/booz_cam.h
Expand Up @@ -49,10 +49,7 @@ extern uint8_t booz_cam_mode;

extern int16_t booz_cam_tilt;
extern int16_t booz_cam_pan;

#ifdef BOOZ_CAM_TILT_NEUTRAL
extern int16_t booz_cam_tilt_pwm;
#endif

extern void booz_cam_init(void);
extern void booz_cam_periodic(void);
Expand Down

0 comments on commit 4c0b304

Please sign in to comment.