| nxt_connect(struct nxt_remote *nxt_user) |
|---|
| Description: |
Connects to the Mindstorms NXT using bluetooth |
| Inputs: |
*nxt_user: |
| Return to top Return to main page |
| nxt_motor(int port, int speed, int brake) |
|---|
| Description: |
This function sets the motor output for NXT |
| Inputs: |
port: (motor connection to NXT) |
speed: (value between -100 and 100)
-100 is fullspeed Counter Clockwise |
brake: (motor mode) |
| Return to top Return to main page |
| nxt_motor_rotate(int port, int speed, int degrees) |
|---|
| Description: |
This function sets the motor output for NXT |
| Inputs: |
port: (motor connection to NXT) |
speed: (value between -100 and 100)
-100 is fullspeed Counter Clockwise |
degrees: |
| Return to top Return to main page |
| nxt_setsensor(int port, int sensortype, int sensormode) |
|---|
| Description: |
This function sets up the sensor to collect data for the NXT |
| Inputs: |
port: (motor connection to NXT) |
sensortype: |
sensormode: |
| Return to top Return to main page |
| nxt_getsensor(int port) |
|---|
| Description: |
This function gets the sensor data from the NXT. |
| Inputs: |
port: (motor connection to NXT) |
| Return to top Return to main page |
| nxt_printmess() |
|---|
| Description: |
This function prints the last message sent to or recieved from the NXT. |
| Inputs: |
None |
| Return to top Return to main page |
| nxt_disconnect() |
|---|
| Description: |
Disconnects to the Mindstorms NXT using bluetooth |
| Return to top Return to main page |
| nxt_gettacho(int port) |
|---|
| Description: |
This function gets the the techometer count for the motor. |
| Inputs: |
port: (motor connection to NXT) |
| Return to top Return to main page |
| nxt_motor_zero() |
|---|
| Description: |
This function resets the the techometer count for all the motors. |
| Inputs: |
port: (motor connection to NXT) |
| Return to top Return to main page |