Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   CRIO Launch Errors (http://www.chiefdelphi.com/forums/showthread.php?t=113497)

Joeisi 14-02-2013 17:03

Command based code Launch Crash
 
2 Attachment(s)
When I launch a Command Base program, with the framework project generated by the robotbuilder utility, The CRIO crashes stating that I am missing objects that I found are located in the "PPC603gnu/CommandBasedRobotTemplate/ctdt.c" file. These references do not match any prototypes in my files. I have tried deleting the CommandBasedRobotTemplate file folder, as well as a clean build. The file is regenerated and the runtime still throws an error. Could someone provide some insight on this matter?

The actual error messages are attached below the code.

Base Robot Class
Code:

// RobotBuilder Version: 0.0.2
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// C++ from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in th future.
#ifndef _ROBOT_H
#define _ROBOT_H
#include "WPILib.h"
#include "Commands/Command.h"
#include "RobotMap.h"
#include "LiveWindow/LiveWindow.h"
#include "Commands/SetNewDrivingParams.h"
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=INCLUDES
#include "Commands/AutonomousMode.h"
#include "Subsystems/DrivingSystem.h"
#include "Subsystems/Loader.h"
#include "Subsystems/Shooter.h"
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=INCLUDES
#include "OI.h"
class Robot : public IterativeRobot {
public:
        Command *autonomousCommand;
        Command *drivingParams;
        static OI *oi;
        LiveWindow *lw;
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
        static DrivingSystem* drivingSystem;
        static Shooter* shooter;
        static Loader* loader;
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
       
        static float* TopShooterSpeed; //Not assigned to in code yet
        static float* BottomShooterSpeed;//Not assigned to in code yet
       
        virtual void RobotInit();
        virtual void AutonomousInit();
        virtual void AutonomousPeriodic();
        virtual void TeleopInit();
        virtual void TeleopPeriodic();
        virtual void TestPeriodic();
};
#endif



When I load this code, the CRIO crashes. I lose the connection and I cannot ping off the CRIO's address, indicating that the network maintainence script located on the CRIO is not being run.


All times are GMT -5. The time now is 18:21.

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