paparazzi-commits
[Top][All Lists]
Advanced

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

[paparazzi-commits] [5720] GPS_TRIGGERED_FUNCTION Simulation


From: Christophe De Wagter
Subject: [paparazzi-commits] [5720] GPS_TRIGGERED_FUNCTION Simulation
Date: Fri, 27 Aug 2010 07:56:33 +0000

Revision: 5720
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5720
Author:   dewagter
Date:     2010-08-27 07:56:32 +0000 (Fri, 27 Aug 2010)
Log Message:
-----------
GPS_TRIGGERED_FUNCTION Simulation

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/main_ap.c

Modified: paparazzi3/trunk/sw/airborne/main_ap.c
===================================================================
--- paparazzi3/trunk/sw/airborne/main_ap.c      2010-08-27 06:13:37 UTC (rev 
5719)
+++ paparazzi3/trunk/sw/airborne/main_ap.c      2010-08-27 07:56:32 UTC (rev 
5720)
@@ -497,6 +497,11 @@
 
   switch(_4Hz) {
   case 0:
+#ifdef SITL
+#ifdef GPS_TRIGGERED_FUNCTION
+       GPS_TRIGGERED_FUNCTION();
+#endif
+#endif
     estimator_propagate_state();
     navigation_task();
     break;
@@ -906,13 +911,16 @@
       UseGpsPosNoSend(estimator_update_state_gps);
       gps_downlink();
 #ifdef GPS_TRIGGERED_FUNCTION
+#ifndef SITL
        GPS_TRIGGERED_FUNCTION();
 #endif
+#endif
       gps_pos_available = FALSE;
     }
   }
 #endif /** GPS */
 
+
 #if defined DATALINK 
 
 #if DATALINK == PPRZ




reply via email to

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