Go to Post Our robot throws custom $5.50 FIRST Frisbees at a rate of 75 discs per minute and a speed of ~32 feet per second. It costs over $80 to feed our robot for 12 seconds. - Woolly [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 14-02-2013, 17:03
Joeisi's Avatar
Joeisi Joeisi is offline
Registered User
FRC #3777
 
Join Date: Jan 2013
Location: United States
Posts: 5
Joeisi is an unknown quantity at this point
Command based code Launch Crash

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.
Attached Thumbnails
Click image for larger version

Name:	Error.jpg
Views:	9
Size:	154.9 KB
ID:	14007  Click image for larger version

Name:	error2.png
Views:	13
Size:	167.8 KB
ID:	14008  

Last edited by Joeisi : 14-02-2013 at 20:01.
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 12:02.

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