Subject:
|
NXT direct commands
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Tue, 3 Oct 2006 16:37:24 GMT
|
Original-From:
|
Nether <JORGE.FD@GMAILsaynotospam.COM>
|
Viewed:
|
2778 times
|
| |
| |
Hi, i'm programing a Python library for remote controlling the NXT, now i'm
working with the "set output state" message and i would like to know what
means the diferent values of each parameter:
#MOTOR MODES
MOTORON = 0x01
BRAKE = 0x02
REGULATED = 0x04
#MOTOR REGULATION MODES
REGULATION_IDLE = 0x00
REGULATION_MOTOR_SPEED = 0x01
REGULATION_MOTOR_SYNC = 0x02
#RUN STATES
RUN_STATE_IDLE = 0x00
RUN_STATE_RAMPUP = 0x10
RUN_STATE_RUNNING = 0x20
RUN_STATE_RAMPDOWN = 0x40
I have tried to send them to the NXT to discover what they do, but the
behavior isn't what i expect.
--
View this message in context: http://www.nabble.com/NXT-direct-commands-tf2377311.html#a6623948
Sent from the LEGO Robotics mailing list archive at Nabble.com.
|
|
Message has 1 Reply: | | Re: NXT direct commands
|
| For better documentation of the various parameters, look in the Executable File Specification.pdf around page 81. Here's the notes I made in ruby-nxt ((URL) # output mode COAST = 0x00 # motor will rotate freely? MOTORON = 0x01 # enables PWM power (...) (18 years ago, 3-Oct-06, to lugnet.robotics)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|