[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [6250] strip implementation files of radio_control p
From: |
Felix Ruess |
Subject: |
[paparazzi-commits] [6250] strip implementation files of radio_control prefix |
Date: |
Mon, 25 Oct 2010 21:58:39 +0000 |
Revision: 6250
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6250
Author: flixr
Date: 2010-10-25 21:58:39 +0000 (Mon, 25 Oct 2010)
Log Message:
-----------
strip implementation files of radio_control prefix
Added Paths:
-----------
paparazzi3/trunk/sw/airborne/subsystems/radio_control/dummy.c
paparazzi3/trunk/sw/airborne/subsystems/radio_control/dummy.h
paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby.c
paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby.h
paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby_9ch.h
Removed Paths:
-------------
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_dummy.c
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_dummy.h
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby.c
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby.h
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby_9ch.h
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum.c
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum.h
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum_dx7se.h
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum_dx7se_joby.h
Copied: paparazzi3/trunk/sw/airborne/subsystems/radio_control/dummy.c (from rev
6249,
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_dummy.c)
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/dummy.c
(rev 0)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/dummy.c
2010-10-25 21:58:39 UTC (rev 6250)
@@ -0,0 +1,26 @@
+/*
+ * $Id$
+ *
+ * Copyright (C) 2008-2009 Antoine Drouin <address@hidden>
+ *
+ * This file is part of paparazzi.
+ *
+ * paparazzi is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * paparazzi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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.
+ */
+
+#include <subsystems/radio_control.h>
+
+void radio_control_impl_init(void) { }
Copied: paparazzi3/trunk/sw/airborne/subsystems/radio_control/dummy.h (from rev
6249,
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_dummy.h)
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/dummy.h
(rev 0)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/dummy.h
2010-10-25 21:58:39 UTC (rev 6250)
@@ -0,0 +1,32 @@
+/*
+ * Paparazzi $Id$
+ *
+ * Copyright (C) 2009 Pascal Brisset <address@hidden>,
+ * Antoine Drouin <address@hidden>
+ *
+ * This file is part of paparazzi.
+ *
+ * paparazzi is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * paparazzi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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.
+ */
+
+#ifndef RADIO_CONTROL_NULL_H
+#define RADIO_CONTROL_NULL_H
+
+#include "radio.h"
+
+#define RadioControlEvent(_received_frame_handler) { }
+
+#endif /* RADIO_CONTROL_NULL_H */
Copied: paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby.c (from rev
6249,
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby.c)
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby.c
(rev 0)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby.c
2010-10-25 21:58:39 UTC (rev 6250)
@@ -0,0 +1,95 @@
+/*
+ * $Id$
+ *
+ * Copyright (C) 2008-2009 Antoine Drouin <address@hidden>
+ *
+ * This file is part of paparazzi.
+ *
+ * paparazzi is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * paparazzi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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.
+ */
+
+#include "stdio.h"
+#include <subsystems/radio_control.h>
+
+static struct rc_joby_parser_state parser;
+static const int16_t rc_joby_signs[RADIO_CONTROL_NB_CHANNEL] = RC_JOBY_SIGNS;
+
+
+static void handle_channel(void (* callback)(void))
+{
+ if (parser.parser_normal_buf == RC_JOBY_MAGIC_START) {
+ // got start channel, look for channel 0 next
+ parser.current_channel = 0;
+ } else if (parser.current_channel == -1) {
+ // looking for start channel byte but didn't get it, reset
+ parser.current_byte = READING_HIGH_BYTE;
+ parser.current_inverted = READING_NORMAL;
+ } else {
+ // valid channel, store and look for next
+ radio_control.values[parser.current_channel] =
rc_joby_signs[parser.current_channel] * parser.parser_normal_buf;
+ parser.current_channel++;
+ if (parser.current_channel == RADIO_CONTROL_NB_CHANNEL) {
+ // all channels read, reset parser and handle message
+ parser.current_channel = -1;
+ radio_control.frame_cpt++;
+ radio_control.status = RADIO_CONTROL_OK;
+ radio_control.time_since_last_frame = 0;
+ if (callback != NULL)
+ callback();
+ }
+ }
+}
+
+static void handle_tuple(void (* callback)(void))
+{
+ if (parser.current_inverted == READING_NORMAL) {
+ parser.parser_normal_buf = ((parser.high_byte_buf << 8) |
parser.low_byte_buf);
+ parser.current_inverted = READING_INVERTED;
+ } else if (parser.current_inverted == READING_INVERTED) {
+ parser.parser_inverted_buf = ((parser.high_byte_buf << 8) |
parser.low_byte_buf);
+ parser.current_inverted = READING_NORMAL;
+ if (parser.parser_normal_buf == ~parser.parser_inverted_buf) {
+ handle_channel(callback);
+ } else {
+ // normal didn't match inverted, error, reset
+ parser.current_inverted = READING_NORMAL;
+ parser.current_byte = READING_HIGH_BYTE;
+ parser.current_channel = -1;
+ parser.error_counter++;
+ }
+ }
+}
+
+void rc_joby_parse(int8_t c, void (* callback)(void))
+{
+ if (parser.current_byte == READING_HIGH_BYTE) {
+ parser.high_byte_buf = c;
+ if (parser.current_channel >= 0 || parser.high_byte_buf ==
(RC_JOBY_MAGIC_START >> 8) || parser.current_inverted == READING_INVERTED) {
+ // only advance parser state to low byte if we're not looking for a
sync byte which we didn't find
+ parser.current_byte = READING_LOW_BYTE;
+ }
+ } else { // READING_LOW_BYTE
+ parser.low_byte_buf = c;
+ parser.current_byte = READING_HIGH_BYTE;
+ handle_tuple(callback);
+ }
+}
+
+void radio_control_impl_init(void) {
+ parser.current_byte = READING_HIGH_BYTE;
+ parser.current_inverted = READING_NORMAL;
+ parser.current_channel = -1;
+}
Copied: paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby.h (from rev
6249,
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby.h)
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby.h
(rev 0)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby.h
2010-10-25 21:58:39 UTC (rev 6250)
@@ -0,0 +1,75 @@
+/*
+ * Paparazzi $Id$
+ *
+ * Copyright (C) 2009 Pascal Brisset <address@hidden>,
+ * Antoine Drouin <address@hidden>
+ *
+ * This file is part of paparazzi.
+ *
+ * paparazzi is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * paparazzi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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.
+ */
+
+#ifndef RADIO_CONTROL_JOBY_H
+#define RADIO_CONTROL_JOBY_H
+
+#include "std.h"
+#include "uart.h"
+
+#define RC_JOBY_MAGIC_START 13999
+
+#include RADIO_CONTROL_JOBY_MODEL_H
+
+typedef enum {
+ READING_LOW_BYTE = 0,
+ READING_HIGH_BYTE
+} parser_byte_t;
+
+typedef enum {
+ READING_NORMAL = 0,
+ READING_INVERTED
+} parser_inverted_t;
+
+struct rc_joby_parser_state
+{
+ parser_byte_t current_byte;
+ parser_inverted_t current_inverted;
+ int current_channel;
+
+ int16_t parser_inverted_buf;
+ int16_t parser_normal_buf;
+ uint8_t high_byte_buf;
+ uint8_t low_byte_buf;
+
+ uint32_t error_counter;
+};
+
+void rc_joby_parse(int8_t c, void (* callback)(void));
+
+#define __RcLink(dev, _x) dev##_x
+#define _RcLink(dev, _x) __RcLink(dev, _x)
+#define RcLink(_x) _RcLink(RADIO_CONTROL_LINK, _x)
+
+#define RcLinkChAvailable() RcLink(ChAvailable())
+#define RcLinkGetCh() RcLink(Getch())
+
+#define RadioControlEvent(_received_frame_handler) { \
+ while (RcLinkChAvailable()) { \
+ rc_joby_parse(RcLinkGetCh(), _received_frame_handler); \
+ } \
+ }
+
+
+#endif /* RADIO_CONTROL_JOBY_H */
Copied: paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby_9ch.h (from
rev 6249,
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby_9ch.h)
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby_9ch.h
(rev 0)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/joby_9ch.h
2010-10-25 21:58:39 UTC (rev 6250)
@@ -0,0 +1,51 @@
+/*
+ * $Id$
+ *
+ * Copyright (C) 2008-2009 Antoine Drouin <address@hidden>
+ *
+ * This file is part of paparazzi.
+ *
+ * paparazzi is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * paparazzi is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * 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.
+ */
+
+#ifndef RADIO_CONTROL_JOBY_9CH_H
+#define RADIO_CONTROL_JOBY_9CH_H
+
+#define RADIO_CONTROL_NB_CHANNEL 9
+
+#define RADIO_THROTTLE 0
+#define RADIO_YAW 1
+#define RADIO_PITCH 2
+#define RADIO_ROLL 3
+#define RADIO_GEAR 4
+#define RADIO_MODE 5
+#define RADIO_AUX2 6
+#define RADIO_AUX3 7
+#define RADIO_KILL 8
+
+#define RC_JOBY_SYNC_2 0x12
+
+#define RC_JOBY_SIGNS { 1, \
+ 1, \
+ 1, \
+ 1, \
+ 1, \
+ 1, \
+ 1, \
+ 1, \
+ 1 }
+
+#endif /* RADIO_CONTROL_JOBY_9CH_H */
Deleted:
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_dummy.c
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_dummy.c
2010-10-25 21:58:32 UTC (rev 6249)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_dummy.c
2010-10-25 21:58:39 UTC (rev 6250)
@@ -1,26 +0,0 @@
-/*
- * $Id$
- *
- * Copyright (C) 2008-2009 Antoine Drouin <address@hidden>
- *
- * This file is part of paparazzi.
- *
- * paparazzi is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * paparazzi is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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.
- */
-
-#include <subsystems/radio_control.h>
-
-void radio_control_impl_init(void) { }
Deleted:
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_dummy.h
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_dummy.h
2010-10-25 21:58:32 UTC (rev 6249)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_dummy.h
2010-10-25 21:58:39 UTC (rev 6250)
@@ -1,32 +0,0 @@
-/*
- * Paparazzi $Id$
- *
- * Copyright (C) 2009 Pascal Brisset <address@hidden>,
- * Antoine Drouin <address@hidden>
- *
- * This file is part of paparazzi.
- *
- * paparazzi is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * paparazzi is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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.
- */
-
-#ifndef RADIO_CONTROL_NULL_H
-#define RADIO_CONTROL_NULL_H
-
-#include "radio.h"
-
-#define RadioControlEvent(_received_frame_handler) { }
-
-#endif /* RADIO_CONTROL_NULL_H */
Deleted:
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby.c
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby.c
2010-10-25 21:58:32 UTC (rev 6249)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby.c
2010-10-25 21:58:39 UTC (rev 6250)
@@ -1,95 +0,0 @@
-/*
- * $Id$
- *
- * Copyright (C) 2008-2009 Antoine Drouin <address@hidden>
- *
- * This file is part of paparazzi.
- *
- * paparazzi is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * paparazzi is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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.
- */
-
-#include "stdio.h"
-#include <subsystems/radio_control.h>
-
-static struct rc_joby_parser_state parser;
-static const int16_t rc_joby_signs[RADIO_CONTROL_NB_CHANNEL] = RC_JOBY_SIGNS;
-
-
-static void handle_channel(void (* callback)(void))
-{
- if (parser.parser_normal_buf == RC_JOBY_MAGIC_START) {
- // got start channel, look for channel 0 next
- parser.current_channel = 0;
- } else if (parser.current_channel == -1) {
- // looking for start channel byte but didn't get it, reset
- parser.current_byte = READING_HIGH_BYTE;
- parser.current_inverted = READING_NORMAL;
- } else {
- // valid channel, store and look for next
- radio_control.values[parser.current_channel] =
rc_joby_signs[parser.current_channel] * parser.parser_normal_buf;
- parser.current_channel++;
- if (parser.current_channel == RADIO_CONTROL_NB_CHANNEL) {
- // all channels read, reset parser and handle message
- parser.current_channel = -1;
- radio_control.frame_cpt++;
- radio_control.status = RADIO_CONTROL_OK;
- radio_control.time_since_last_frame = 0;
- if (callback != NULL)
- callback();
- }
- }
-}
-
-static void handle_tuple(void (* callback)(void))
-{
- if (parser.current_inverted == READING_NORMAL) {
- parser.parser_normal_buf = ((parser.high_byte_buf << 8) |
parser.low_byte_buf);
- parser.current_inverted = READING_INVERTED;
- } else if (parser.current_inverted == READING_INVERTED) {
- parser.parser_inverted_buf = ((parser.high_byte_buf << 8) |
parser.low_byte_buf);
- parser.current_inverted = READING_NORMAL;
- if (parser.parser_normal_buf == ~parser.parser_inverted_buf) {
- handle_channel(callback);
- } else {
- // normal didn't match inverted, error, reset
- parser.current_inverted = READING_NORMAL;
- parser.current_byte = READING_HIGH_BYTE;
- parser.current_channel = -1;
- parser.error_counter++;
- }
- }
-}
-
-void rc_joby_parse(int8_t c, void (* callback)(void))
-{
- if (parser.current_byte == READING_HIGH_BYTE) {
- parser.high_byte_buf = c;
- if (parser.current_channel >= 0 || parser.high_byte_buf ==
(RC_JOBY_MAGIC_START >> 8) || parser.current_inverted == READING_INVERTED) {
- // only advance parser state to low byte if we're not looking for a
sync byte which we didn't find
- parser.current_byte = READING_LOW_BYTE;
- }
- } else { // READING_LOW_BYTE
- parser.low_byte_buf = c;
- parser.current_byte = READING_HIGH_BYTE;
- handle_tuple(callback);
- }
-}
-
-void radio_control_impl_init(void) {
- parser.current_byte = READING_HIGH_BYTE;
- parser.current_inverted = READING_NORMAL;
- parser.current_channel = -1;
-}
Deleted:
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby.h
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby.h
2010-10-25 21:58:32 UTC (rev 6249)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby.h
2010-10-25 21:58:39 UTC (rev 6250)
@@ -1,75 +0,0 @@
-/*
- * Paparazzi $Id$
- *
- * Copyright (C) 2009 Pascal Brisset <address@hidden>,
- * Antoine Drouin <address@hidden>
- *
- * This file is part of paparazzi.
- *
- * paparazzi is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * paparazzi is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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.
- */
-
-#ifndef RADIO_CONTROL_JOBY_H
-#define RADIO_CONTROL_JOBY_H
-
-#include "std.h"
-#include "uart.h"
-
-#define RC_JOBY_MAGIC_START 13999
-
-#include RADIO_CONTROL_JOBY_MODEL_H
-
-typedef enum {
- READING_LOW_BYTE = 0,
- READING_HIGH_BYTE
-} parser_byte_t;
-
-typedef enum {
- READING_NORMAL = 0,
- READING_INVERTED
-} parser_inverted_t;
-
-struct rc_joby_parser_state
-{
- parser_byte_t current_byte;
- parser_inverted_t current_inverted;
- int current_channel;
-
- int16_t parser_inverted_buf;
- int16_t parser_normal_buf;
- uint8_t high_byte_buf;
- uint8_t low_byte_buf;
-
- uint32_t error_counter;
-};
-
-void rc_joby_parse(int8_t c, void (* callback)(void));
-
-#define __RcLink(dev, _x) dev##_x
-#define _RcLink(dev, _x) __RcLink(dev, _x)
-#define RcLink(_x) _RcLink(RADIO_CONTROL_LINK, _x)
-
-#define RcLinkChAvailable() RcLink(ChAvailable())
-#define RcLinkGetCh() RcLink(Getch())
-
-#define RadioControlEvent(_received_frame_handler) { \
- while (RcLinkChAvailable()) { \
- rc_joby_parse(RcLinkGetCh(), _received_frame_handler); \
- } \
- }
-
-
-#endif /* RADIO_CONTROL_JOBY_H */
Deleted:
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby_9ch.h
===================================================================
---
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby_9ch.h
2010-10-25 21:58:32 UTC (rev 6249)
+++
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_joby_9ch.h
2010-10-25 21:58:39 UTC (rev 6250)
@@ -1,51 +0,0 @@
-/*
- * $Id$
- *
- * Copyright (C) 2008-2009 Antoine Drouin <address@hidden>
- *
- * This file is part of paparazzi.
- *
- * paparazzi is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * paparazzi is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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.
- */
-
-#ifndef RADIO_CONTROL_JOBY_9CH_H
-#define RADIO_CONTROL_JOBY_9CH_H
-
-#define RADIO_CONTROL_NB_CHANNEL 9
-
-#define RADIO_THROTTLE 0
-#define RADIO_YAW 1
-#define RADIO_PITCH 2
-#define RADIO_ROLL 3
-#define RADIO_GEAR 4
-#define RADIO_MODE 5
-#define RADIO_AUX2 6
-#define RADIO_AUX3 7
-#define RADIO_KILL 8
-
-#define RC_JOBY_SYNC_2 0x12
-
-#define RC_JOBY_SIGNS { 1, \
- 1, \
- 1, \
- 1, \
- 1, \
- 1, \
- 1, \
- 1, \
- 1 }
-
-#endif /* RADIO_CONTROL_JOBY_9CH_H */
Deleted:
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum.c
===================================================================
---
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum.c
2010-10-25 21:58:32 UTC (rev 6249)
+++
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum.c
2010-10-25 21:58:39 UTC (rev 6250)
@@ -1,31 +0,0 @@
-/*
- * $Id$
- *
- * Copyright (C) 2008-2009 Antoine Drouin <address@hidden>
- *
- * This file is part of paparazzi.
- *
- * paparazzi is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * paparazzi is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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.
- */
-
-#include "spektrum.h"
-
-/* Currently the functionality has been pushed into the arch directories
- * both arch directories contain essentially the original parser.
- * The next step is to implement a new parser for lisa. Once this is complete
- * hardware dependent functions will be written for booz then the lisa parser
- * will end up in here
- */
Deleted:
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum.h
===================================================================
---
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum.h
2010-10-25 21:58:32 UTC (rev 6249)
+++
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum.h
2010-10-25 21:58:39 UTC (rev 6250)
@@ -1,36 +0,0 @@
-/*
- * Paparazzi $Id$
- *
- * Copyright (C) 2009-2010 The Paparazzi Team
- *
- * This file is part of paparazzi.
- *
- * paparazzi is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * paparazzi is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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.
- *
- */
-
-#ifndef RADIO_CONTROL_SPEKTRUM_H
-#define RADIO_CONTROL_SPEKTRUM_H
-
-/* implemented in arch/xxx/subsystems/radio_control/spektrum_arch.c */
-extern void radio_control_spektrum_try_bind(void);
-
-#include <subsystems/radio_control/spektrum_arch.h>
-/* implemented in arch/xxx/subsystems/radio_control/spektrum_arch.c */
-
-#define RadioControlEvent(_received_frame_handler)
RadioControlEventImp(_received_frame_handler)
-
-#endif /* RADIO_CONTROL_SPEKTRUM_H */
Deleted:
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum_dx7se.h
===================================================================
---
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum_dx7se.h
2010-10-25 21:58:32 UTC (rev 6249)
+++
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum_dx7se.h
2010-10-25 21:58:39 UTC (rev 6250)
@@ -1,54 +0,0 @@
-/*
- * $Id$
- *
- * Copyright (C) 2008-2009 Antoine Drouin <address@hidden>
- *
- * This file is part of paparazzi.
- *
- * paparazzi is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * paparazzi is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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.
- */
-
-#ifndef RADIO_CONTROL_SPEKTRUM_DX7SE_H
-#define RADIO_CONTROL_SPEKTRUM_DX7SE_H
-
-#define RADIO_NB_CHANNEL 7
-#define RADIO_ROLL 0
-#define RADIO_THROTTLE 1
-#define RADIO_PITCH 2
-#define RADIO_YAW 3
-#define RADIO_AUX3 4
-#define RADIO_MODE 5
-#define RADIO_AUX4 6
-
-#define RC_SPK_SYNC_2 0x12
-
-#define RC_SPK_THROWS { MAX_PPRZ/MAX_SPK, \
- MAX_PPRZ/MAX_SPK, \
- -MAX_PPRZ/MAX_SPK, \
- MAX_PPRZ/MAX_SPK, \
- MAX_PPRZ/MAX_SPK, \
- -MAX_PPRZ/MAX_SPK, \
- MAX_PPRZ/MAX_SPK }
-
-/*
- aileron 1
- elevator 2
- rudder 3
- gear 4
- throttle 5
-*/
-
-#endif /* RADIO_CONTROL_SPEKTRUM_DX7SE_H */
Deleted:
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum_dx7se_joby.h
===================================================================
---
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum_dx7se_joby.h
2010-10-25 21:58:32 UTC (rev 6249)
+++
paparazzi3/trunk/sw/airborne/subsystems/radio_control/radio_control_spektrum_dx7se_joby.h
2010-10-25 21:58:39 UTC (rev 6250)
@@ -1,54 +0,0 @@
-/*
- * $Id$
- *
- * Copyright (C) 2008-2009 Antoine Drouin <address@hidden>
- *
- * This file is part of paparazzi.
- *
- * paparazzi is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * paparazzi is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * 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.
- */
-
-#ifndef RADIO_CONTROL_SPEKTRUM_DX7SE_H
-#define RADIO_CONTROL_SPEKTRUM_DX7SE_H
-
-#define RADIO_CONTROL_NB_CHANNEL 7
-
-#define RADIO_ROLL 0
-#define RADIO_THROTTLE 5
-#define RADIO_PITCH 3
-#define RADIO_YAW 6
-#define RADIO_MODE 1
-#define RADIO_KILL_SWITCH 4
-
-#define RC_SPK_SYNC_2 0x01
-
-#define RC_SPK_THROWS { MAX_PPRZ/MAX_SPK, \
- MAX_PPRZ/MAX_SPK, \
- -MAX_PPRZ/MAX_SPK, \
- -MAX_PPRZ/MAX_SPK, \
- -MAX_PPRZ/MAX_SPK, \
- MAX_PPRZ/MAX_SPK, \
- MAX_PPRZ/MAX_SPK }
-
-/*
- aileron 1
- elevator 2
- rudder 3
- gear 4
- throttle 5
-*/
-
-#endif /* RADIO_CONTROL_SPEKTRUM_DX7SE_H */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [6250] strip implementation files of radio_control prefix,
Felix Ruess <=