To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 154
153  |  155
Subject: 
Re: Tacho Limit and Braking
Newsgroups: 
lugnet.robotics.nxt
Date: 
Mon, 2 Oct 2006 01:13:39 GMT
Viewed: 
11272 times
  
In lugnet.robotics.nxt, Kevin L. Clague wrote:
I started playing with NBC, and wanted to run the motor until it hits the
tachometer limit, and then brake.

I have been unable to make this happend with one setout opcode.

Is it possible?  Is it possible to make the opcode wait until the tacho limit is
hit?

The NXT firmware does not support a single operation which has the motor run to
a specific tachometer limit and then brake.  The only way to do what you would
like to do involves several operations.  But you can wrap it all up into a
reusable block (aka subroutine).

Just yesterday I uploaded a new program to the NBC Samples page which includes a
subroutine which does what you want.  See the Motors.zip on the Samples page.
In the zip is a program called rot_test.nbc.  It has a sample subroutine and
parameterized macro which encapsulates the subroutine call.

John Hansen
http://bricxcc.sourceforge.net/nbc/



Message has 1 Reply:
  Re: Tacho Limit and Braking
 
(...) This made sense, until I read this... In lugnet.robotics.nxt, John Hansen wrote: (...) I had to go back and re-read this to understand one is talking about the NXT firmware, and the other is talking about NBC. If I read it correctly, it means: (...) (18 years ago, 2-Oct-06, to lugnet.robotics.nxt)

Message is in Reply To:
  Tacho Limit and Braking
 
I started playing with NBC, and wanted to run the motor until it hits the tachometer limit, and then brake. I have been unable to make this happend with one setout opcode. Is it possible? Is it possible to make the opcode wait until the tacho limit (...) (18 years ago, 1-Oct-06, to lugnet.robotics.nxt)

6 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR