ppm
Dependents: Autonomous_quadcopter
Fork of PPM by
PpmRegen.h
- Committer:
- edy05
- Date:
- 2018-05-22
- Revision:
- 6:0c84dc8ad612
- Parent:
- 4:380e7c35e466
File content as of revision 6:0c84dc8ad612:
#ifndef CH_PPM_IN #define CH_PPM_IN #include "mbed.h" #include "definitions.h" class PpmRegen { public: PpmRegen(InterruptIn* interruptPort); void getAllChannels(uint16_t all_channels[]); private: uint16_t channels[CHANNELS+2]; uint16_t last_channels[CHANNELS+2]; uint16_t corrections[CHANNELS]; uint8_t current_channel; void fall(void); void channel_correction(void); Timer timer; InterruptIn* ppmPin; }; #endif