PDA

View Full Version : problem with sending code to isopod


subot.robot
09-30-05, 10:38 AM
I have written a program to read sonar sensors for servopod. I tried to transfer the same program to isopod but when used send file option or pasted the code to the terminal the terminal started printing out garbage after particular stage right in the start of the program. isomax version of isopod is 0.6
I am pasting that part here.

VARIABLE BITLINE EEWORD

DECIMAL

VARIABLE MAXIMUM_SONARS EEWORD
16 MAXIMUM_SONARS !
HERE MAXIMUM_SONARS ALLOT CONSTANT SONAR_ADDRESS_ARRAY EEWORD
HERE MAXIMUM_SONARS ALLOT CONSTANT SONAR_RANGE_ARRAY EEWORD
HERE MAXIMUM_SONARS ALLOT CONSTANT SONAR_LIGHT_ARRAY EEWORD
VARIABLE SONAR_ADDRESS_ARRAY_OFFSET EEWORD
VARIABLE CURRENT_SONAR_ADDRESS EEWORD
VARIABLE SONAR_GROUP_FLAG EEWORD
HEX FFFF SONAR_GROUP_FLAG !

here there are 3 HERE ... ALLOT statements. no matter in what order we paste the lines as soon as the 3rd HERE ... ALLOT statement was pasted or transmitted, garbage starts printing out on the terminal instead of transmitting the next line. I was not able to figure out what went wrong. Is that anything to do with the memory. i SCRUBed it before send file or pasting it on terminal.
Please let me know where am i going wrong.

Regards
Subot.robot

nmitech
09-30-05, 11:00 AM
Add the @ as below,

HERE MAXIMUM_SONARS @ ALLOT CONSTANT SONAR_ADDRESS_ARRAY EEWORD
HERE MAXIMUM_SONARS @ ALLOT CONSTANT SONAR_RANGE_ARRAY EEWORD
HERE MAXIMUM_SONARS @ ALLOT CONSTANT SONAR_LIGHT_ARRAY EEWORD


Without the @ the IsoMax kernel will put the address of the MAXIMUM_SONAR instead of its content.