paparazzi-commits
[Top][All Lists]
Advanced

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

[paparazzi-commits] [5484] refactored spektrum parser


From: Eric
Subject: [paparazzi-commits] [5484] refactored spektrum parser
Date: Thu, 19 Aug 2010 15:36:42 +0000

Revision: 5484
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5484
Author:   lamestllama
Date:     2010-08-19 15:36:42 +0000 (Thu, 19 Aug 2010)
Log Message:
-----------
refactored spektrum parser

Modified Paths:
--------------
    
paparazzi3/trunk/sw/airborne/booz/arch/stm32/radio_control/booz_radio_control_spektrum_arch.c

Modified: 
paparazzi3/trunk/sw/airborne/booz/arch/stm32/radio_control/booz_radio_control_spektrum_arch.c
===================================================================
--- 
paparazzi3/trunk/sw/airborne/booz/arch/stm32/radio_control/booz_radio_control_spektrum_arch.c
       2010-08-19 15:04:43 UTC (rev 5483)
+++ 
paparazzi3/trunk/sw/airborne/booz/arch/stm32/radio_control/booz_radio_control_spektrum_arch.c
       2010-08-19 15:36:42 UTC (rev 5484)
@@ -2,7 +2,7 @@
  * $Id$
  *  
  * Copyright (C) 2010 Eric Parsonage <address@hidden>
- *
+ *               
  * This file is part of paparazzi.
  *
  * paparazzi is free software; you can redistribute it and/or modify
@@ -19,19 +19,23 @@
  * 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 <stdint.h>
 #include <stm32/gpio.h>
 #include <stm32/rcc.h>
 #include <stm32/tim.h>
-
 #include BOARD_CONFIG
-
 #include "uart.h"
-#include "booz/booz_radio_control.h"
+#include "booz_radio_control.h"
+#include "booz_radio_control_spektrum_arch.h"
+#include "booz2_autopilot.h"
 
+bool_t   rc_spk_parser_status;
+uint8_t  rc_spk_parser_idx;
+uint8_t  rc_spk_parser_buf[RADIO_CONTROL_NB_CHANNEL*2];
+const int16_t rc_spk_throw[RADIO_CONTROL_NB_CHANNEL] = RC_SPK_THROWS;
+
 /* set TIM1 to run at DELAY_TIM_FREQUENCY */ 
 static void delay_init( void );
 /* wait busy loop, microseconds */
@@ -178,4 +182,14 @@
 }
 
 
+void radio_control_impl_init(void) {
+  rc_spk_parser_status = RC_SPK_STA_UNINIT;
+  rc_spk_parser_idx = 0;
+}
 
+void RadioControlEventImp(void) {
+  _RadioControlEvent(booz2_autopilot_on_rc_frame);
+}
+
+
+




reply via email to

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