Daire Aeon's picture

I'm experimenting with Heaton's elevator script but am unable to modify the floor distance in the script. It seems to just give a space of 10m between floors no matter what I enter in the script for FLOOR _HEIGHT. The script saves a different number but the elevator only moves 10m when activated. Any suggestion would be appreciated.

jeffheaton's picture

Well, I guess it would help if I used my own "constant", the FLOOR_HEIGHT is not used. Modify line 39.

Currently it is:

target = BOTTOM + (idx*10);

Change it to:

target = BOTTOM + (idx*FLOOR_HEIGHT);

The it will pay attention to your FLOOR_HEIGHT const.


Copyright 2005 - 2012 by Heaton Research, Inc.. Heaton Research™ and Encog™ are trademarks of Heaton Research. Click here for copyright, license and trademark information.