Temprary table used during PPM decoding

This commit is contained in:
Pawel Spychalski
2017-10-05 09:43:59 +02:00
parent 6497845aec
commit 1632baccc8
2 changed files with 91 additions and 23 deletions

View File

@@ -25,4 +25,12 @@ enum dataStates {
PACKET_ID_RECEIVED,
PAYLOAD_RECEIVED,
CRC_RECEIVED
};
};
#define CHANNEL_NUMBER 12 //set the number of chanels
#define CHANNEL_DEFAULT_VALUE 1500 //set the default servo value
#define FRAME_LENGTH 22500 //set the PPM frame length in microseconds (1ms = 1000µs)
#define PULSE_LENGTH 300 //set the pulse length
#define onState 1 //set polarity of the pulses: 1 is positive, 0 is negative
#define sigPin 10 //set PPM signal output pin on the arduino