|
Page 1 of 1
|
[ 3 posts ] |
|
Weird Errors/Robot Freezing Up
| Author |
Message |
|
TJH
Rookie
Joined: Thu Oct 23, 2008 6:49 pm Posts: 3 Location: Tahoma Junior High
|
 Weird Errors/Robot Freezing Up
What is up?!? We are trying to make the HiTechinc motors work. The NXT freezes every time we try to run them. They were working earlier. Here is the program. We download it through hardwire. The bluetooth is not working(but we'll explain that later). #pragma config(Hubs, S1, HTMotor, HTMotor, none, none) #pragma config(Motor, motorA, driveR, tmotorNormal, PIDControl, ) #pragma config(Motor, motorB, driveL, tmotorNormal, PIDControl, ) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main() { motor(driveR) = 100; wait10Msec(500); motor(driveR) = -1; wait10Msec(10); motor(driveL) = 100; wait10Msec(450); motor(driveL) = -1; wait10Msec(10);
} The program does not automatically run on the NXT any more, if that makes any difference. We have ROBOTC for Mindstorms 1.46 - 365. We have redownloaded the firmware about 20 times, using both NXT0760.rfw and NXT0753.rfw files. NXT0760.rfw works, but the Bluetooth does not work. This operation cannot be aborted. It can take 10 And, as I said before, the NXT freezes whenever we mention HiTechinc Motors in the program. Trying to connect to Bluetooth ROBOTC says"Remember you need to push orange butto on the NXT brick 'BTH::?::00:16:53:06:FF:15' for BT password input from NXT" The NXT is on. So is its Bluetooth. Nothing appears on the screen of the NXT. We hit OK and ROBOTC says "Attempting to pair NXT Bricbricks via Bluetooth.This can take15 seconds. Then, after a long wait, ROBOTC says "Failed to open Communication link to NXT brick. Check if brick is powerd on and link (USB or BT) is setup. Error Code: Fatom Err:'Virtual BT Serial Port Not Found'" This is a laptop, so of course it has built in bluetooth, which is on for sure. If you try connecting it via the computer's bluetooth the computer connects to the NXT but the NXT does not say it is paired with the Bluetooth. The USB works fine, but the program does not start with ROBOTC. The "start and stop" window doesn't even appear. But no errors, though. So really, this is two problems. We need help, and the deadline is drawing nearer. Nothing is happening in our meetings as a result of this. Please, help!
|
| Thu Nov 13, 2008 8:14 pm |
|
 |
|
Aswin
Expert
Joined: Mon Oct 06, 2008 6:30 pm Posts: 176 Location: Netherlands
|
 Re: Weird Errors/Robot Freezing Up
Could it be the round brackets in this and other similar statements? Round brackets are used in functions I think you have to use square brackets as motor is an array variable and not a function.
_________________My most recent blog: A grain of sugar
|
| Fri Nov 14, 2008 5:25 pm |
|
 |
|
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 537
|
 Re: Weird Errors/Robot Freezing Up
 |  |  |  | TJH wrote: What is up?!?
#pragma config(Hubs, S1, HTMotor, HTMotor, none, none) #pragma config(Motor, motorA, driveR, tmotorNormal, PIDControl, ) #pragma config(Motor, motorB, driveL, tmotorNormal, PIDControl, ) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main() { motor(driveR) = 100; wait10Msec(500); motor(driveR) = -1; wait10Msec(10); motor(driveL) = 100; wait10Msec(450); motor(driveL) = -1; wait10Msec(10);
}
|  |  |  |  |
First, you're using the "motor" command the wrong way, as Aswin commented on. You should be using square bracket. Second, your HiTechnic motors are not connected on motor's MotorA and MotorB... they're MotorD and MotorE by default. This will cause your robot to go nowhere.  |  |  |  | Quote: The program does not automatically run on the NXT any more, if that makes any difference. We have ROBOTC for Mindstorms 1.46 - 365. We have redownloaded the firmware about 20 times, using both NXT0760.rfw and NXT0753.rfw files. NXT0760.rfw works, but the Bluetooth does not work. This operation cannot be aborted. It can take 10 And, as I said before, the NXT freezes whenever we mention HiTechinc Motors in the program. Trying to connect to Bluetooth ROBOTC says"Remember you need to push orange butto on the NXT brick 'BTH::?::00:16:53:06:FF:15' for BT password input from NXT" The NXT is on. So is its Bluetooth. Nothing appears on the screen of the NXT. We hit OK and ROBOTC says "Attempting to pair NXT Bricbricks via Bluetooth.This can take15 seconds. Then, after a long wait, ROBOTC says "Failed to open Communication link to NXT brick. Check if brick is powerd on and link (USB or BT) is setup. Error Code: Fatom Err:'Virtual BT Serial Port Not Found'" This is a laptop, so of course it has built in bluetooth, which is on for sure. If you try connecting it via the computer's bluetooth the computer connects to the NXT but the NXT does not say it is paired with the Bluetooth. The USB works fine, but the program does not start with ROBOTC. The "start and stop" window doesn't even appear. But no errors, though. So really, this is two problems. We need help, and the deadline is drawing nearer. Nothing is happening in our meetings as a result of this. Please, help! |  |  |  |  |
- If using 1.46, you should be using firmware 7.60. - Built-in Bluetooth is not supported. You should disable the built-in bluetooth and use the adapter that came with your FTC Kit. - If the "Start and Stop" window isn't appear, it may be off screen or something else. Try resetting ROBOTC by going to "Window - Menu Level - Expert" and then "View - Delete all registry Values"
_________________Timothy Friez ROBOTC Developer - SW Engineer tfriez@robotc.net
|
| Mon Nov 17, 2008 2:46 pm |
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|