Go to Post I'm intrigued by the possibility of Mayan stadium sports, minus the whole sacrificing part. - AlecMataloni [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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 26-11-2011, 17:12
NType3-4278 NType3-4278 is offline
Registered User
FTC #4278
 
Join Date: Nov 2011
Location: Del Mar
Posts: 3
NType3-4278 is an unknown quantity at this point
[FTC]: RobotC returns junk joystick data?

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
Reply With Quote
 


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 19:00.

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