Naze32 clone with Frysky receiver
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

cppm.cpp 347B

123456789101112131415161718192021222324
  1. /*
  2. * Combined-PPM signal generator
  3. */
  4. #include <stdint.h>
  5. extern "C" {
  6. #include "cppm.h"
  7. #define CHANNELS 8
  8. volatile uint16_t cppmData[CHANNELS] = { 1500, 1500, 1500, 1500, 1500, 1500, 1500, 1500 };
  9. void cppmInit(void) {
  10. }
  11. void cppmCopy(uint16_t *data) {
  12. for (int i = 0; i < CHANNELS; i++) {
  13. cppmData[i] = data[i];
  14. }
  15. }
  16. }