Go to Post Reffing a FIRST event is unlike being an ump or a ref at any other event. Where else is a game invented each year and over 1000 teams play this game within 3 months of its birth? - Andy Baker [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
  #1   Spotlight this post!  
Unread 02-20-2011, 03:05 PM
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
  #2   Spotlight this post!  
Unread 02-20-2011, 03:08 PM
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
  #3   Spotlight this post!  
Unread 02-20-2011, 03:21 PM
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: 490
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
  #4   Spotlight this post!  
Unread 02-20-2011, 03:42 PM
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!

Quote:
Originally Posted by tomy View Post
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 ?
Thanks! Flipping the console out switch on fixed it for us.
__________________


Code:
 
while (life){
  frcObsession = true;
  obs.ProgramAndObsess();
}
if (!life) life = true;
Reply With Quote
  #5   Spotlight this post!  
Unread 02-20-2011, 02:24 PM
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
  #6   Spotlight this post!  
Unread 02-20-2011, 02:28 PM
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
  #7   Spotlight this post!  
Unread 02-20-2011, 02:33 PM
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 : 02-20-2011 at 02:40 PM.
Reply With Quote
  #8   Spotlight this post!  
Unread 02-20-2011, 02:36 PM
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: 490
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
  #9   Spotlight this post!  
Unread 02-20-2011, 02:38 PM
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 : 02-20-2011 at 02:41 PM.
Reply With Quote
  #10   Spotlight this post!  
Unread 02-20-2011, 02:46 PM
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
  #11   Spotlight this post!  
Unread 02-20-2011, 02:47 PM
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 : 02-20-2011 at 02:53 PM.
Reply With Quote
  #12   Spotlight this post!  
Unread 02-20-2011, 03:54 PM
garyk garyk is offline
Programming Mentor: 668, 972, 2643
FRC #0668 (Apes of Wrath)
Team Role: Mentor
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Santa Clara (Silicon Valley) Calif.
Posts: 87
garyk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the roughgaryk is a jewel in the rough
Re: .out file not building!

Quote:
Originally Posted by Peragore View Post
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.
OK, I'm going to suggest some things you may (or some other team) has tried already:

WindRiver => Project => Clean. Click "Clean all Projects" and turn "Start A build Immediately" OFF, OK. Clean deletes the .out file and other temp files that the compile and link process creates.

WRW => Project => Close for all open projects.

With the robot on, etc: WindRiver => Deploy. It should fail because the .out file was removed by the clean but shouldn't complain about not connecting to the 'bot. Hit Details and check.

Exit WRW and reboot your PC and the Drivers Station. Power cycle the robot.

WRW => File => New => Example => VxWorks downloadable kernel module sample proj. Choose "FRC Drivers Station LCD Text" (I assume you haven't created this proj already). The project will be created and opened.

WRW => Project => Build Project. There should be no errors or warnings.

WRW => Window => Preferences => FIRST downloader Preferences. Your team number should be correct. Browse and select the .out file you just built. It should be (maybe broken into two lines or have a space here):

C:\WindRiver\workspace\DriverStationLCDText\PPC603 gnu\DriverStationLCDText\Debug\DriverStationLCDTex t.out

Don't hit OK yet. In the Browse window upper right frame are the icons: green arrow up, new folder, and the rectangle with the six dots. Click the rectangle and select Detals. Verify that the Modify timestamp on your .out matches the date and time you just did the Build Project above. Click on that .out, Open, OK.

Make sure the 'bot is on and wireless is up.
WRW => FIRST => Deploy. The file should download to the 'bot.

Power cycle the 'bot, bring up the Drivers Station if you haven't already, and get connected.

Enable the robot and the text "Hello World" and the time should appear on the Drivers Stn LCD. I HAVE NOT RUN THIS PROGRAM and I can't get to our 'bot now. I'm going to assume the program is written correctly.

Let us know what happens. If it just doesn't work it's probably time to uninstall WRW and reinstall it, including the patches.
__________________

Silicon Valley Regional 2005, 2006 972
Silicon Valley Regional 2007 668 Xerox Creativity Award
Championship Event 2007 668
Portland Regional 2008 668
Silicon Valley Regional 2008 668, 972
Beta Test Team 2008 668 (with 100 & 254)
Silicon Valley Regional 2009 668 Regional Chairman's Award; 2643
Sacramento Regional 2009 668 Winning Alliance (thanks, 1717 & 2473!), 2010 Winning Alliance 3256
CalGames 2006, 2007, 2008, 2009, 2010, 2011 Field Tech
NorCal FTC Regional 2008, 2009 Inspector
Championship Event 2009
San Diego, Silicon Valley Regionals; Champ. Event 2010 668, 2643, 3256
Silicon Valley, Madera Regional 2012 2643
WRRF Programming Instructor 2006-2015
Regional Woodie Flowers Award 2014 2643 Utah Regional

Reply With Quote
  #13   Spotlight this post!  
Unread 02-20-2011, 04:18 PM
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 garyk View Post
OK, I'm going to suggest some things you may (or some other team) has tried already:

WindRiver => Project => Clean. Click "Clean all Projects" and turn "Start A build Immediately" OFF, OK. Clean deletes the .out file and other temp files that the compile and link process creates.

WRW => Project => Close for all open projects.

With the robot on, etc: WindRiver => Deploy. It should fail because the .out file was removed by the clean but shouldn't complain about not connecting to the 'bot. Hit Details and check.

Exit WRW and reboot your PC and the Drivers Station. Power cycle the robot.
Random Information: After cleaning the project and trying to deploy, got a "IO Error while downloading program to robot"

Quote:
WRW => File => New => Example => VxWorks downloadable kernel module sample proj. Choose "FRC Drivers Station LCD Text" (I assume you haven't created this proj already). The project will be created and opened.

WRW => Project => Build Project. There should be no errors or warnings.

WRW => Window => Preferences => FIRST downloader Preferences. Your team number should be correct. Browse and select the .out file you just built. It should be (maybe broken into two lines or have a space here):

C:\WindRiver\workspace\DriverStationLCDText\PPC603 gnu\DriverStationLCDText\Debug\DriverStationLCDTex t.out

Don't hit OK yet. In the Browse window upper right frame are the icons: green arrow up, new folder, and the rectangle with the six dots. Click the rectangle and select Detals. Verify that the Modify timestamp on your .out matches the date and time you just did the Build Project above. Click on that .out, Open, OK.
After creating the DriverstationLCD project. I told it to build and it did not create a .out file. I restarted windriver and the rightclicked the projected and said "Rebuild." This created the .out file.

Everything went according to your directions.

Quote:
Make sure the 'bot is on and wireless is up.
WRW => FIRST => Deploy. The file should download to the 'bot.

Power cycle the 'bot, bring up the Drivers Station if you haven't already, and get connected.

Enable the robot and the text "Hello World" and the time should appear on the Drivers Stn LCD. I HAVE NOT RUN THIS PROGRAM and I can't get to our 'bot now. I'm going to assume the program is written correctly.

Let us know what happens. If it just doesn't work it's probably time to uninstall WRW and reinstall it, including the patches.
Excellent. The text is up on the driverstation. Thank you.
I will now try to put our code on the robot and post after.
Reply With Quote
  #14   Spotlight this post!  
Unread 02-20-2011, 06:26 PM
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!

Quote:
Originally Posted by garyk View Post
OK, I'm going to suggest some things you may (or some other team) has tried already:

WindRiver => Project => Clean. Click "Clean all Projects" and turn "Start A build Immediately" OFF, OK. Clean deletes the .out file and other temp files that the compile and link process creates.

WRW => Project => Close for all open projects.

With the robot on, etc: WindRiver => Deploy. It should fail because the .out file was removed by the clean but shouldn't complain about not connecting to the 'bot. Hit Details and check.

Exit WRW and reboot your PC and the Drivers Station. Power cycle the robot.

WRW => File => New => Example => VxWorks downloadable kernel module sample proj. Choose "FRC Drivers Station LCD Text" (I assume you haven't created this proj already). The project will be created and opened.

WRW => Project => Build Project. There should be no errors or warnings.

WRW => Window => Preferences => FIRST downloader Preferences. Your team number should be correct. Browse and select the .out file you just built. It should be (maybe broken into two lines or have a space here):

C:\WindRiver\workspace\DriverStationLCDText\PPC603 gnu\DriverStationLCDText\Debug\DriverStationLCDTex t.out

Don't hit OK yet. In the Browse window upper right frame are the icons: green arrow up, new folder, and the rectangle with the six dots. Click the rectangle and select Detals. Verify that the Modify timestamp on your .out matches the date and time you just did the Build Project above. Click on that .out, Open, OK.

Make sure the 'bot is on and wireless is up.
WRW => FIRST => Deploy. The file should download to the 'bot.

Power cycle the 'bot, bring up the Drivers Station if you haven't already, and get connected.

Enable the robot and the text "Hello World" and the time should appear on the Drivers Stn LCD. I HAVE NOT RUN THIS PROGRAM and I can't get to our 'bot now. I'm going to assume the program is written correctly.

Let us know what happens. If it just doesn't work it's probably time to uninstall WRW and reinstall it, including the patches.
Thanks for the help, but we already managed to fix this. When we flipped the console dongle to "On" we were able to deploy. I hope this as well as what you wrote, can help other teams!
__________________


Code:
 
while (life){
  frcObsession = true;
  obs.ProgramAndObsess();
}
if (!life) life = true;
Reply With Quote
  #15   Spotlight this post!  
Unread 02-20-2011, 02:22 PM
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
When we deploy the code, it appears as if it is being deployed properly. The transferring file bar goes all the way across. There are no errors at this point.
Quote:
Originally Posted by Rosemount2606 View Post
We are unable to get any code onto the robot.
does that help?
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 09:27 AM.

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