|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: .out file not building!
we are not changing it
|
|
#17
|
|||
|
|||
|
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? |
|
#18
|
|||
|
|||
|
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.... |
|
#19
|
|||
|
|||
|
Re: .out file not building!
Quote:
posting source in a second. |
|
#20
|
|||
|
|||
|
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 : 20-02-2011 at 14:40. |
|
#21
|
|||
|
|||
|
Re: .out file not building!
Quote:
-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 |
|
#22
|
|||
|
|||
|
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;
}
|
|
#23
|
|||
|
|||
|
Re: .out file not building!
negative ghostrider. If that were an issue, we would of gotten a compiler error.
Last edited by Rosemount2606 : 20-02-2011 at 14:41. |
|
#24
|
|||
|
|||
|
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.
|
|
#25
|
||||
|
||||
|
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 : 20-02-2011 at 14:53. |
|
#26
|
|||
|
|||
|
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.
|
|
#27
|
||||
|
||||
|
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
|
|
#28
|
|||
|
|||
|
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 ? |
|
#29
|
|||
|
|||
|
Re: .out file not building!
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. |
|
#30
|
|||
|
|||
|
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? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|