Go to Post AndyMark is proud to announce that we will now be offering banana same-day shipping during build season for those food-deprived students on your team. - Hitchhiker 42 [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 04-02-2009, 15:00
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
Declaring Errors

Code:
class RobotDemo : public SimpleRobot 
{ 
	RobotDemo(void)
	{ 	// put initialization code here
		Jaguar leftMotor(1); // driv
		Victor rightMotor(2); // driv
		Joystick leftStick(1); // driv
		Joystick rightStick(2); // driv
		Jaguar shootMotor(3); // shooter
	}
Code:
	if (leftStick.GetY() >= (255 - k))          //if left joystick is near max
Code:
leftMotor.rawset(LeftStick.GetY());
Code:
leftMotor.rawset(leftStick.GetY());
Code:
if (leftStick.GetY() > leftmotor.rawget())
Code:
if (rightStick.GetY() >= (255 - k))        //if right joystick is near max
Code:
		rightMotor.rawset(rightStick.GetY());
We are having trouble declaring our leftMotor, rightMotor, leftStick, and rightStick functions. Could someone please help us?
__________________
Brandon Dusseau (website)
Monroe Trojan Robotics mentor
Software Engineer
Michigan Tech alumnus

Last edited by BrandonD-1528 : 04-02-2009 at 16:28.
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
WindRiver Errors ExarKun666 C/C++ 7 04-03-2009 20:32
ADC not initializing antiNeo Programming 2 08-02-2008 21:40
Problems Initializing Serial Driver... neilsonster Programming 0 13-02-2005 23:27
Initializing autonomous mode Mr. Lim Programming 7 02-02-2004 07:26
Change to Initializing Inputs and Outputs Jferrante Programming 4 07-01-2003 11:36


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

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