Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Initializing errors (http://www.chiefdelphi.com/forums/showthread.php?t=73599)

BrandonD-1528 04-02-2009 15:00

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?


All times are GMT -5. The time now is 02:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi