1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 17:46:14 +01:00
Go to file
Asbelos 964f39d376 Fix hanging turnouts
Caused by tt->activate call when Turnouts was a struct not a class!
2020-07-23 12:48:38 +01:00
.gitattributes Initial commit 2020-05-23 23:00:03 +01:00
.gitignore Initial commit 2020-05-23 23:00:03 +01:00
avdweb_AnalogReadFast.h updated URL 2020-07-14 17:45:11 +02:00
Config.h Wifi back on 2020-07-16 10:51:09 +01:00
CVReader.ino Non blocking wifi reply 2020-07-16 11:52:06 +01:00
DCC.cpp Blocking progtrack call optoin 2020-07-19 18:39:08 +01:00
DCC.h Blocking progtrack call optoin 2020-07-19 18:39:08 +01:00
DCCEXParser.cpp Blocking progtrack call optoin 2020-07-19 18:39:08 +01:00
DCCEXParser.h Blocking progtrack call optoin 2020-07-19 18:39:08 +01:00
DCCWaveform.cpp Merge branch 'tinker2-mega' into mergefix-2 2020-07-12 16:25:16 +02:00
DCCWaveform.h Merge branch 'tinker2-mega' into mergefix-2 2020-07-12 16:25:16 +02:00
DIAG.h Copyrights etc 2020-07-03 17:35:02 +01:00
EEStore.cpp Copyrights etc 2020-07-03 17:35:02 +01:00
EEStore.h Copyrights etc 2020-07-03 17:35:02 +01:00
freeMemory.h Drop railcom and prepare for servo turnouts 2020-06-23 17:43:50 +01:00
Hardware.cpp Save memory 2020-07-15 22:51:50 +01:00
Hardware.h Save memory 2020-07-15 22:51:50 +01:00
HTTPParser.cpp Copyrights etc 2020-07-03 17:35:02 +01:00
HTTPParser.h Copyrights etc 2020-07-03 17:35:02 +01:00
MemStream.cpp Fixup MemStream warning messages 2020-07-16 14:04:59 +01:00
MemStream.h Cleaning up warnings (some of which were actually fatal) 2020-06-29 11:37:05 +01:00
objdump.bat Update objdump.bat 2020-07-15 20:26:19 +01:00
objdump.sh initial 2020-07-16 13:54:47 +02:00
Outputs.cpp Save memory 2020-07-15 22:51:50 +01:00
Outputs.h Copyrights etc 2020-07-03 17:35:02 +01:00
PWMServoDriver.cpp Fix hanging turnouts 2020-07-23 12:48:38 +01:00
PWMServoDriver.h Fix hanging turnouts 2020-07-23 12:48:38 +01:00
README.md Update README.md 2020-07-15 16:40:15 +01:00
Sensors.cpp Save memory 2020-07-15 22:51:50 +01:00
Sensors.h Copyrights etc 2020-07-03 17:35:02 +01:00
StringFormatter.cpp Merge branch 'tinker2-mega' into mergefix-2 2020-07-12 16:25:16 +02:00
StringFormatter.h Copyrights etc 2020-07-03 17:35:02 +01:00
Turnouts.cpp Fix hanging turnouts 2020-07-23 12:48:38 +01:00
Turnouts.h Fix hanging turnouts 2020-07-23 12:48:38 +01:00
WifiInterface.cpp AT command version 2020-07-22 15:14:07 +01:00
WifiInterface.h Wifi timeout on non-blocking responses 2020-07-16 13:19:29 +01:00
WiThrottle.cpp AT command version 2020-07-22 15:14:07 +01:00
WiThrottle.h AT command version 2020-07-22 15:14:07 +01:00

CVReader

Don't be fooled by the name, this chunk of code is an almost complete replacement for DCC++ with the added feature of WiThrottle support WITHOUT a JMRI server.

This repo is acting as a prototyping area for features being built into the DCC-EX CommandStation.

Unlike DCC++ the code here is more cleanly structured and so is easier to maintain and expand. It runs in less memory than DCC++ and uses less interrupts and timers to achieve a more reliable DCC signal. You will not find a PacketRegister file with a bizarre mix of string parsing, packet building, queue managing, timer fiddling and hardware pins all mashed into one over-complex class.

It has an API interface to the DCC commands that can be used by your own bespoke sketch. This API is actually used by the JMRI command parser and the WiThrottle command parser. The CVReader.ino sketch provides an example of setting this up with Wifi and JMRI command parsing.

In addition, program track operations requiring ACK responses do not cause blocking of the Arduino loop() and so will not hold up throttle requests. Loco Functions F0-F12 will issue reminders automatically. There is a much higher register limit (ie more locos) in the same memory. You can also create your own commands or filter out commands sent by JMRI to suit your own layout.