Go to Post "Ugly can win" - Mr. Lim [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 01-03-2010, 20:50
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Cannot create a DigitalInput object

I am working on a switch that would be placed on the robot to let the cRio know if a ball is ready for firing

I am calling:
Code:
DigitalInput switch = new DigitalInput(4,1);
and it says i need an identifier. What do I have to do to fix this?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2010, 00:10
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Cannot create a DigitalInput object

switch is a reserved word in in java. Try a different name.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-03-2010, 00:12
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Cannot create a DigitalInput object

oh, wow

At least it isn't build season anymore! xD
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windriver - Cannot Create New Example Project Aaron S C/C++ 6 19-01-2010 21:25
void* pointer to object in C++ byteit101 C/C++ 6 14-01-2009 17:15
UI Board Object Specs 3DWolf Control System 2 10-12-2008 16:13
rangefinding/object detection sciguy125 Electrical 14 13-01-2008 20:36
Object Enablers SherryG Inventor 1 07-04-2006 10:01


All times are GMT -5. The time now is 11: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