|
From: Matthias T. <mt...@we...> - 2010-07-04 13:49:18
|
Hi Pito, > So from all the previous posts - in order to redefine sinus I have to > upload a new word: just start as follows \ Rdefer uses the RAM, so it needs to be initialized \ every time the controller starts Rdefer sinus \ define a word that uses sinus. note that there is still \ no code for calculating sinus ! : height ... sinus ... ; \ now comes the first version of the sinus code : sinus1 ...... ; ' sinus1 is sinus calling height will indirectly call sinus1 as sinus \ define another sinus, probably better : sinus2 ..... ; \ and make it active ' sinus2 is sinus calling height _now_ will execute sinus2, sinus1 is no longer used. heigth itself is not changed at all. wrt to the initialization: you will have to extend turnkey to include the proper ' sinus_x is sinus otherwise heigth uses some uninitializes pointer that will cause a crash. if you use Edefer instead of Rdefer the settings will be stored in the EEPROM. all other code above can remain (esp. the is ) HTH Matthias |