V5.4 Bug Fixes and Minor Chages

Bug Fix to allow maximum of 17 servos
Bug Fix to correct 2 reload #define definitions
Change to major Loop Delay cut in half to allow for fewer misses of DCC
packet detection
This commit is contained in:
Geoff Bunza
2016-11-26 12:42:30 -08:00
parent 4c1d5fd6e4
commit e622a596d7
18 changed files with 97 additions and 81 deletions

View File

@@ -1,5 +1,5 @@
// Production 17 Function DCC Decoder
// Version 5.1 Geoff Bunza 2014,2015,2016
// Version 5.4 Geoff Bunza 2014,2015,2016
// NO LONGER REQUIRES modified software servo Lib
// Software restructuring mods added from Alex Shepherd and Franz-Peter
// With sincere thanks
@@ -19,7 +19,7 @@
#include <NmraDcc.h>
#include <SoftwareServo.h>
SoftwareServo servo[16];
SoftwareServo servo[17];
#define servo_start_delay 50
#define servo_init_delay 7
#define servo_slowdown 3 //servo loop counter limit
@@ -302,7 +302,7 @@ void loop() //****************************************************************
// from the Arduino loop() function for correct library operation
Dcc.process();
SoftwareServo::refresh();
delay(8);
delay(4);
for (int i=0; i < numfpins; i++) {
if (ftn_queue[i].inuse==1) {