To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 26473
26472  |  26474
Subject: 
NXT direct commands
Newsgroups: 
lugnet.robotics
Date: 
Tue, 3 Oct 2006 16:37:24 GMT
Original-From: 
Nether <jorge.fd@gmail.^AvoidSpam^com>
Viewed: 
2607 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
    

Custom Search

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