|
|
@@ -9,7 +9,7 @@
|
|
|
#define OUTPUT_RANGE 255 // The maximum value for PWM output
|
|
|
///////////////////////
|
|
|
|
|
|
-#define SCAN_DELAY 100 // Delay between updates in ms
|
|
|
+#define SCAN_DELAY 10 // Delay between updates in ms
|
|
|
#define AVG_PERIODS 10 // Number of periods to average the speed over (reduces random variances)
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
@@ -21,6 +21,8 @@
|
|
|
|
|
|
// Channel pins. Using numbers 1-6 for clarity, so using a bad value in index 0.
|
|
|
const byte channels[7] = {255, 8,9,10,11,12,13};
|
|
|
+// How long (in microseconds) the channel is being held high for.
|
|
|
+int channelVals[NUM_CHANNELS + 1];
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
// Channel values
|