From 8d65a9a35223e89dce92372cb690603899927767 Mon Sep 17 00:00:00 2001 From: Gerry Stellenberg Date: Thu, 28 May 2009 22:54:06 -0500 Subject: [PATCH] Changed WPC coil mappings --- examples/pinproctest/pinproctest.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/pinproctest/pinproctest.cpp b/examples/pinproctest/pinproctest.cpp index 15e7a4f..12eb92c 100644 --- a/examples/pinproctest/pinproctest.cpp +++ b/examples/pinproctest/pinproctest.cpp @@ -93,7 +93,13 @@ void ConfigureDrivers(PRHandle proc, PRMachineType machineType, YAML::Node& yaml { int i; int mappedDriverGroupEnableIndex[kPRDriverGroupsMax]; - int mappedWPCDriverGroupEnableIndex[] = {0, 0, 0, 0, 0, 4, 3, 2, 1, 5, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0}; + + // This mapping determines which enable line is driven for each group of 8 outputs, + // starting with output 0-7. The first 4 groups are not used in WPC. + // The next 6 correspond to coil/flasher circuits. The next 8 correspond to the + // lamp matrix. The last 8 are unused. + int mappedWPCDriverGroupEnableIndex[] = {0, 0, 0, 0, 0, 2, 4, 3, 1, 5, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0}; + int rowEnableIndex1; int rowEnableIndex0; bool tickleSternWatchdog; @@ -117,6 +123,8 @@ void ConfigureDrivers(PRHandle proc, PRMachineType machineType, YAML::Node& yaml slowGroupTime = driverLoopTime * 100; // microseconds break; } + + // TODO: Add kPRMachineStern } PRDriverGlobalConfig globals; @@ -436,7 +444,7 @@ int main(int argc, const char **argv) // Pulse a coil for testing purposes. //PRDriverPulse(proc, 53, 100); // Schedule a feature lamp for testing purposes. - //PRDriverSchedule(proc, 80, 0xFF00FF00, 0, 0); + PRDriverSchedule(proc, 80, 0xFF00FF00, 0, 0); // Pitter-patter a feature lamp for testing purposes. //PRDriverPatter(proc, 84, 127, 127, 0);