Jon Freeman / Mbed 2 deprecated Brushless_STM3_ESC_2019_10

Dependencies:   mbed BufferedSerial Servo PCT2075 FastPWM

Revision:
14:acaa1add097b
Parent:
12:d1d21a2941ef
Child:
16:d1e4b9ad3b8b
diff -r ef7a06fa11de -r acaa1add097b Radio_Control_In.cpp
--- a/Radio_Control_In.cpp	Sun Sep 29 16:34:37 2019 +0000
+++ b/Radio_Control_In.cpp	Sat Nov 30 16:34:58 2019 +0000
@@ -64,14 +64,14 @@
     return  norm;
 }
 
-void    RControl_In::RadC_rise    ()     //  December 2018 - Could not make Servo port bidirectional, fix by using PC_14 and 15 as inputs
-{                                   
+void    RControl_In::RadC_fall    ()     //  December 2018 - Could not make Servo port bidirectional, fix by using PC_14 and 15 as inputs
+{                                       //  30th November 2019 - Swapped _rise and _fall as now using Schmitt inverters on input    
     period_us = t.read_us    ();
     t.reset ();
     t.start ();
 }
 
-void    RControl_In::RadC_fall    ()
+void    RControl_In::RadC_rise    ()
 {
     pulse_width_us = t.read_us   ();
     pulse_count++;