Search found 6053 matches

by gloomyandy
Wed May 23, 2018 6:03 pm
Forum: EV3 Software
Topic: sample program from leJOS News “openCV web streaming”
Replies: 3
Views: 39

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: 3
Views: 14

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: 20

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: 20

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: 20

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: 20

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: 53

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: 23

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: 60

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...
by gloomyandy
Sat May 12, 2018 11:17 am
Forum: EV3 Software
Topic: Is gloomyandy's code on EV3 to EV3 Motor control not working anymore?
Replies: 3
Views: 33

Re: Is gloomyandy's code on EV3 to EV3 Motor control not working anymore?

For some reason the brick is unable to find the other brick(s) you are trying to talk to. Are you sure that you have the correct names for the bricks you are trying to talk to? I'm a little confused as to how you have things setup in terms of networking. If all of your EV3s have a WiFi connection th...
by gloomyandy
Fri May 11, 2018 6:16 pm
Forum: EV3 Software
Topic: Is gloomyandy's code on EV3 to EV3 Motor control not working anymore?
Replies: 3
Views: 33

Re: Is gloomyandy's code on EV3 to EV3 Motor control not working anymore?

You need to post the details of the exception it will tell you which line the problem is occurring at.
by gloomyandy
Tue May 08, 2018 7:57 am
Forum: NXJ Projects
Topic: How does the pathfinder work? (Destination unreachable error)
Replies: 13
Views: 35

Re: How does the pathfinder work? (Destination unreachable error)

I will make one final effort to point out some of your problems. Yes your boolean may stop the move forwards code being called while a path is being followed. However it does nothing to stop a new path being started while the robot is still executing the call to rotate. But this is just an indicatio...
by gloomyandy
Tue May 08, 2018 1:24 am
Forum: NXJ Projects
Topic: How does the pathfinder work? (Destination unreachable error)
Replies: 13
Views: 35

Re: How does the pathfinder work? (Destination unreachable error)

Oh and you should really be talking to your teacher/supervisor about this sort of thing. A leJOS forum is really not the place to be trying to teach someone about the problems of multi-threaded programming.
by gloomyandy
Tue May 08, 2018 1:19 am
Forum: NXJ Projects
Topic: How does the pathfinder work? (Destination unreachable error)
Replies: 13
Views: 35

Re: How does the pathfinder work? (Destination unreachable error)

Sigh, if anything the new version has potentially more problems than the old. You are now accessing the Pilot from multiple threads, this is not a good thing to do. The leJOS classes (like most Java classes) are not thread safe and should not be used from multiple threads unless you take care to ens...
by gloomyandy
Mon May 07, 2018 6:55 pm
Forum: NXJ Projects
Topic: How does the pathfinder work? (Destination unreachable error)
Replies: 13
Views: 35

Re: How does the pathfinder work? (Destination unreachable error)

That code is pretty complex. I wonder if you actually understand what may be happening? The callback to your code for a detected feature will happen on a different thread to the one running your main code. This will be called over and over again so long as the feature is being detected (in your case...

Go to advanced search