NXT NXC BCC remote

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
h-g-t
Posts: 552
Joined: 07 Jan 2011, 08:59
Location: Albania

NXT NXC BCC remote

Post 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?
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.
h-g-t
Posts: 552
Joined: 07 Jan 2011, 08:59
Location: Albania

Re: NXT NXC BCC remote

Post 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.
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.
afanofosc
Site Admin
Posts: 1256
Joined: 26 Sep 2010, 19:36
Location: Nashville, TN
Contact:

Re: NXT NXC BCC remote

Post 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
Multi-platform LEGO MINDSTORMS programming
http://bricxcc.sourceforge.net/
h-g-t
Posts: 552
Joined: 07 Jan 2011, 08:59
Location: Albania

Re: NXT NXC BCC remote

Post by h-g-t »

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.
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 9 guests