|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
||||
|
||||
|
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
|
|
#3
|
|||
|
|||
|
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 ? |
|
#4
|
||||
|
||||
|
Re: .out file not building!
Thanks! Flipping the console out switch on fixed it for us.
|
|
#5
|
|||
|
|||
|
Re: .out file not building!
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? |
|
#6
|
|||
|
|||
|
Re: .out file not building!
Quote:
posting source in a second. |
|
#7
|
|||
|
|||
|
Re: .out file not building!
Quote:
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. |
|
#8
|
|||
|
|||
|
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;
}
|
|
#9
|
|||
|
|||
|
Re: .out file not building!
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. |
|
#10
|
|||
|
|||
|
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.
|
|
#11
|
||||
|
||||
|
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.
Last edited by Peragore : 02-20-2011 at 02:53 PM. |
|
#12
|
||||
|
||||
|
Re: .out file not building!
Quote:
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. |
|
#13
|
|||
|
|||
|
Re: .out file not building!
Quote:
Quote:
Everything went according to your directions. Quote:
I will now try to put our code on the robot and post after. |
|
#14
|
||||
|
||||
|
Re: .out file not building!
Quote:
|
|
#15
|
|||
|
|||
|
Re: .out file not building!
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|