my sbus

Dependents:   Drone_air

Fork of FutabaSBUS by Uwe Gartmann

Revision:
2:07dbb77a6f1a
Parent:
1:e3c92fba87f2
Child:
3:50e10bf74374
--- a/FutabaSBUS.h	Thu Feb 09 21:50:00 2012 +0000
+++ b/FutabaSBUS.h	Mon Feb 08 08:47:36 2016 +0000
@@ -28,7 +28,7 @@
 #define SBUS_SIGNAL_LOST        0x01
 #define SBUS_SIGNAL_FAILSAFE    0x03
 
-#include "MODSERIAL.h"
+//#include "MODSERIAL.h"
 #include "mbed.h"
 
 /** SBUS control class, based on MODSERIAL
@@ -95,6 +95,8 @@
     */
     uint8_t failsafe(void);
 
+    void failsafe(uint8_t status);
+
     /** Set logical data passtrough - servo values are ignored, using received data
     *
     * &param bool
@@ -108,9 +110,10 @@
     bool passthrough(void);
 
 private:
-    MODSERIAL sbus_;
+    RawSerial sbus_;
     Ticker  rxSBUS;
-    void SBUS_irq_rx(MODSERIAL_IRQ_INFO *q);
+//    void SBUS_irq_rx(MODSERIAL_IRQ_INFO *q);
+    void SBUS_irq_rx(void);
     void rx_ticker_500us(void);
     void update_channels(void);
     void update_servos(void);