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:
- 7:9d4313510646
- Child:
- 10:953afcbcebfc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RC/RC_Channel.h Mon Oct 15 17:23:06 2012 +0000 @@ -0,0 +1,20 @@ +#ifndef RC_CHANNEL_H +#define RC_CHANNEL_H + +#include "mbed.h" + +class RC_Channel +{ + public: + RC_Channel(PinName mypin); // noooo p19/p20!!!! + int read(); + + private: + InterruptIn myinterrupt; + void rise(); + void fall(); + Timer timer; + int time; +}; + +#endif \ No newline at end of file