Jump to content

Sensing turtle program help

turtle peripheral wireless

2 replies to this topic

#1 WestWindsDemon

  • Members
  • 13 posts
  • LocationU, S & A

Posted 19 June 2015 - 09:19 AM

HI everyone, I've been trying to make a program advanced wireless sensing turtles to use them as remote scouts using openPeripherals, so far I'm about 40% done, but I've stumbling on a little piece of it, the sensor. I get how the sensor works and I know how to pull the data from sensor.sonicScan(), but when I can't seem to build the table I want from this. What I basically want its a table consisting of 25 entries, corresponding from upper left to right, to the pixels in the remote screen consisting of A,B or C depending on the distance from the turtle, eg.(vsn={"A","B","C"}. I plan to send this table through modem.transmit() as textutils.serialize() to the control computer to "see" whats in front of the turtle. The current code that I have right now its skipping numbers and not completing the table at all. Please help me. Thanks in advance.

EDIT:I have updated the code, but its still not working. Please help me!


Edited by WestWindsDemon, 21 June 2015 - 03:01 PM.

#2 The_Cat

  • Members
  • 119 posts

Posted 19 June 2015 - 05:37 PM

Its skipping the loop as you have commented out this line: "--for iii=1,3 do -- z lookup"

#3 WestWindsDemon

  • Members
  • 13 posts
  • LocationU, S & A

Posted 20 June 2015 - 12:12 AM

Yes, I was testing it before I copied, but still without skipping it's messing up.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users