Go to Post Crazy is relative - dtengineering [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

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 03-07-2015, 06:47 PM
Technette Technette is offline
Registered User
FRC #2404
 
Join Date: Jan 2014
Location: Glendale, California
Posts: 6
Technette is an unknown quantity at this point
Angry Joystick not initialized Error

Hi,

I'm using one joystick and when I added it, I'm getting an error that the Joystick was not initialized in the constructor.

I'd really appreciate help. I also had to comment out the default command because of the errors it was causing.

Code:
OI::OI() {
	// Process operator interface input here.
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS

	joystick = new Joystick(0);
	
     

        // SmartDashboard Buttons
	SmartDashboard::PutData("Drive_Arcade", new Drive_Arcade());

	SmartDashboard::PutData("Autonomous Command", new AutonomousCommand());

	SmartDashboard::PutData("Lift_Up", new Lift_Up());

	SmartDashboard::PutData("Lift_Down", new Lift_Down());

	SmartDashboard::PutData("Drive_To_Platform", new Drive_To_Platform());

	SmartDashboard::PutData("Backup", new Backup());


    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}

// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=FUNCTIONS

Joystick* OI::getJoystick() {
	return joystick;
}
Reply With Quote
 


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 10:47 AM.

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