Go to Post NERDs...gotta collect them all! - Conor Ryan [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 17-02-2010, 12:37
TPNigl TPNigl is offline
Registered User
FRC #0069 (Team HYPER)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Quincy, MA
Posts: 94
TPNigl is an unknown quantity at this point
Victors not working with other code?

Ok, so we've got a lot of stuff working. However, we also have a problem. We're using java, and we have the robot drive defined and working fine. However, when we try to introduce code that simply controls the victor to activate the motor, not only do they not work, but the robot drive no longer works. Here's our declaration:

Code:
        m_robotDrive = new RobotDrive(1, 3, 2, 4);

        vctrCtrWheelLift = new Victor (5);
        vctrKickerMotorFront = new Victor (6);
        vctrKickerMotorRear = new Victor (7);
        vctrArmMotor1 = new Victor (8);
        vctrArmMotor2 = new Victor (9);
And here is the code we're trying to get to work with the motors being solely by the victors:

Code:
if (jStickDriveLeft.getRawButton(1) && !prxCtrWheelUp.get())
            vctrCtrWheelLift.set(1.0);
        else
            vctrCtrWheelLift.set(0.0);

        if (!jStickDriveLeft.getRawButton(1) && !prxCtrWheelDown.get())
            vctrCtrWheelLift.set(1.0);
        else
            vctrCtrWheelLift.set(0.0);
Any suggestions?
__________________


2011 Pit Crew:
2011 CT Xerox Creativity Award

HYPER Alumni
 


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
code not working killerofall NI LabVIEW 5 18-02-2010 06:19
Solenoid code not working ssmith2 NI LabVIEW 6 03-02-2010 10:11
C++ Sample Code not working... hm29168 CAN 5 27-01-2010 20:59
Incrementation Code not working benhulett Programming 6 12-02-2007 17:39
Camera code not working.... DemonYawgmoth Programming 5 11-02-2006 09:21


All times are GMT -5. The time now is 01:55.

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