[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [5944] move SetServo makro to from setup_actuators a
From: |
Felix Ruess |
Subject: |
[paparazzi-commits] [5944] move SetServo makro to from setup_actuators actuators.h |
Date: |
Sat, 25 Sep 2010 12:39:23 +0000 |
Revision: 5944
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5944
Author: flixr
Date: 2010-09-25 12:39:22 +0000 (Sat, 25 Sep 2010)
Log Message:
-----------
move SetServo makro to from setup_actuators actuators.h
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/actuators.h
paparazzi3/trunk/sw/airborne/setup_actuators.c
Modified: paparazzi3/trunk/sw/airborne/actuators.h
===================================================================
--- paparazzi3/trunk/sw/airborne/actuators.h 2010-09-24 14:10:41 UTC (rev
5943)
+++ paparazzi3/trunk/sw/airborne/actuators.h 2010-09-25 12:39:22 UTC (rev
5944)
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with paparazzi; see the file COPYING. If not, write to
* the Free Software Foundation, 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Boston, MA 02111-1307, USA.
*
*/
@@ -43,6 +43,11 @@
#include ACTUATORS
+#define SetServo(x, v) { \
+ Actuator(x) = SERVOS_TICS_OF_USEC(ChopServo(v,700,2400)); \
+ actuators[x] = v; \
+ }
+
#endif /* ACTUATORS */
#endif /* ACTUATORS_H */
Modified: paparazzi3/trunk/sw/airborne/setup_actuators.c
===================================================================
--- paparazzi3/trunk/sw/airborne/setup_actuators.c 2010-09-24 14:10:41 UTC
(rev 5943)
+++ paparazzi3/trunk/sw/airborne/setup_actuators.c 2010-09-25 12:39:22 UTC
(rev 5944)
@@ -15,10 +15,6 @@
#define IdOfMsg(x) (x[1])
-#define SetServo(x, v) { \
- Actuator(x) = SERVOS_TICS_OF_USEC(ChopServo(v,700,2400)); \
- actuators[x] = v; \
- }
void dl_parse_msg( void ) {
uint8_t msg_id = IdOfMsg(dl_buffer);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [5944] move SetServo makro to from setup_actuators actuators.h,
Felix Ruess <=