User Tools

Site Tools


built_in:nxt

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
built_in:nxt [2015/03/23 07:43]
madlyr [Table] Added IsPaired description.
built_in:nxt [2015/04/18 18:02] (current)
Line 13: Line 13:
 | [[nxt_brake|Brake( motors )]]                             | 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 [[nxt_stop|Stop]] function, this function actively brakes the motors using power from the battery.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | [[nxt_brake|Brake( motors )]]                             | 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 [[nxt_stop|Stop]] function, this function actively brakes the motors using power from the battery.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
 | [[nxt_checkconnection|CheckConnection()]]                 | Returns true if the NXT brick is currently connected to the phone/tablet but it will show a popup warning message and return false if no brick is currently connected.\\ This function is useful if you want to warn the user that he/she have no connection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [[nxt_checkconnection|CheckConnection()]]                 | Returns true if the NXT brick is currently connected to the phone/tablet but it will show a popup warning message and return false if no brick is currently connected.\\ This function is useful if you want to warn the user that he/she have no connection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
-| [[nxt_connect|Connect( p1 )]]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |+| [[nxt_connect|Connect( name )]]                           Connects to the Bluetooth device with given **name**.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
 | [[nxt_disconnect|Disconnect()]]                           | Disconnects the Bluetooth link between your phone and the NXT brick.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [[nxt_disconnect|Disconnect()]]                           | Disconnects the Bluetooth link between your phone and the NXT brick.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
 | [[nxt_drive|Drive( motors, power, rotation )]]            | Commands the NXT brick to drive one or more of it's motors with a given power and number of rotations.\\ The **motors** parameter can be a single motor, for example just "A" or a combination of motors such as "ABC".\\ **Power** is given as a percentage value and negative values make the motor reverse.\\ If the number of **rotations** is set to zero, then the motor will continue until the Stop function is called.                                                                                                                                                                                                                                                                                                                                                     | | [[nxt_drive|Drive( motors, power, rotation )]]            | Commands the NXT brick to drive one or more of it's motors with a given power and number of rotations.\\ The **motors** parameter can be a single motor, for example just "A" or a combination of motors such as "ABC".\\ **Power** is given as a percentage value and negative values make the motor reverse.\\ If the number of **rotations** is set to zero, then the motor will continue until the Stop function is called.                                                                                                                                                                                                                                                                                                                                                     |
Line 21: Line 21:
 | [[nxt_getbtname|GetBtName( obj )]]                        | Returns Bluetooth name of a connected NXT brick or NXT brick name given as optional **obj** parameter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [[nxt_getbtname|GetBtName( obj )]]                        | Returns Bluetooth name of a connected NXT brick or NXT brick name given as optional **obj** parameter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
 | [[nxt_getcurrentprogram|GetCurrentProgram()]]             | Gets the name of the NXT-G program currently running on the NXT brick.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | [[nxt_getcurrentprogram|GetCurrentProgram()]]             | Gets the name of the NXT-G program currently running on the NXT brick.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
 +| [[nxt_getrotationcount|GetRotationCount( motor)]]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
 | [[nxt_isbluetoothenabled|IsBluetoothEnabled()]]           | Checks if Bluetooth is enabled on the phone/tablet. Returns **true** if Bluetooth is enabled and **false** if it is disabled. This is alias for function IsEnabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | [[nxt_isbluetoothenabled|IsBluetoothEnabled()]]           | Checks if Bluetooth is enabled on the phone/tablet. Returns **true** if Bluetooth is enabled and **false** if it is disabled. This is alias for function IsEnabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
 | [[nxt_isconnected|IsConnected()]]                         | Returns true if the NXT brick is currently connected to the phone/tablet. Unlike [[nxt_checkconnection|CheckConnection]] method, it will **not show a popup warning message** and return false if no brick is currently connected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | [[nxt_isconnected|IsConnected()]]                         | Returns true if the NXT brick is currently connected to the phone/tablet. Unlike [[nxt_checkconnection|CheckConnection]] method, it will **not show a popup warning message** and return false if no brick is currently connected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
built_in/nxt.1427096580.txt.gz ยท Last modified: 2015/03/23 15:43 (external edit)