Go to Post "The world is not idiot-proof. Pay Attention." - DonRotolo [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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 29-01-2011, 00:30
ehlochbr ehlochbr is offline
Registered User
FRC #2990
 
Join Date: Nov 2010
Location: Salem, OR
Posts: 37
ehlochbr is an unknown quantity at this point
Invalid Conversion

Hi everyone,

This is probably an easy one but I'm just not seeing the answer. I'm trying to incorporate code for the IR sensors and everything seems fine except for one little error that says "invalid conversion from "int" to "DigitalInput."

Here's a snapshot of some of the code.

Code:
class RobotDemo : public SimpleRobot
{
	RobotDrive myRobot; // robot drive system
	Gamepad controller;
	Jaguar one;
	Jaguar two;
	Jaguar three;
	Jaguar four;
	DigitalInput *left;			// digital inputs for line tracking sensors
	DigitalInput *middle;
	DigitalInput *right;
	DriverStation *ds;
	AxisCamera& camera;
	
	
public:
	RobotDemo(void):
		myRobot(9, 10, 2, 1),	// these must be initialized in the same order
		controller(1),
		one(9),
		two(10),
		three(2),
		four(1),
		left(1),
		middle(2),
		right(3),
		ds(DriverStation::GetInstance()),
		camera(AxisCamera::GetInstance())
		
	{   <------- ERROR HERE

		GetWatchdog().SetExpiration(0.1);
Thanks for your help!
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 12:14.

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