Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed BufferedSerial Servo PCT2075 FastPWM
Diff: Radio_Control_In.cpp
- 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++;