Go to Post We have donut eating contests to see who has the best legs. We paint our pigs. We argue about which time zone we are in. About 400,000 of us gather together to watch cars go around in a circle. We also build robots.Yep, our cultural norm is a bit different. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2009, 09:15
BrandonD-1528's Avatar
BrandonD-1528 BrandonD-1528 is offline
Mentor
AKA: Brandon Dusseau
FRC #1528 (Monroe Trojan Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Ann Arbor, MI
Posts: 118
BrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the rough
all most thar, plez help

All of our teams vetrens mebers graduwated last year and we have no programing mentor, were so close to geting our cood working, were down to the last 5 err0rs and eney help would be gratly apresheated.

Code:
if (leftStick.GetY() >= (1 - k))	
	{	
		leftMotor.set(leftStick.GetY());
	}
error: 'leftmotor' undeclared (first use this function)

Code:
if ((leftStick(1).GetY() < (1 - k)) && (leftStick.GetY() > k))	
	{	
		if (leftStick.GetY() > leftMotor.get())
		{
error:no mach for call to '(joystik)(int)'

Code:
if (rightStick.GetY() >= (1 - k))		
 
	{	
		rightMotor.set(rightStick.GetY());
	}
error: rightStick undeclared(first use this function)
error: rightMotor undeclared(first use this function)
Code:
Start_Robot_Class(RobotDemo);
error:new types may not be defined in a return type.
__________________
Brandon Dusseau (website)
Monroe Trojan Robotics mentor
Software Engineer
Michigan Tech alumnus
  #2   Spotlight this post!  
Unread 06-02-2009, 09:26
martin417's Avatar
martin417 martin417 is offline
Opinionated old goat
AKA: Martin Wilson
no team
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Buford, GA
Posts: 720
martin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond repute
Re: all most thar, plez help

Brandon,

I can't help with your code, but may I suggest you refrain from "cute" spelling and grammar? (I am giving you the benefit of the doubt here, that your atrocious grammar and spelling are intentional). Someone may see your post and assume that you don't care enough to put the effort of proper English into asking for help, and may be unwilling to put forth the effort to help.

(puts on flame suit in preparation for expected attacks)
__________________
Former Mentor Team 1771
Former mentor Team 4509
  #3   Spotlight this post!  
Unread 06-02-2009, 09:46
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: all most thar, plez help

It sounds to me as though you have not declared your left and right motors
you would have to use something like:

Jaguar leftMotor*;
Jaguar rightMotor*;

This goes in the class components, at the top of the RobotDemo class

then you put:

leftMotor = new Jaguar(1);
rightMotor = new Jaguar(2);

You put this with the other declarations in the "RobotDemo" class constructor.

also, it sounds like your right joystick is also not defined. you would have to use

Joystick rightStick*;

rightStick = new Joystick(2);

in the same two places mentioned above.

Your second error is because you're calling leftStick(1).GetY(), instead of just leftStick.GetY();
  #4   Spotlight this post!  
Unread 06-02-2009, 09:53
BrandonD-1528's Avatar
BrandonD-1528 BrandonD-1528 is offline
Mentor
AKA: Brandon Dusseau
FRC #1528 (Monroe Trojan Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Ann Arbor, MI
Posts: 118
BrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the rough
Re: all most thar, plez help

Sorry i am dyslexic the worst in the hole tristate rigon and i forgot to spell check the title and did not mean to sound "cute".
__________________
Brandon Dusseau (website)
Monroe Trojan Robotics mentor
Software Engineer
Michigan Tech alumnus
  #5   Spotlight this post!  
Unread 06-02-2009, 10:05
BrandonD-1528's Avatar
BrandonD-1528 BrandonD-1528 is offline
Mentor
AKA: Brandon Dusseau
FRC #1528 (Monroe Trojan Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Ann Arbor, MI
Posts: 118
BrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the roughBrandonD-1528 is a jewel in the rough
Re: all most thar, plez help

thank you we fix these errors but does any one know whats up with the last error.
__________________
Brandon Dusseau (website)
Monroe Trojan Robotics mentor
Software Engineer
Michigan Tech alumnus
  #6   Spotlight this post!  
Unread 06-02-2009, 12:14
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: all most thar, plez help

Its hard for us to tell without seeing the rest of your code. I recommend posting your entire CPP file, as its usually the result of some minor syntax error.
Closed Thread


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
help plez team1203 4life Programming 3 10-11-2008 06:02
What is your most loved and most hated video games of all time? Elgin Clock Chit-Chat 64 25-10-2004 09:41
What is your most loved and most hated video games of all time? Elgin Clock IT / Communications 8 14-07-2004 18:31
Plez help me Wacko324 Control System 8 26-01-2004 20:24


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

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