|
Page 1 of 1
|
[ 3 posts ] |
|
Angle Sensor RPM Readings on SMUX
| Author |
Message |
|
kfilar
Rookie
Joined: Fri Nov 19, 2010 3:34 pm Posts: 9
|
 Angle Sensor RPM Readings on SMUX
Hi,
HiTechnic Angle Sensor plugged into... HiTechnic Sensor Multiplexer 3rd Party Drivers v2.4
We never could find a description of what sort of RPM readings we should be seeing when the HT Angle Sensor is running counterclockwise (guessing this is the direction we're having issues with). When we spin it clockwise (guessing this is the direction we're NOT having issues with) we get reasonable RPM readings, like 0 to 200 or so, depending on how fast we spin it. However, when we spin it in the opposite direction, we see readings that start at around 760 and start going down as we spin it faster. Yes, we were expecting negative readings, but didn't think it would baseline so high. We were expecting it to start at 0 and go down from there.
Is this the way the driver is intended to output RPM readings? Is there documentation about the output in both directions?
I don't remember seeing this issue before we put it on the SMUX, but we may not have had our program working to the point where we would have noticed. We think we're configuring the SMUX correctly since we're getting reasonable accumulated angle readings, and RPM readings in the positive direction.
Thanks in advance.
|
| Thu Jan 05, 2012 6:26 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2861 Location: Rotterdam, The Netherlands
|
 Re: Angle Sensor RPM Readings on SMUX
I will investigate. Bug reports for my driver suite are best reported in this subforum: [ LINK] or via the email address in all the header files  Please keep in mind that I am on vacation for a week and mostly indisposed the week after that. - Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Fri Jan 06, 2012 4:03 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2861 Location: Rotterdam, The Netherlands
|
 Re: Angle Sensor RPM Readings on SMUX
Copy of my mail to Ken: Hiya Ken, Really dumb mistake in my driver. Just comment out line 212 in HTANG-driver.h. I basically have two return statements in the int HTANGreadRPM(tMUXSensor muxsensor) function. The correct function should be: Unfortunately due to time pressures I will not be releasing a new version of the suite before I go on vacation. I'll post this fix in the thread as well. Thanks for reporting the bug! - Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Fri Jan 06, 2012 4:01 pm |
|
|
|
Page 1 of 1
|
[ 3 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 4 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
|
|