NOT FINISHED YET!!! My first try to get a self built fully working Quadrocopter based on an mbed, a self built frame and some other more or less cheap parts.
Diff: RC/RC_Channel.h
- Revision:
- 12:67a06c9b69d5
- Parent:
- 10:953afcbcebfc
- Child:
- 15:753c5d6a63b3
--- a/RC/RC_Channel.h Thu Oct 18 20:04:16 2012 +0000 +++ b/RC/RC_Channel.h Sat Oct 20 17:28:28 2012 +0000 @@ -2,6 +2,7 @@ #define RC_CHANNEL_H #include "mbed.h" +#include "LED.h" class RC_Channel { @@ -16,6 +17,8 @@ Timer timer; // timer to measure the up time of the signal and if the signal timed out int time; // last measurement data + LED LEDs; + Ticker timeoutchecker; // Ticker to see if signal broke down void timeoutcheck(); // to check for timeout, checked every second };