[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [5215] default booz_cam mode can be set in airframe
From: |
Gautier Hattenberger |
Subject: |
[paparazzi-commits] [5215] default booz_cam mode can be set in airframe file |
Date: |
Wed, 04 Aug 2010 16:52:58 +0000 |
Revision: 5215
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5215
Author: gautier
Date: 2010-08-04 16:52:58 +0000 (Wed, 04 Aug 2010)
Log Message:
-----------
default booz_cam mode can be set in airframe file
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/modules/vision/booz_cam.c
Modified: paparazzi3/trunk/sw/airborne/modules/vision/booz_cam.c
===================================================================
--- paparazzi3/trunk/sw/airborne/modules/vision/booz_cam.c 2010-08-04
16:23:56 UTC (rev 5214)
+++ paparazzi3/trunk/sw/airborne/modules/vision/booz_cam.c 2010-08-04
16:52:58 UTC (rev 5215)
@@ -67,8 +67,12 @@
#define BOOZ_CAM_SetPwm(_v) Booz2SetPwmValue(_v)
#endif
+#ifndef BOOZ_CAM_DEFAULT_MODE
+#define BOOZ_CAM_DEFAULT_MODE BOOZ_CAM_MODE_NONE
+#endif
+
void booz_cam_init(void) {
- booz_cam_mode = BOOZ_CAM_MODE_NONE;
+ booz_cam_mode = BOOZ_CAM_DEFAULT_MODE;
#ifdef BOOZ_CAM_USE_TILT
booz_cam_tilt_pwm = BOOZ_CAM_TILT_NEUTRAL;
BOOZ_CAM_SetPwm(booz_cam_tilt_pwm);
@@ -77,8 +81,8 @@
#ifdef BOOZ_CAM_USE_PAN
booz_cam_pan = BOOZ_CAM_PAN_NEUTRAL;
#endif
- LED_ON(CAM_SWITCH_LED); // CAM OFF
- LED_OFF(CAM_SWITCH_LED); // CAM ON
+ if (booz_cam_mode == BOOZ_CAM_MODE_NONE) { LED_ON(CAM_SWITCH_LED); } // CAM
OFF
+ else { LED_OFF(CAM_SWITCH_LED); } // CAM ON
}
void booz_cam_periodic(void) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [5215] default booz_cam mode can be set in airframe file,
Gautier Hattenberger <=