November 21, 2024, 05:16:58 AM

News:

You can now use Vixen to program your Prop-1 and Prop-2 controllers!  Get started quickly and easily, without having to learn PBASIC.  Details in the Library forum.


Updating Haunt Control Program to Increase Traffic Flow

Started by Spooky Dad, August 13, 2016, 09:44:27 PM

Previous topic - Next topic

Spooky Dad

Hey gents.  Thanks for all the support over the years.  You will be happy to know that, with the help of a friend coming over to start at the Debug Terminal Screen, the simple logic problem was found.   The short answer is that in the FOR NEXT loop scanning the inputs, I was overwriting the Sensor input after the first pass.  I created another variable to "capture" the input and have it be available for the rest of the states and viola! I should note that this is not true multi-processing like the HC-8+ would do.   In other words, if a prop is currently active, then another prop can't be tripped.

bsnut

That's good to hear. Can you show us in the code where you fixed it at, so everyone can see.
William Stefan
The Basic Stamp Nut