High resolution CMPS03 readings
Navigates to RoboticsConnection.com Home RoboticsConnection.com HomePage
RoboticsConnection User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



High resolution CMPS03 readings Expand / Collapse
Author
Message
Posted Thursday, March 27, 2008 4:16 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Thursday, April 03, 2008 8:22 PM
Posts: 16, Visits: 24
I am experimenting with my CMPS03.  Using compass.Heading() gets me a number between 0 and 255, which you are pulling from I2C register 1, according to my manual for this sensor. 

However, there is a higher-resolution compass bearing (0 to 3599) available in registers 2 and 3 (divide by 10 to get actual compass bearing, in degrees).  That value (in actual degrees) seems more useful.  Any chance you could add that to the Serializer.NET class?  I'd suggest just creating a new property, maybe HighResolutionHeading() or HeadingInDegrees() or something like that, so as not to affect anyone who may have programmatically used the regular Heading() already in their code.   

In the meantime, that gives me an excuse to tinker with the I2C Generic you showed me in a previous post. I'm going to see if I can pull this high resolution reading using that, to hone my skills for when I get a power supply for my MD23.

Post #259
Posted Thursday, March 27, 2008 7:57 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Tuesday, September 02, 2008 9:05 AM
Posts: 270, Visits: 400
We'll have to modify the Serializer firmware in addition to the .NET lib.  I'll put it on our TODO list.  In the meantime, you can just do it yourself w/ the Generic I2C instead of waiting on us, as you suggest.

Best Regards!

Jason Summerour
President,
Summerour Robotics Corporation
Microsoft MVP
www.roboticsconnection.com

Post #262
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: jsummerour

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 4:26pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.156. 13 queries. Compression Disabled.