Naze32 clone with Frysky receiver
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }