paparazzi-commits
[Top][All Lists]
Advanced

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

[paparazzi-commits] [4888]


From: antoine drouin
Subject: [paparazzi-commits] [4888]
Date: Tue, 27 Apr 2010 18:57:28 +0000

Revision: 4888
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4888
Author:   poine
Date:     2010-04-27 18:57:27 +0000 (Tue, 27 Apr 2010)
Log Message:
-----------


Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/lisa/test/lisa_test_actuators_mkk.c

Modified: paparazzi3/trunk/sw/airborne/lisa/test/lisa_test_actuators_mkk.c
===================================================================
--- paparazzi3/trunk/sw/airborne/lisa/test/lisa_test_actuators_mkk.c    
2010-04-27 18:57:01 UTC (rev 4887)
+++ paparazzi3/trunk/sw/airborne/lisa/test/lisa_test_actuators_mkk.c    
2010-04-27 18:57:27 UTC (rev 4888)
@@ -28,6 +28,8 @@
 #include "booz_actuators.h"
 #include "downlink.h"
 
+#include "actuators/booz_actuators_asctec.h"
+
 static inline void main_init( void );
 static inline void main_periodic_task( void );
 static inline void main_event_task( void );
@@ -56,19 +58,44 @@
 
 static inline void main_periodic_task( void ) {
 
+  static uint16_t i = 0;
+
   RunOnceEvery(100, {
       LED_TOGGLE(3);
       DOWNLINK_SEND_ALIVE(DefaultChannel, 16, MD5SUM);
     });
   
-  /* set actuators     */
-  booz2_commands[COMMAND_PITCH] = 0;
-  booz2_commands[COMMAND_ROLL] = 0;
-  booz2_commands[COMMAND_YAW] = 0;
-  booz2_commands[COMMAND_THRUST] = 0;
-  //actuators_set(TRUE);
-  actuators_set(FALSE);
 
+#if 0
+  if (i==1) {
+    actuators_asctec.cur_addr = BACK;
+    actuators_asctec.cmd = TEST;
+  }
+#endif
+#if 0
+  if (i==1) {
+    actuators_asctec.cur_addr = LEFT;
+    actuators_asctec.new_addr = BACK;
+    actuators_asctec.cmd = SET_ADDR;
+  }
+#endif
+#if 0
+  if (i==1) {
+    actuators_asctec.cur_addr = BACK;
+    actuators_asctec.cmd = REVERSE;
+  }
+#endif
+  i++;
+
+  if (i>1000) {
+    /* set actuators     */
+    booz2_commands[COMMAND_PITCH] = 0;
+    booz2_commands[COMMAND_ROLL] = 0;
+    booz2_commands[COMMAND_YAW] = 0;
+    booz2_commands[COMMAND_THRUST] = 0;
+    actuators_set(TRUE);
+    //actuators_set(FALSE);
+  }
   LED_PERIODIC();
 
 }





reply via email to

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