mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +01:00
Changed WPC coil mappings
This commit is contained in:
@@ -93,7 +93,13 @@ void ConfigureDrivers(PRHandle proc, PRMachineType machineType, YAML::Node& yaml
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int mappedDriverGroupEnableIndex[kPRDriverGroupsMax];
|
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 rowEnableIndex1;
|
||||||
int rowEnableIndex0;
|
int rowEnableIndex0;
|
||||||
bool tickleSternWatchdog;
|
bool tickleSternWatchdog;
|
||||||
@@ -117,6 +123,8 @@ void ConfigureDrivers(PRHandle proc, PRMachineType machineType, YAML::Node& yaml
|
|||||||
slowGroupTime = driverLoopTime * 100; // microseconds
|
slowGroupTime = driverLoopTime * 100; // microseconds
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Add kPRMachineStern
|
||||||
}
|
}
|
||||||
|
|
||||||
PRDriverGlobalConfig globals;
|
PRDriverGlobalConfig globals;
|
||||||
@@ -436,7 +444,7 @@ int main(int argc, const char **argv)
|
|||||||
// Pulse a coil for testing purposes.
|
// Pulse a coil for testing purposes.
|
||||||
//PRDriverPulse(proc, 53, 100);
|
//PRDriverPulse(proc, 53, 100);
|
||||||
// Schedule a feature lamp for testing purposes.
|
// 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.
|
// Pitter-patter a feature lamp for testing purposes.
|
||||||
//PRDriverPatter(proc, 84, 127, 127, 0);
|
//PRDriverPatter(proc, 84, 127, 127, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user