View Single Post
  #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.