Go to Post CD makes FIRST an infinitely better place. - lemiant [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 20-02-2011, 14:23
Rosemount2606 Rosemount2606 is offline
Registered User
FRC #2606
 
Join Date: Jan 2011
Location: Rosemount
Posts: 23
Rosemount2606 is an unknown quantity at this point
Re: .out file not building!

Quote:
Originally Posted by tomy View Post
are you changing something in the wpilib that is not changing when you download it to the robot or what is wrong
we are not changing it
Reply With Quote
  #17   Spotlight this post!  
Unread 20-02-2011, 14:24
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: .out file not building!

Quote:
Originally Posted by tomy View Post
so then what is the problem??????
Please read the entire thread...

Rosemount: Could you please post your source code? We have found WindRiver and vxWorks can do some odd things, sometimes an obscure runtime error will make the illusion of it uploading but older code is ran.

EDIT: You are doing Undeploy -> Deploy -> Reboot robot correct?
Reply With Quote
  #18   Spotlight this post!  
Unread 20-02-2011, 14:26
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: .out file not building!

have you reimaged your crio?
have you updated windriver?
on the crio are all dongles off but counsel out?
have you done a clean build?
do you have anything in your code that is not hooked up to the robot?
ex: sensor, encoder....
Reply With Quote
  #19   Spotlight this post!  
Unread 20-02-2011, 14:28
Rosemount2606 Rosemount2606 is offline
Registered User
FRC #2606
 
Join Date: Jan 2011
Location: Rosemount
Posts: 23
Rosemount2606 is an unknown quantity at this point
Re: .out file not building!

Quote:
Originally Posted by basicxman View Post
EDIT: You are doing Undeploy -> Deploy -> Reboot robot correct?
That is correct. The first time we do it, a window opens and closes immediately, so we cannot read it. If we do that again, is says "Unable to delete the UserProgram from the robot."

posting source in a second.
Reply With Quote
  #20   Spotlight this post!  
Unread 20-02-2011, 14:33
Rosemount2606 Rosemount2606 is offline
Registered User
FRC #2606
 
Join Date: Jan 2011
Location: Rosemount
Posts: 23
Rosemount2606 is an unknown quantity at this point
Re: .out file not building!

Quote:
Originally Posted by basicxman View Post
Rosemount: Could you please post your source code? We have found WindRiver and vxWorks can do some odd things, sometimes an obscure runtime error will make the illusion of it uploading but older code is ran.
In an attempt to fix our problems we have created a new project and widdled our code down to the essentials.

RJoystick is just a subclass of Joystick.
Our ZomBDashboard was working before we ran into these issues.

Code:
#include "WPILib.h"
#include "ZomBDashboard.h"
#include "RJoystick.h"

/**
 * This is a demo program showing the use of the RobotBase class.
 * The SimpleRobot class is the base of a robot application that will automatically call your
 * Autonomous and OperatorControl methods at the right time as controlled by the switches on
 * the driver station or the field controls.
 */ 
class RobotDemo : public SimpleRobot
{
	RobotDrive 		myRobot; // robot drive system
	RJoystick 		leftstick; // only joystick
	RJoystick	 	rightstick;
	ZomBDashboard 	zomb;
	Jaguar 			winch_motor;
	Compressor 		compressor;

public:
	RobotDemo(void):
		myRobot(1, 2),	// these must be initialized in the same order
		leftstick(1),		// as they are declared above.
		rightstick(2),
		zomb(ZomBDashboard::GetInstance(TCP)),
		winch_motor(3),
		compressor(5,4)
	{
		myRobot.SetExpiration(0.1);
	}

	/**
	 * Drive left & right motors for 2 seconds then stop
	 */
	void Autonomous(void)
	{
		myRobot.SetSafetyEnabled(false);
		myRobot.Drive(0.1, 0.0); 	// drive forwards half speed
		Wait(2.0); 				//    for 2 seconds
		myRobot.Drive(0.0, 0.0); 	// stop robot
	}

	/**
	 * Runs the motors with arcade steering. 
	 */
	void OperatorControl(void)
	{
		myRobot.SetSafetyEnabled(true);
		while (IsOperatorControl())
		{
			compressor.Start();
			leftstick.UpdateButtonStates();
			rightstick.UpdateButtonStates();
			myRobot.TankDrive(leftstick, rightstick);
			
			if(zomb.CanSend())
			{
				zomb.Add("leftStickAxis", leftstick.GetY());
				zomb.Add("rightStickAxis", rightstick.GetY());
				zomb.Add("testtext", "RWRRSARSR");
				zomb.Send();
				
			}
			
			
			Wait(0.02);//Min time to wait is 0.005
		}
	}
};

START_ROBOT_CLASS(RobotDemo);

Last edited by Rosemount2606 : 20-02-2011 at 14:40.
Reply With Quote
  #21   Spotlight this post!  
Unread 20-02-2011, 14:36
Rosemount2606 Rosemount2606 is offline
Registered User
FRC #2606
 
Join Date: Jan 2011
Location: Rosemount
Posts: 23
Rosemount2606 is an unknown quantity at this point
Re: .out file not building!

Quote:
Originally Posted by tomy View Post
have you reimaged your crio?
have you updated windriver?
on the crio are all dongles off but counsel out?
have you done a clean build?
do you have anything in your code that is not hooked up to the robot?
ex: sensor, encoder....
-Im not really sure where to find a windriver update but i feel like ours should be updated.
-Yes we reimaged the CRIO, thats why we not have no code on or robot.
- Yes the dongles are off except console out
-Yes we did a clean build
-No
Reply With Quote
  #22   Spotlight this post!  
Unread 20-02-2011, 14:36
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: .out file not building!

if i remember right you are missing a brace here

Code:
class RobotDemo : public SimpleRobot
{
RobotDrive myRobot; // robot drive system
RJoystick leftstick; // only joystick
RJoystick	 rightstick;
ZomBDashboard zomb;
Jaguar winch_motor;
Compressor compressor;
}
Reply With Quote
  #23   Spotlight this post!  
Unread 20-02-2011, 14:38
Rosemount2606 Rosemount2606 is offline
Registered User
FRC #2606
 
Join Date: Jan 2011
Location: Rosemount
Posts: 23
Rosemount2606 is an unknown quantity at this point
Re: .out file not building!

Quote:
Originally Posted by tomy View Post
if i remember right you are missing a brace here

Code:
class RobotDemo : public SimpleRobot
{
RobotDrive myRobot; // robot drive system
RJoystick leftstick; // only joystick
RJoystick	 rightstick;
ZomBDashboard zomb;
Jaguar winch_motor;
Compressor compressor;
}
negative ghostrider. If that were an issue, we would of gotten a compiler error.

Last edited by Rosemount2606 : 20-02-2011 at 14:41.
Reply With Quote
  #24   Spotlight this post!  
Unread 20-02-2011, 14:46
Rosemount2606 Rosemount2606 is offline
Registered User
FRC #2606
 
Join Date: Jan 2011
Location: Rosemount
Posts: 23
Rosemount2606 is an unknown quantity at this point
Re: .out file not building!

I'm not sure if this helps but we tried following this(Start on p.12) guide on Debugging the robot. The "Entry Point" of FRC_UserProgram.... it tells us to use is no where to be found.
Reply With Quote
  #25   Spotlight this post!  
Unread 20-02-2011, 14:47
Peragore's Avatar
Peragore Peragore is offline
CEO of Black Magic
AKA: Philip Mulford
FRC #3373 (Team Robohawk)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: US
Posts: 50
Peragore is an unknown quantity at this point
Re: .out file not building!

we are having the same problem with deploying our code. We have tried everything mentioned in this thread and nothing has worked. Im with team 2606 on this one. And its bizarre because it worked perfectly at the beginning of the build season for us.
__________________


Code:
 
while (life){
  frcObsession = true;
  obs.ProgramAndObsess();
}
if (!life) life = true;

Last edited by Peragore : 20-02-2011 at 14:53.
Reply With Quote
  #26   Spotlight this post!  
Unread 20-02-2011, 15:05
Rosemount2606 Rosemount2606 is offline
Registered User
FRC #2606
 
Join Date: Jan 2011
Location: Rosemount
Posts: 23
Rosemount2606 is an unknown quantity at this point
Re: .out file not building!

If it helps, we are deploying it, so to speak. It just seemed like this may have been overlooked. It says it is deploying properly, but when we reboot the robot, it has no code on it.
Reply With Quote
  #27   Spotlight this post!  
Unread 20-02-2011, 15:08
Peragore's Avatar
Peragore Peragore is offline
CEO of Black Magic
AKA: Philip Mulford
FRC #3373 (Team Robohawk)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: US
Posts: 50
Peragore is an unknown quantity at this point
Re: .out file not building!

That's is what is happening to me as well. Its like the code vanishes as it goes from the laptop to the cRIO
__________________


Code:
 
while (life){
  frcObsession = true;
  obs.ProgramAndObsess();
}
if (!life) life = true;
Reply With Quote
  #28   Spotlight this post!  
Unread 20-02-2011, 15:21
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: .out file not building!

check the dongles on the crio

this happened to us in our first year.

all of them should be off exept for counsel out

also how are you rebooting ?
Reply With Quote
  #29   Spotlight this post!  
Unread 20-02-2011, 15:28
Rosemount2606 Rosemount2606 is offline
Registered User
FRC #2606
 
Join Date: Jan 2011
Location: Rosemount
Posts: 23
Rosemount2606 is an unknown quantity at this point
Re: .out file not building!

Quote:
Originally Posted by Rosemount2606 View Post
-
- Yes the dongles are off except console out
We are rebooting through the driverstation and cutting power via the breaker, and then giving it back to the robot

Last edited by Rosemount2606 : 20-02-2011 at 15:36.
Reply With Quote
  #30   Spotlight this post!  
Unread 20-02-2011, 15:42
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: .out file not building!

all you have to do to reboot is use the driverstation

make sure the code fully downloads

are you using the clam for programming?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi