paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [5087] Selectable Shutter Speed


From: Christophe De Wagter
Subject: [paparazzi-commits] [5087] Selectable Shutter Speed
Date: Tue, 20 Jul 2010 15:18:47 +0000

Revision: 5087
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5087
Author:   dewagter
Date:     2010-07-20 15:18:47 +0000 (Tue, 20 Jul 2010)
Log Message:
-----------
Selectable Shutter Speed

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/dc.h

Modified: paparazzi3/trunk/sw/airborne/dc.h
===================================================================
--- paparazzi3/trunk/sw/airborne/dc.h   2010-07-20 15:04:43 UTC (rev 5086)
+++ paparazzi3/trunk/sw/airborne/dc.h   2010-07-20 15:18:47 UTC (rev 5087)
@@ -109,6 +109,14 @@
 
 #define dc_init() { /* initialized as leds */ dc_periodic_shutter = 0; } /* 
Output */
 
+
+#ifndef DC_GPS_TRIGGER_START 
+#define DC_GPS_TRIGGER_START 1
+#endif
+#ifndef DC_GPS_TRIGGER_STOP 
+#define DC_GPS_TRIGGER_STOP 3
+#endif
+
 static inline void dc_shoot_on_gps( void ) {
   static uint8_t gps_msg_counter = 0;
 
@@ -124,13 +132,13 @@
       DOWNLINK_SEND_DC_SHOT(DefaultChannel, &dc_photo_nr, &gps_utm_east, 
&gps_utm_north, &gps_z, &gps_utm_zone, &phi, &theta,  &gps_course, &gps_gspeed, 
&gps_itow);
       dc_photo_nr++;
     }
-    else if (gps_msg_counter == 1)
+    else if (gps_msg_counter == DC_GPS_TRIGGER_START)
     {
       DC_RELEASE(DC_SHUTTER_LED);
     }
   
     gps_msg_counter++;
-    if (gps_msg_counter >= 4)
+    if (gps_msg_counter >= DC_GPS_TRIGGER_STOP)
       gps_msg_counter = 0;
   }
 }      




reply via email to

[Prev in Thread] Current Thread [Next in Thread]