Export (0) Print
Expand All

Facing a Tribot North using a HiTechnic Compass Sensor

Microsoft Robotics

Glossary Item Box

Microsoft Robotics Developer StudioSend feedback on this topic

Facing a Tribot North using a HiTechnic Compass Sensor

This sample diagram uses a HiTechnic Compass with a Tribot, and attempts to keep the Tribot always facing North.

Use a HiTechnic compass to face North.

The Compass returns CompassSensorUpdate notifications which contain the current Heading in degrees.

Receive Heading Notifications.

If the Tribot is not facing North, calculate the wheel speed in correlation to how far the Tribot is turned away from the North.

Adjust the Drive Power based on the Compass Heading

 

 

© 2012 Microsoft Corporation. All Rights Reserved.

Show:
© 2014 Microsoft