[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [6257] ups, add spektrum files again
From: |
Felix Ruess |
Subject: |
[paparazzi-commits] [6257] ups, add spektrum files again |
Date: |
Mon, 25 Oct 2010 22:42:17 +0000 |
Revision: 6257
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6257
Author: flixr
Date: 2010-10-25 22:42:16 +0000 (Mon, 25 Oct 2010)
Log Message:
-----------
ups, add spektrum files again
Added Paths:
-----------
paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum.c
paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum.h
paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum_dx7se.h
paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum_dx7se_joby.h
Added: paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum.c
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum.c
(rev 0)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum.c
2010-10-25 22:42:16 UTC (rev 6257)
@@ -0,0 +1,31 @@
+/*
+ * $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
+ */
Added: paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum.h
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum.h
(rev 0)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum.h
2010-10-25 22:42:16 UTC (rev 6257)
@@ -0,0 +1,36 @@
+/*
+ * 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 */
Added: paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum_dx7se.h
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum_dx7se.h
(rev 0)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum_dx7se.h
2010-10-25 22:42:16 UTC (rev 6257)
@@ -0,0 +1,54 @@
+/*
+ * $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 */
Added:
paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum_dx7se_joby.h
===================================================================
--- paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum_dx7se_joby.h
(rev 0)
+++ paparazzi3/trunk/sw/airborne/subsystems/radio_control/spektrum_dx7se_joby.h
2010-10-25 22:42:16 UTC (rev 6257)
@@ -0,0 +1,54 @@
+/*
+ * $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] [6257] ups, add spektrum files again,
Felix Ruess <=