User Tools

Site Tools


monorail

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
monorail [2013-11-11 22:42] janemonorail [2013-11-20 16:25] jane
Line 1: Line 1:
 ====== Monorail ====== ====== Monorail ======
 ===How to control the monorail=== ===How to control the monorail===
-You can control it from Python over Bluetooth as follows:+You can control it from Python over Bluetooth as follow (instruction for a linux distro):
  
-  - Install [[http://code.google.com/p/nxt-python/| python-nxt]]+  - Install [[http://code.google.com/p/nxt-python/| python-nxt]] 
   - Turn it on by pressing the orange button.   - Turn it on by pressing the orange button.
   - Start python and run the following setup commands:   - Start python and run the following setup commands:
Line 16: Line 16:
 motor_c = Motor(brick, nxt.motor.PORT_C) motor_c = Motor(brick, nxt.motor.PORT_C)
 </code> </code>
 +
 You can then control the motors by calling motor.turn(power, degrees) You can then control the motors by calling motor.turn(power, degrees)
 e.g. motor_a.turn(127, 360). e.g. motor_a.turn(127, 360).
monorail.txt · Last modified: 2015-10-05 15:55 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki