Search found 6059 matches

by gloomyandy
Sun May 27, 2018 9:35 pm
Forum: EV3 Software
Topic: What causes the GyroBoy motor malfunction limit?
Replies: 5
Views: 46

Re: What causes the GyroBoy motor malfunction limit?

Why are you removing the delay? The balancing code has been pretty well designed and the delays are an integral part of that design, just making the loop run faster/more often does not provide a better result. You need to allow time for the motors to move and for the sensors to actually sense someth...
by gloomyandy
Sun May 27, 2018 7:45 am
Forum: NXJ Software
Topic: the robot is restarting when I run a program
Replies: 6
Views: 10

Re: the robot is restarting when I run a program

What colours are you actually trying to identify? If they are "standard" LEGO colours then you can just use the getColorID method which will use the built in colour recognition capabilities of the sensor http://www.lejos.org/nxt/nxj/api/lejos/nxt/ColorSensor.html#getColorID() If not then y...
by gloomyandy
Sat May 26, 2018 6:40 pm
Forum: NXJ Software
Topic: the robot is restarting when I run a program
Replies: 6
Views: 10

Re: the robot is restarting when I run a program

So what "don't you get" what have you done to try and understand the error you are getting? Have you looked in the linker output file? Have you tried using the various tools to identify what the exception is? Looking at your code, then a restart is exactly what I would expect. There is not...
by gloomyandy
Sat May 26, 2018 3:56 pm
Forum: NXJ Software
Topic: the robot is restarting when I run a program
Replies: 6
Views: 10

Re: the robot is restarting when I run a program

You posted your question in the wrong section, I've moved it for you. As to the exception, you should probably read the following, it will help you understand what the exception numbers mean and how to work out what line in your program is causing the problem... http://www.lejos.org/nxt/nxj/tutorial...
by gloomyandy
Fri May 25, 2018 3:03 pm
Forum: NXJ Software
Topic: Possible ways for direct communication between two bricks
Replies: 14
Views: 2878

Re: Possible ways for direct communication between two bricks

Why not spend some time looking through the various samples, if you that you would find...
https://sourceforge.net/p/lejos/nxt/cod ... TTest.java
by gloomyandy
Thu May 24, 2018 3:57 pm
Forum: EV3 Software
Topic: ColorSensor problems
Replies: 5
Views: 28

Re: ColorSensor problems

Firstly this error seems to be with an EV3TouchSensor not a colour sensor. Having said that it looks to me like this is a pretty nasty bug in the RemoteIOPort implementation. Basically that code is tracking the open ports, but it only has a single instance of the ports rather than one per remote EV3...
by gloomyandy
Wed May 23, 2018 6:03 pm
Forum: EV3 Software
Topic: sample program from leJOS News “openCV web streaming”
Replies: 3
Views: 44

Re: sample program from leJOS News “openCV web streaming”

In theory you don't need to use an IP address to talk to an EV3 you can use the BrickFinder class to get the address by name. However this does not always work on all networks as routers sometimes block the broadcast packets. You could try it, or alternately you should be able to reconfigure your ro...
by gloomyandy
Wed May 23, 2018 3:39 pm
Forum: EV3 Software
Topic: ColorSensor problems
Replies: 5
Views: 28

Re: ColorSensor problems

We need to see the exception, but if the other bricks have all initialised ok, then there is probably something "odd" about that brick/sensor combination. Have you tried just connecting to that brick and not all of the others? Have you tried swapping the sensor from that brick with one of ...
by gloomyandy
Tue May 22, 2018 2:45 pm
Forum: EV3 Software
Topic: Continuous Movement: Motor Synchronization
Replies: 7
Views: 26

Re: Continuous Movement: Motor Synchronization

Well good luck, you've had my advice, if you want to ignore it feel free.
by gloomyandy
Tue May 22, 2018 1:55 pm
Forum: EV3 Software
Topic: Continuous Movement: Motor Synchronization
Replies: 7
Views: 26

Re: Continuous Movement: Motor Synchronization

If all you need to do is turn smoothly looking for the line to track again why not simply adjust the Chassis velocity values (you are using the Chassis for your line follower I hope) to make the turn until you pick up the line again, don't mess around with arcs, or rotateTo use the sensors on your r...
by gloomyandy
Tue May 22, 2018 1:28 am
Forum: EV3 Software
Topic: Continuous Movement: Motor Synchronization
Replies: 7
Views: 26

Re: Continuous Movement: Motor Synchronization

There does not need to be any extra elements to genMove because the motor control system is designed such that you can start a new move before the current one ends and it will correctly handle the situation even though the motors continue to run during the process. The leJOS movement model is specif...
by gloomyandy
Mon May 21, 2018 9:13 pm
Forum: EV3 Software
Topic: Continuous Movement: Motor Synchronization
Replies: 7
Views: 26

Re: Continuous Movement: Motor Synchronization

Take a step back, what makes you think that the motor code does not support continuous motion? Secondly you are trying to switch speed and acceleration by monitoring the tacho count in Java code, this will almost certainly introduce errors that build up over time. Thirdly your code makes no attempt ...
by gloomyandy
Sun May 20, 2018 6:21 pm
Forum: EV3 Software
Topic: Should I use Debian or Ubuntu linux?
Replies: 3
Views: 59

Re: Should I use Debian or Ubuntu linux?

Just to be clear Juan is using ev3dev and not leJOS to run his tests. This may or may not work with leJOS. Remember that when you use a USB hub you will be sharing the single USB connection between the various cameras so will almost certainly be getting a low frame rate, this will be further reduced...
by gloomyandy
Fri May 18, 2018 7:46 am
Forum: EV3 Software
Topic: I need help understanding socket connection to the EV3
Replies: 2
Views: 26

Re: I need help understanding socket connection to the EV3

This is nothing to do with Sockets, but is just basic Java. You are trying to reference "sock" which was declared in an inner block (the one inside the try/catch), but your call to sock.close takes place in the outer block, in which "sock" does not exist. You need to move the dec...
by gloomyandy
Fri May 18, 2018 7:40 am
Forum: EV3 Software
Topic: Help with weird motor bug
Replies: 4
Views: 62

Re: Help with weird motor bug

You are wrong :-). The Chassis model does not provide "blocking moves" it is intended for continuous motion, this means that things like rotate/arc/travel simply start the move (and cancel any in progress motion), if you want to wait for the motion to complete you can call waitComplete. If...

Go to advanced search