Go to Post Al Gore invented the internet...right? :p - coastertux [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 11-02-2011, 12:59
Nicholas Norman's Avatar
Nicholas Norman Nicholas Norman is offline
Registered User
AKA: MrBnC
FRC #0070 (More Martians)
Team Role: Driver
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Goodrich
Posts: 7
Nicholas Norman is an unknown quantity at this point
Problem with Jaguar Inputs

Okay, so I'm absolutely stumped on this, the code compiles, deploys and the robot can read it but when I try and give it an input with the joystick the robot remains immobile. I've set the Jaguars to use "Set" and the float is the Joystick Y-axis. Here is what I have:

void initMotors()
{
jMotor[1] = new Jaguar(4,1); // front right
jMotor[2] = new Jaguar(4,2); // front left
jMotor[3] = new Jaguar(4,3); // back right
jMotor[4] = new Jaguar(4,4); // back left
}

This is in void TeleopPeriodic:
jMotor[1]->Set(m_XboxRightStickY);
jMotor[3]->Set(m_XboxRightStickY);
jMotor[2]->Set(m_XboxLeftStickY);
jMotor[4]->Set(m_XboxLeftStickY);

They Joystick axis floats are set up correctly. So why does this not function properly? Also, this is my first post on Chief Delphi so if I left something out I apologize.

Last edited by Nicholas Norman : 11-02-2011 at 13:03.
 


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


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