Search found 22 matches

by zbuhman
Sat Jul 21, 2012 10:04 pm
Forum: NXJ Software
Topic: Tetrix motor controller reverses reliably every 33 seconds
Replies: 25
Views: 5524

Re: Tetrix motor controller reverses reliably every 33 secon

The Problem: I used a class hierarchy: TextrixMotor => TetrixEncoderMotor => TetrixRegulatedMotor, and I return a TetrixRegulatedMotor instance from the TetrixMotorController.getBasicMotor() method which the return type is TextrixMotor. I did not turn off regulation before I returned the instance a...
by zbuhman
Fri Jul 06, 2012 4:04 am
Forum: NXJ Software
Topic: [Bug] leJOS locks on startup screen
Replies: 5
Views: 1592

Re: [Bug] leJOS locks on startup screen

A signed 32-bit timer with millisecond resolution would indeed overflow after about 3 weeks.

3 weeks, 3 days, 20 hours, 31 minutes, ~23.6 seconds. Does this match your observations?
by zbuhman
Sat Jun 30, 2012 3:15 am
Forum: NXJ Projects
Topic: 8-10th grade 1-week "Tetrix" camp using leJOS
Replies: 1
Views: 1341

8-10th grade 1-week "Tetrix" camp using leJOS

So today was the conclusion of the first "Tetrix Robotics" camp of this summer; I was the instructor, and of course I had them using leJOS to program their robots (the other instructors use Labview). This is both the first week I've been an "instructor", and the first week leJOS ...
by zbuhman
Tue Jun 19, 2012 11:11 pm
Forum: NXJ Software
Topic: Tetrix motor controller reverses reliably every 33 seconds
Replies: 25
Views: 5524

Re: Tetrix motor controller reverses reliably every 33 secon

The one program does call setPower() - the other program merely contains the I2C commands for forward() and backward(). What do you expect? From what I can tell, the TetrixMotor methods aren't 1:1 with the equivalent I2C commands. What I mean by this, is according to the motor controller documentat...
by zbuhman
Tue Jun 19, 2012 12:24 am
Forum: NXJ Software
Topic: Tetrix motor controller reverses reliably every 33 seconds
Replies: 25
Views: 5524

Re: Tetrix motor controller reverses reliably every 33 secon

It's Kirk, not Kirks. (sorry for my bad typing). I thought that sounded funny; but I trusted your spelling. The drivers are in Java. Just copy their sources to your project, and make sure to move them to another package, so that you don't accidentally use the ones from the classes.jar. Now I feel s...
by zbuhman
Mon Jun 18, 2012 4:42 am
Forum: NXJ Software
Topic: Tetrix motor controller reverses reliably every 33 seconds
Replies: 25
Views: 5524

Re: Tetrix motor controller reverses reliably every 33 secon

My understanding is if NTO is set, the controller should never turn off so that behavior to me seems weird. I was surprised too. If it helps increase the credibility of my claim, I have that same NTO code I pasted, with a 1-minute timeout set: http://youtu.be/NdsM5u6Jobw I run my NTO program, it ex...
by zbuhman
Mon Jun 18, 2012 4:14 am
Forum: NXJ Software
Topic: Tetrix motor controller reverses reliably every 33 seconds
Replies: 25
Views: 5524

Re: Tetrix motor controller reverses reliably every 33 secon

I was just thinking; though I obviously have no idea what's going on, perhaps whatever mechanism that's making the motor controller shut off when the NXT shuts off (perhaps IPOWERA going low does this? do we have control over that?) can be used to gracefully shut off the motor controller--and anythi...
by zbuhman
Mon Jun 18, 2012 4:06 am
Forum: NXJ Software
Topic: Tetrix motor controller reverses reliably every 33 seconds
Replies: 25
Views: 5524

Re: Tetrix motor controller reverses reliably every 33 secon

