Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   .out file not building! (http://www.chiefdelphi.com/forums/showthread.php?t=92430)

Rosemount2606 20-02-2011 14:23

Re: .out file not building!
 
Quote:

Originally Posted by tomy (Post 1027509)
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

basicxman 20-02-2011 14:24

Re: .out file not building!
 
Quote:

Originally Posted by tomy (Post 1027507)
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?

tomy 20-02-2011 14:26

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....

Rosemount2606 20-02-2011 14:28

Re: .out file not building!
 
Quote:

Originally Posted by basicxman (Post 1027515)
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.

Rosemount2606 20-02-2011 14:33

Re: .out file not building!
 
Quote:

Originally Posted by basicxman (Post 1027515)
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);


Rosemount2606 20-02-2011 14:36

Re: .out file not building!
 
Quote:

Originally Posted by tomy (Post 1027517)
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

tomy 20-02-2011 14:36

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;
}


Rosemount2606 20-02-2011 14:38

Re: .out file not building!
 
Quote:

Originally Posted by tomy (Post 1027526)
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.

Rosemount2606 20-02-2011 14:46

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.

Peragore 20-02-2011 14:47

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.

Rosemount2606 20-02-2011 15:05

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.

Peragore 20-02-2011 15:08

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

tomy 20-02-2011 15:21

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 ?

Rosemount2606 20-02-2011 15:28

Re: .out file not building!
 
Quote:

Originally Posted by Rosemount2606 (Post 1027525)
-
- 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

tomy 20-02-2011 15:42

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?


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

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