![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
a
Dependencies: mbed
Fork of GIMBAL_SAMPLE4_PPM by
RCInputProc/RCInputProc.cpp
- Committer:
- halusis
- Date:
- 2018-05-24
- Revision:
- 0:f0b20f502059
File content as of revision 0:f0b20f502059:
#include "mbed.h" #include "Global_Variables.h" #include "Pin_Assign.h" #include "PPMIn.h" #include "PPMOut.h" void RCInputProc(void) { YawPPM = ppmin.channels[5]; PitchPPM = ppmin.channels[6]; LockPPM = ppmin.channels[7]; if(LockPPM>=IdlePWM&&LockPPM<=3000) fLock =1; else fLock =0; YawDegCMD = 0.15f*(float)YawPPM-225.0f; PitchDegCMD = 0.15f*(float)PitchPPM-225.0f; }