This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Arduino.h> | |
| #define MICROPPM | |
| unsigned int startPulse=0; | |
| #ifdef MICROPPM | |
| #define PPM_CHANNELS 12 // input PPM into pin 8 | |
| #define PPM_SYNC 20000 | |
| #else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define NPAR 8 | |
| void hexdump(unsigned char *buf,int n){ | |
| int i; | |
| for (i=0; i<n; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/AeroQuad/AeroQuad.h b/AeroQuad/AeroQuad.h | |
| index 7ed8f9f..5be4e12 100644 | |
| --- a/AeroQuad/AeroQuad.h | |
| +++ b/AeroQuad/AeroQuad.h | |
| @@ -275,5 +275,12 @@ byte fastTransfer = OFF; // Used for troubleshooting | |
| //byte testSignal = LOW; | |
| ////////////////////////////////////////////////////// | |
| +// DEBUG TIMER | |
| +unsigned long dtLast=0, dtMin=99999999, dtMax=0, dtStart=0, dtAvg=0, dtCnt=0; |