View unanswered posts | View active topics It is currently Mon Dec 22, 2014 12:14 am






Reply to topic  [ 5 posts ] 
Encoders not reading in RobotC 3.50 
Author Message
Rookie

Joined: Tue Sep 18, 2012 7:30 pm
Posts: 2
Post Encoders not reading in RobotC 3.50
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!

Details:
With 3.50 driving with constant speed worked, but the encoders always read 0.


Attachments:
Moving with Encoders PID.zip [1.17 KiB]
Downloaded 344 times
Tue Sep 18, 2012 7:42 pm
Profile
Rookie

Joined: Mon Sep 17, 2012 1:48 pm
Posts: 1
Post Re: Encoders not reading in RobotC 3.50
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
motors and sensors setup.png [ 24.67 KiB | Viewed 3127 times ]
Wed Sep 19, 2012 9:39 am
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 619
Post 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.

Thank you for the heads up on this bug.

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Wed Sep 19, 2012 4:52 pm
Profile
Rookie

Joined: Tue Sep 18, 2012 7:30 pm
Posts: 2
Post Re: Encoders not reading in RobotC 3.50
Thanks for your help!


Fri Sep 21, 2012 8:00 am
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 616
Post Re: Encoders not reading in RobotC 3.50
This issue is resolved in ROBOTC 3.51!

Thanks!

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Sat Sep 22, 2012 8:29 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: BurningLights and 2 guests


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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.