Search found 6046 matches

by gloomyandy
Fri May 18, 2018 7:46 am
Forum: EV3 Software
Topic: I need help understanding socket connection to the EV3
Replies: 1
Views: 13

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

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

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

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

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

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

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

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...
by gloomyandy
Mon May 07, 2018 8:20 am
Forum: NXJ Projects
Topic: How does the pathfinder work? (Destination unreachable error)
Replies: 13
Views: 31

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

Note that the A* implementation is rather more sophisticated than that used for the other search mechanisms, in particular it has the notion of clearance around a wall or object to allow the robot to actually travel the found path. I can see no sign in the code that it will terminate early so if it ...
by gloomyandy
Sun May 06, 2018 8:36 am
Forum: NXJ Projects
Topic: How does the pathfinder work? (Destination unreachable error)
Replies: 13
Views: 31

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

First things first, it may be maddening to you, but please remember that all of this code is the result of people giving up their spare time to write it and that any help you get here is currently the result of basically me giving up my time to help you. Reading requests for help that contain negati...
by gloomyandy
Sat May 05, 2018 8:47 pm
Forum: NXJ Hardware
Topic: "Data abort" Brick unresponsive after completing program
Replies: 2
Views: 17

Re: "Data abort" Brick unresponsive after completing program

You should just be able to reflash leJOS to it, make sure you use the same version, there is an option not to reformat the file system, so you may be able to recover your file, but it is never a good idea to not have a backup of data on the NXT. See NXJFlashG here: http://www.lejos.org/nxt/nxj/tutor...
by gloomyandy
Sat May 05, 2018 6:56 am
Forum: EV3 Software
Topic: EV3Control plugin networking
Replies: 1
Views: 25

Re: EV3Control plugin networking

Why not just look at the source to find out the answers to all of your questions? Or spend some time looking at the leJOS API?
https://sourceforge.net/p/lejos/ev3/cod ... java#l1410
http://www.lejos.org/ev3/docs/lejos/har ... inder.html
by gloomyandy
Fri May 04, 2018 5:24 pm
Forum: NXJ Software
Topic: Possible ways for direct communication between two bricks
Replies: 12
Views: 2866

Re: Possible ways for direct communication between two bricks

The samples I refereed to above are now here: https://sourceforge.net/p/lejos/nxt/code/HEAD/tree/trunk/samples/src/org/lejos/sample/nxtconnecttest/NXTConnectTest.java https://sourceforge.net/p/lejos/nxt/code/HEAD/tree/trunk/samples/src/org/lejos/sample/nxtreceive/NXTReceive.java But seriously I'm no...
by gloomyandy
Fri May 04, 2018 7:55 am
Forum: NXJ Software
Topic: Out of Memory exception when running Node Path Finder
Replies: 2
Views: 21

Re: Out of Memory exception when running Node Path Finder

Deleting things from the NXT will not make any difference, out of memory means you have run out oi program RAM. Remember there is only 64Kb of RAM (yes that is Kb not Mb or Gb) of RAM on the NXT so it is easy to run out. This is used for all of your program storage along with things needed by the le...
by gloomyandy
Wed May 02, 2018 8:00 am
Forum: NXJ Software
Topic: What units does the NXJ Software use?
Replies: 2
Views: 20

Re: What units does the NXJ Software use?

Sorry there are no docs for this other than what may be in the API documentation. For sensors I would suggest that you always spend some time trying them to get a feel for how they work, what sort of values they produce etc. As to movement units, well leJOS is actually unit neutral for most things. ...

Go to advanced search