View unanswered posts | View active topics It is currently Sun Feb 25, 2018 7:39 am






Reply to topic  [ 1 post ] 
getpixel(x,y) function error 
Author Message
Novice

Joined: Sat Apr 12, 2008 11:09 am
Posts: 60
Location: holland
Post getpixel(x,y) function error
Hello,
I am trying to make a program what can make a screenshot of the NXT screen.
The idea is to read pixel by pixel from the screen with the getPixel(x,y) function.
storing it in a file and read it when needed.
Emulated on the PC it works (stored the data in an array in stead of a file).
The getPixel function on the NXT has weird behavour.
Code:
task main()
{
   int x=1,y=1;
   if(getPixel(20,20))
      delay(1);
   if(getPixel(x,y))
      delay(1);
   if(getPixel(1,1))
      delay(1);
   delay(1000);
}


This code generates 4 exceptions when running.

Sometimes the NXT goes to clicking mode.
Same results with robotC 4.5 and 4.3
Any ideas?

Thanks


Mon Oct 05, 2015 5:56 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.