Subject:
|
Re: Two motors at the same time... It is possible?
|
Newsgroups:
|
lugnet.robotics.nxt
|
Date:
|
Mon, 19 Feb 2007 12:15:51 GMT
|
Viewed:
|
14257 times
|
| |
| |
In lugnet.robotics.nxt, Patrick J. Levy wrote:
> John,
>
> >
> > If you want to do these three things for two different motors
> > simultaneously you
> > can, but at the moment you have to roll your own code to do the job.
>
>
> It worked just as I expected. The two motors now are rotating the same time.
> Thanks to your example, now I am giving some time to understand this
> setOutput call, and reading all the documentation (it is quite easier with
> pratical examples...) , but i found that it does not accept negative values
> for the tachoLimit parameter. (The motor does not move at all)
>
> I did not find any mention in the "NXC guide - output module section" for
> changing the rotation direction of the motors, although i saw it is possible
> to do that using the convenience calls like OnFwd(outputs, pwr) and
> OnRev(outputs, pwr). So i can imagine there is a way...
>
> Am I missing something?
Hi Patrick,
Indeed the Tacholimit can only be positive. But power can be negative, that's
the way to reverse direction.
Philo
|
|
Message has 1 Reply:
Message is in Reply To:
| | Re: Two motors at the same time... It is possible?
|
| John, (...) It worked just as I expected. The two motors now are rotating the same time. Thanks to your example, now I am giving some time to understand this setOutput call, and reading all the documentation (it is quite easier with pratical (...) (18 years ago, 19-Feb-07, 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
|
|
|
Active threads in NXT programmable brick
|
|
|
|