Search found 50 matches

by Xpyd3r
Fri Apr 18, 2008 1:17 am
Forum: NXJ Software
Topic: Solved: Can anyone see a problem with this code?
Replies: 2
Views: 1042

figured it out, I had = instead of == which is BAAADD lol yea
by Xpyd3r
Wed Apr 16, 2008 11:37 pm
Forum: NXJ Software
Topic: Solved: Can anyone see a problem with this code?
Replies: 2
Views: 1042

Solved: Can anyone see a problem with this code?

Can anyone see anything wrong with this program? My robot is going crazy with it, the ball position is supposed to be broken down into three possibilities. Left right or middle. If its left it turns to the right and moves the sensor to the left both 90 degrees as to be able to track the ball, then w...
by Xpyd3r
Mon Apr 14, 2008 3:18 pm
Forum: NXJ Software
Topic: IRSeeker Issues
Replies: 1
Views: 803

IRSeeker Issues

I have 2 main problems right now, First off, it usually doesn't return zero, I assume from ambient light making it think it sees that IR ball. Also, as the ball moves towards the sensor, the getSensorValue method returns an increasing number, untill a certain point, then it starts to decrease again....
by Xpyd3r
Tue Apr 08, 2008 12:17 am
Forum: NXJ Software
Topic: IR Seeker getSensorValue
Replies: 7
Views: 2098

Okay, so I misunderstood what exactly it was supposed to do and what you said. It only can get brightness readings from the 5 positioned sensor elements, and cannot calculate average brightness for the positions in between the 5 main elements. AKA there are values 1 - 9, 2, 4, 6, 8 are the areas bet...
by Xpyd3r
Mon Apr 07, 2008 2:52 am
Forum: NXJ Software
Topic: IR Seeker getSensorValue
Replies: 7
Views: 2098

So my big question now is, How can I fix this. Like I said, I'm pretty sure it's just a minor bug, but how could I go about knowledgeably fixing it. I looked at the IRSeeker class but I'm a bit confused. So any help with this is greatly appreciated. Edit: BTW, if anyone has got their IRSeeker work i...
by Xpyd3r
Fri Apr 04, 2008 8:46 pm
Forum: NXJ Software
Topic: IR Seeker getSensorValue
Replies: 7
Views: 2098

Well here's my program import lejos.nxt.*; import lejos.navigation.*; public class IRSeekerTest { public static void main(String []args) throws Exception { IRSeeker seeker = new IRSeeker(SensorPort.S1); do{ LCD.clear(); LCD.drawInt(seeker.getDirection(), 0, 0); LCD.drawInt(seeker.getSensorValue(seek...
by Xpyd3r
Thu Apr 03, 2008 10:06 pm
Forum: NXJ Software
Topic: IR Seeker getSensorValue
Replies: 7
Views: 2098

the relative distance of what to what? I dont understand what its comparing
by Xpyd3r
Wed Apr 02, 2008 1:36 am
Forum: NXJ Software
Topic: Compass Self-Calibration
Replies: 7
Views: 1814

Well, on the plus side, travel(x) works very well, It went from 0 to 100mm to 300mm to 200mm to 0 to 300mm to 100mm to 0. With astonishing accuracy and speed I must add. I'll play around with rotate more to see if I can get it to work.
by Xpyd3r
Tue Apr 01, 2008 8:34 pm
Forum: NXJ Software
Topic: Compass Self-Calibration
Replies: 7
Views: 1814

The wheel's diameter is 56 mm and the distance between the middle of the first and middle of the second is 147 mm. Second, this is true that I am no Java expert :-P and third, I'll go check out the travel(x) to see what it does.
by Xpyd3r
Tue Apr 01, 2008 12:31 am
Forum: NXJ Software
Topic: IR Seeker getSensorValue
Replies: 7
Views: 2098

IR Seeker getSensorValue

What exactly is the int id parameter supposed to be? it Definitely does something but I'm not sure what exactly. Is it supposed to return the intensity of the IR? If so, what exactly are the parameters supposed to be. And if not, what exactly is it supposed to do?
by Xpyd3r
Mon Mar 31, 2008 10:33 pm
Forum: NXJ Software
Topic: Compass Self-Calibration
Replies: 7
Views: 1814

Well, I switched to using Pilot, but when I use pilot.rotate(360) or pilot.rotate(720), either way it just keeps spinning. It doesn't return and continue on to stopping the motors, they just keep running. So I'm not sure what exactly I'm doing wrong. Could it be that I don't have f's after my wheel ...
by Xpyd3r
Sun Mar 30, 2008 8:57 pm
Forum: NXJ Software
Topic: Compass Self-Calibration
Replies: 7
Views: 1814

Compass Self-Calibration

I set motors on a very low speed and am trying to time how many seconds untill they stop, but have not had much success. I have tried to use Thread.sleep(long) but it appears to not work in the way I want it to. Is there any other kind of waiting class? or some method to wait a certain amount of time?
by Xpyd3r
Sun Mar 30, 2008 3:07 am
Forum: NXJ Software
Topic: Identifier Expected and Illegal start of type
Replies: 3
Views: 944

Just out of curiosity, but why is that the syntax? When I had learned this, and even in the Maximum Lego NXT book the new String phrase was always included as well. Any reasoning?
by Xpyd3r
Sat Mar 29, 2008 8:21 pm
Forum: NXJ Software
Topic: Identifier Expected and Illegal start of type
Replies: 3
Views: 944

Identifier Expected and Illegal start of type

Okay, so it has been a long time since I have programmed anything. I typed up some code today and when I tried to compile it, I got a bunch of Illegal start of type and identifier expected problems, heres a sample of the code public String str = new String("Start"); LCD.drawString(str, 0, ...
by Xpyd3r
Mon Mar 24, 2008 1:08 pm
Forum: NXJ Hardware
Topic: NXT Motor output?
Replies: 3
Views: 3637

but using PWM, if I apply +100 or -100 its the same as being continuously on correct?, because I need to be able to have a continuous current both ways If this is not possible I will have to try and figure out how to make it possible..

Go to advanced search