|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
|