DroidScript wiki

(was AndroidScript) unofficial documentation by the community

User Tools

Site Tools


built_in:nxt_brake

Differences

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

Link to this comparison view

built_in:nxt_brake [2015/03/09 15:46] (current)
octazid created
Line 1: Line 1:
 +====== Brake ======
  
 +
 +The **Brake** function commands the NXT brick to Brake one or more of it's motors.
 +
 +The **motors** parameter can be a single motor, for example just **"​A"​** or a combination of motors such as **"​ABC"​**.
 +
 +Unlike the Stop function, this function actively brakes the motors using power from the battery. ​
 +<​code>​nxt.Brake( motors );</​code>​
 +
 +
 +====Example - Brake motors B and C====
 +
 +<​code>​nxt.Brake( "​BC"​ );</​code>​
 +  ​
built_in/nxt_brake.txt ยท Last modified: 2015/03/09 15:46 by octazid