NType3-4278
26-11-2011, 17:12
Hello:
We are having a problem where the joystick data is intermittently being transmitted as zero. We hold the joystick (joystick.joy1_y1) forward, and have the NXT display the value. The NXT alternates between 128 and 0. This produces jittery movement in the robot, intolerable for the FTC competition. This error is replicable in the sample code provided with RobotC.
As we have noted, there are several elements in the chain from the controller to the NXT. In order, we have identified: The controller, the connection to robotc, robotc itself, the connection to the NXT, the driver on the NXT, and lastly the values interpreted by the NXT. We have eliminated all of these save the connection from RobotC to the NXT, which is an inherent part of the software provided. There were also several other variables, such as the controller used, the NXT used, and the software version used.
In our debugging, we tried all possible combinations of the following: two different controllers, three different NXT bricks, and two unique versions of RobotC (3.03 and 3.04). None of the permutations solved our problem.
The controller's information is correct. The Joystick Setup dialog box demonstrates that, at least within RobotC, the program is correct. The value does not deviate from 128 and does not spontaneously switch to zero. The controller is correct. The data being transferred from RobotC to the NXT is, to my knowledge, unverifiable.
We tried several joystick drivers, including several modifications of the driver, as well as making some of our own edits to attempt to remove the junk data. The raw data received by the NXT is accurate for the output it creates, but, due to Garbage In Garbage Out, it returns incorrect data. This lead us to the conclusion that the error lies in the connection between RobotC and the NXT.
To test which side the error was on, we attempted both a connection via USB and Bluetooth. The error was replicated exactly with both connection methods. This lead us to the conclusion that RobotC is not sending the correct joystick data and/or the NXT is not correctly receiving the data from the NXT.
The error is very recent.
Our FTC competition is in 13 days. Please hurry!
Thanks!
--Noah
de.evolution 4278
We are having a problem where the joystick data is intermittently being transmitted as zero. We hold the joystick (joystick.joy1_y1) forward, and have the NXT display the value. The NXT alternates between 128 and 0. This produces jittery movement in the robot, intolerable for the FTC competition. This error is replicable in the sample code provided with RobotC.
As we have noted, there are several elements in the chain from the controller to the NXT. In order, we have identified: The controller, the connection to robotc, robotc itself, the connection to the NXT, the driver on the NXT, and lastly the values interpreted by the NXT. We have eliminated all of these save the connection from RobotC to the NXT, which is an inherent part of the software provided. There were also several other variables, such as the controller used, the NXT used, and the software version used.
In our debugging, we tried all possible combinations of the following: two different controllers, three different NXT bricks, and two unique versions of RobotC (3.03 and 3.04). None of the permutations solved our problem.
The controller's information is correct. The Joystick Setup dialog box demonstrates that, at least within RobotC, the program is correct. The value does not deviate from 128 and does not spontaneously switch to zero. The controller is correct. The data being transferred from RobotC to the NXT is, to my knowledge, unverifiable.
We tried several joystick drivers, including several modifications of the driver, as well as making some of our own edits to attempt to remove the junk data. The raw data received by the NXT is accurate for the output it creates, but, due to Garbage In Garbage Out, it returns incorrect data. This lead us to the conclusion that the error lies in the connection between RobotC and the NXT.
To test which side the error was on, we attempted both a connection via USB and Bluetooth. The error was replicated exactly with both connection methods. This lead us to the conclusion that RobotC is not sending the correct joystick data and/or the NXT is not correctly receiving the data from the NXT.
The error is very recent.
Our FTC competition is in 13 days. Please hurry!
Thanks!
--Noah
de.evolution 4278