View unanswered posts | View active topics It is currently Fri Aug 01, 2014 1:30 pm






Reply to topic  [ 4 posts ] 
Clearing BkTps 
Author Message
Rookie

Joined: Thu Dec 04, 2008 5:00 pm
Posts: 2
Post Clearing BkTps
I succesfully download and compile the program to my NXT brick. But when I start the debugger it says "Clearing BkTps" and it doesn't allow me to do anything. The nxt just blinks when I click start and stays at the main screen?? Heres the code:

Code:
#pragma config(Hubs,  S1, HTMotor,  HTMotor,  HTServo,  none)
#pragma config(Motor,  mtr_S1_C1_1,          motorD,        tmotorNormal, openLoop, )
#pragma config(Motor,  mtr_S1_C1_2,          motorE,        tmotorNormal, openLoop, )
#pragma config(Motor,  mtr_S1_C2_1,     motorF,        tmotorNormal, openLoop, )
#pragma config(Servo,  srvo_S1_C3_1,    serv1,                tServoNormal)
#pragma config(Servo,  srvo_S1_C3_2,    serv2,                tServoNormal)
#pragma config(Servo,  srvo_S1_C3_3,    serv3,                tServoNormal)
#pragma config(Servo,  srvo_S1_C3_4,    serv4,                tServoNormal)
#pragma config(Servo,  srvo_S1_C3_5,    serv5,                tServoNormal)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

#include "JoystickDriver.c" //Include file to "handle" the BT messages.
task main()
{
while (true) //Loop forever
{
getJoystickSettings(joystick); //You had two of those
motor[motorD] = joystick.joy1_y2;
motor[motorE] = joystick.joy1_y1;
if(joy1Btn(1))
{
servoTarget[serv1] = 250;
}
else
{
servoTarget[serv1] = 0;
}
if(joy1Btn(5))// before it was !=0 but it isn't needed
{
servoTarget[serv2] = 0;
servoTarget[serv3] = 150;
}
else
{
servoTarget[serv2] = 200;
servoTarget[serv3] = 0;
}
if(joy1Btn(1))
{
servoTarget[serv4] = 0;
}
else
{
servoTarget[serv4] = 250;
}
}
}


File name is haha


Fri Mar 06, 2009 7:21 pm
Profile
Rookie

Joined: Fri Jan 02, 2009 9:13 pm
Posts: 10
Post Re: Clearing BkTps
I've had this problem twice, the first time I was told that having a period in the filename is the problem, but It doesn't look thats your problem. For me it only fixed when I reinstalled RobotC, so if you are desperate, try that. Although, If you do find another way, please tell me!


Fri Mar 06, 2009 7:48 pm
Profile
Novice

Joined: Tue Jan 13, 2009 5:22 pm
Posts: 72
Location: USA, Pennsylvania
Post Re: Clearing BkTps
Try double check the wiring. I had also the same problem but often the servos are connected wrong. Try put them in the order your program says. NXT > Motor Controller > Motor Controller > Servo Controller
The servos are easily connected wrong.

_________________
We need a Linux Version!


Sat Mar 07, 2009 1:07 am
Profile WWW
Expert
User avatar

Joined: Tue Oct 14, 2008 7:16 pm
Posts: 171
Location: Investigating an unidentified ship sighted in Sector 31428
Post Re: Clearing BkTps
Crazy as it sounds, how good is your PC? If your debugger is set to constantly update the values, which, mind you is the only really useful way to do it, your PC may be freezing when it tries to load the debugger. I only suggest this because one of our programmers is using some ancient laptop designed for Windows 98 and it has a time of it drawing windows and such.

You may just want to take the drastic route of removing RobotC and reinstalling it; just biting the bullet and doing it may be the simplest way.

_________________
Captain, Head programmer, School of the Arts, Silverbots Robtics Team #2890
Code:
using namespace System;
using namespace Genius;
using namespace Personality;
public ref class Nerd : Geek, IAnserable
{
    Geek::Type brainMode = Geek::Type::Programmer;
}


Sat Mar 07, 2009 10:59 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.