If you want to take a go at it, my plan is to create a class that just sets up the i2c sensor and sends the forward command (and any other prerequisites) to see if the 33 sec reversal still manifests. Sure, I'll take a crack at this... got it. Hmm this is fun; I think I want to attach this thing to...
by zbuhman
Mon Jun 18, 2012 1:54 am
Forum: NXJ Software
Topic: Tetrix motor controller reverses reliably every 33 seconds
Replies: 25
Views: 5524

Re: Tetrix motor controller reverses reliably every 33 secon

Yes, the code is in lejos.nxt.addon.tetrix.TetrixMotorController, method: synchronized int doCommand(int command, int operand, int channel), lInes 408 and 412: ... if (motorState[channel]==STATE_RUNNING_FWD) break; ... if (motorState[channel]==STATE_RUNNING_BKWD) break; Awesome; thanks. So I did th...
by zbuhman
Mon Jun 18, 2012 12:15 am
Forum: NXJ Software
Topic: Tetrix motor controller reverses reliably every 33 seconds
Replies: 25
Views: 5524

Re: Tetrix motor controller reverses reliably every 33 secon

LabView wasn't part in my list for a reason: I'm not whether we can actually have a look at the source code of the Tetrix extension. The Tetrix extension is a black box, of which I'd like to know what it is actually doing. Well, you did say "any other programming language". I'll see if I ...
by zbuhman
Sun Jun 17, 2012 11:58 pm
Forum: NXJ Software
Topic: [Solved] Flashing problem
Replies: 13
Views: 3588

Re: [Solved] Flashing problem

I thought I would comment because I think udev-rule debugging and particularly file permissions is something everyone should understand (particularly if you're writing the rules yourself). You can watch udev add/remove devices by running "udevadm monitor" and then plug in the nxt; it'll lo...
by zbuhman
Sun Jun 17, 2012 11:00 pm
Forum: NXJ Software
Topic: Tetrix motor controller reverses reliably every 33 seconds
Replies: 25
Views: 5524

Re: Tetrix motor controller reverses reliably every 33 secon

Can you try RobotC or nxjc or any other programming language? Works fine for me in LabView + Lego/Tetrix extensions. Can you try to call forward() of the motor every 20 seconds. Absolutely. http://sprunge.us/HYNH?java It still reverses every 33 seconds. If that doesn't work, can you try to find wha...
by zbuhman
Sun Jun 17, 2012 10:46 pm
Forum: NXJ Software
Topic: Tetrix motor controller reverses reliably every 33 seconds
Replies: 25
Views: 5524

Re: Tetrix motor controller reverses reliably every 33 secon

http://sprunge.us/iJcS?java Identical results; motors reverse direction every 33 seconds. Controller voltage is 12.66 V, no mechanical load. I then tried http://sprunge.us/hKHY?java, which prints forward/backward every 33 seconds, and motor direction *never* flips (and I let that run for 10 minutes)...
by zbuhman
Sun Jun 17, 2012 6:07 am
Forum: NXJ Software
Topic: Tetrix motor controller reverses reliably every 33 seconds
Replies: 25
Views: 5524

Tetrix motor controller reverses reliably every 33 seconds

Perhaps I'm doing something wrong. I'm using the 0.9.1 release. My code: http://sprunge.us/ZUSV?java Every ~33.3 seconds +/- 0.5 seconds (average of 10 consecutive reversals), both motors inexplicably reverse direction. I noticed this awhile ago http://lejos.sourceforge.net/forum/viewtopic.php?f=7&a...
by zbuhman
Sat Jan 21, 2012 8:04 pm
Forum: NXJ Software
Topic: Tetrix motor controller heavily delayed responses.
Replies: 1
Views: 712

Tetrix motor controller heavily delayed responses.

I'm using the lejos snapshot from the trunk that I checked out two days ago. I was just half-reading what the tutorial had to say, and I decided I'd do the first motor control problem with the tetrix motor controller. My implementation: http://sprunge.us/dNVG?java ; it seems that even doing the moto...

Go to advanced search