View source for ValaCompass
From Openmoko
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Return to ValaCompass.
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Return to ValaCompass.
ValaCompass is a 3D compass application for the 3D compass included in the Freerunner Navigation Board and Freerunner Navigation Board v2 written in Vala and using GTK and Cairo. It uses the LIS302DL accelerometers of the GTA02 to display the North direction in 3-dimensional way. Thus, no matter in which direction you hold your Freerunner, vala compass will show you where the North is.
ValaCompass works with the hmc5843 kernel module provided by User:Cmair and available at http://gitorious.org/freerunner-navigation-board.
After starting the valacompass executable, rotate your freerunner in all possible directions for about 5 seconds. After it, keep the device in one possition for 3-4 seconds and wait for a stable direction information :).
ValaCompass is currently at version 0.1.
ValaCompass uses libraries provided by the SensMon project (liblis302dl and libhmc5843). Thus you will find the sources for those libraries at http://gitorious.org/sensor-monitor.
The ValaCompass sources are available at http://gitourious.org/vala-compass.
For SHR-unstable corresponding packages are already in the feed.