Page 1 of 1
NXT NXC BCC remote
Posted: 10 May 2011, 20:51
by h-g-t
I was trying out a small device employing an old Lego 9v motor on the NXT using a hybrid cable and various programs. With the joystick and remote, I noticed that the motor was stiff, even when I had closed the applications. Running my own test program which used 'coast', rather than 'off' the motor turned freely when not being used, even when the program was running.
I want to run the device for a long period, is there any way to set the joystick or remote to 'coast' to save battery power?
Re: NXT NXC BCC remote
Posted: 11 May 2011, 08:43
by h-g-t
Forget it, I'll just use the 'direct control' panel in BCC since that allows me to choose brake or float when switching the motor off.
Re: NXT NXC BCC remote
Posted: 17 May 2011, 18:28
by afanofosc
So do you think it would be nice if you could choose whether BricxCC remote tools used a powered brake or a coast rather than have it always use a powered brake? I'm open to implementing this sort of enhancement.
You could do this right now with the Joystick tool via a custom RemoteObjects Pascal Script (.rops) assigned to one of your Joystick buttons.
http://old.nabble.com/BricxCC-Scripting-td15438140.html
Use MotorsFloat instead of MotorsOff to brake without power (aka coast).
ROPS is a powerful but little used tool in BricxCC. You can even create a program in the ROPS language within an editor window of the IDE and run it with integrated debugger support using the standard BricxCC menu and toolbar options.
John Hansen
Re: NXT NXC BCC remote
Posted: 17 May 2011, 19:02
by h-g-t
Thanks John, but it's not really worth that bother for what I am trying to do.