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?
NXT NXC BCC remote
NXT NXC BCC remote
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
Re: NXT NXC BCC remote
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.
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
Re: NXT NXC BCC remote
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
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
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
http://bricxcc.sourceforge.net/
Re: NXT NXC BCC remote
Thanks John, but it's not really worth that bother for what I am trying to do.
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
Who is online
Users browsing this forum: No registered users and 5 guests