![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
a
Dependencies: mbed
Fork of GIMBAL_SAMPLE4_PPM by
PPM/PPMIn.h
- Committer:
- halusis
- Date:
- 2018-05-25
- Revision:
- 1:dd6e70abeb8e
- Parent:
- 0:f0b20f502059
File content as of revision 1:dd6e70abeb8e:
#ifndef CH_PPM_IN #define CH_PPM_IN class PpmIn { public: static const uint8_t CHANNELS = 8; uint16_t period; uint16_t channels[CHANNELS+2]; bool state; PpmIn(PinName pin); uint16_t* getPpm(); void rise(); protected: InterruptIn ppm; //Serial pc_com; Timer timer; uint8_t current_channel; }; #endif