skoehler wrote: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 can't dig up those nxc drivers and see if they work...
skoehler wrote:(Kirks wrote the Tetrix driver)
Thanks again Kirks.
skoehler wrote:will not send forward() commands to the controller if the motor is already turning forward(). I'm afraid, you have to modify the Tetrix driver to properly test what I suggested.
I wonder if I can manage to disable that check on my own... All I'd need to do to test changes would be to make a new classes.jar, or would I need to rebuild the firmware too? I thought we already established several months ago that the Tetrix driver was supposed to automagically keep sending keep-alives; does that also involve re-sending the state that the controller is supposed to be in?
skoehler wrote:What happens, if you do the backward() call after 30 seconds instead of 33 seconds?
Well the other thing is I think the controller firmware itself doesn't immediately respond to changes in forward/backward. e.g: if you say forward() and then backward() a second later, I've observed about another second delay after that before the controller actually reverses direction. I'm not sure exactly what's going on beyond that, but I think that delay might actually be working to my advantage, allowing my 33-second reverse-direction guess to work reliably--contrast to if I were to separate the calls to forward() and backward() with a stop() and a 1-second delay between each: the motors would respond relatively instantaneously.
To actually answer your question: if the motor starts going by forward, I call backward() 30 seconds later, the motor would go backward, and then 33 seconds after that it would go forward. It seems to be 33 seconds from the last change in direction that the controller does the involuntary direction-flip.