We need help.
We have tried all the sample programs we could find. Trying to edit them to work does nothing.
And no, we did not forget to add #include "JoystickDriver.c" at the top.
We have the Logitech controller hooked up to the USB Port. All its software is installed and ready to go.
All the ports are 2.0.
The computer (a laptop) has Bluetooth.
The laptop is Windows Vista and practically brand new.
Both the NXT and the laptop showed that they were connected.
There are no errors, the controller doesn't appear to be having any affect on the program.
What can we do? We have wracked our brains out for, oh, about an hour or so.
Here is an example of a sample program we tried:
#include "JoystickDriver.c" // This file does all of the processing of the BT Packet
task main()
{
while (true)
{
getJoystickSettings(joystick);
//Check for new BT Packet and update the variables for the joystick positions
if(joy1Btn(1)) //if Button 1 on Joy1 is pressed
{
servo[servo1] = 200; //Move servo #1 to position 200
}
else //if Button 1 on Joy1 is not pressed
{
servo[servo1] = 50; //Move servo #1 to position 50
}
}
}