Hi. I've been having trouble with reading encoder counts after I updated from RobotC 3.08 to 3.50. My attached file worked with RobotC 3.08 but stopped working with RobotC 3.50. After updating, I uninstalled RobotC 3.50 and re-installed RobotC 3.08 and the program started working again. Any help would be much appreciated!

I experienced similar problems. I am new to RobotC. Spent a few days trying to figure out what's going on with my encoders. Looked at the encoder output from a scope and the waveforms looked fine. I added a debug line to display the encoder values on screen and the values are always "0". Finally asked another mentor to test the encoders with Labview and they worked fine.

A co-worked pointed out that the encoders were grayed out in "motors and Sensors setup" menu.

Attachments:

motors and sensors setup.png [ 24.67 KiB | Viewed 3332 times ]

Wed Sep 19, 2012 9:39 am

JohnWatson

Site Admin

Joined: Thu May 24, 2012 12:15 pmPosts: 663

Re: Encoders not reading in RobotC 3.50

The encoders for TETRIX DC motors are not being handled by ROBOTC properly. This is known issue and that it will be fixed in the next patch release, which will be out shortly. I will update this post once the fix goes live. The reason the encoder boxes are checked is because even without encoders hooked up to the Motor Controller, it passes a value to the NXT (in the case of no encoders being attached, a value of 0) for the encoder ports. The upcoming fix will also allow users to enable and disable the TETRIX motor encoders manually.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum