Rotate

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(update of accel-rotate version, web page formating)
(accel-rotate at projects.openmoko.org)
Line 30: Line 30:
 
<onlyinclude>
 
<onlyinclude>
 
{{ApplicationBox|
 
{{ApplicationBox|
Name=[[accel-rotate]]|
+
Name=[[Rotate]]|
 
Description=Rotates the screen according to the position of the Neo FreeRunner. |
 
Description=Rotates the screen according to the position of the Neo FreeRunner. |
 
Screenshot=No-screenshot.png|
 
Screenshot=No-screenshot.png|
Homepage=http://projects.openmoko.org/projects/accell-rotate/|  
+
Homepage=http://projects.openmoko.org/projects/accell-rotate/|
 
TestedOn=FSO, ASU, QtExtended|
 
TestedOn=FSO, ASU, QtExtended|
 
PackageName=accel-rotate (external download)
 
PackageName=accel-rotate (external download)
Line 39: Line 39:
 
</onlyinclude>
 
</onlyinclude>
 
* Om2008.x package:
 
* Om2008.x package:
<pre>opkg install http://projects.openmoko.org/frs/download.php/435/accel-rotate_0.4_armv4t.ipk</pre>
+
<pre>opkg install http://projects.openmoko.org/frs/download.php/455/accel-rotate_0.41_armv4t.ipk</pre>
 
* Qt Extended 4.4.1 package:
 
* Qt Extended 4.4.1 package:
<pre>opkg install http://projects.openmoko.org/frs/download.php/436/accel-rotate-qte_0.4_armv4t.ipk</pre>
+
<pre>opkg install http://projects.openmoko.org/frs/download.php/456/accel-rotate-qte_0.41_armv4t.ipk</pre>
 
* Source codes are in subversion, developers are welcome
 
* Source codes are in subversion, developers are welcome
 
* TODO:
 
* TODO:

Revision as of 13:46, 27 October 2008


Here's a quick and simple C program that reads a packet from the accelerometer once per second, and rotates the screen to a new orientation if the orientation has changed.

I don't mean this to conflict with Paul's excellent work on Gestures; my reason for writing it is so that it can be used as an always-on daemon in the OM distributions. (Full gesture interpretation is more CPU heavy and requires reading data more often than once per second, so perhaps that will be done on-demand instead of always-on.)

The code is: http://github.com/cjb/freerunner-rotate/tree/master/rotate.c?raw=true

There's an ARM binary here (chmod a+x rotate && ./rotate): http://dev.laptop.org/~cjb/rotate

omnewrotate at code.google.com

accel-rotate at projects.openmoko.org

No-screenshot.png Rotate

Rotates the screen according to the position of the Neo FreeRunner.


Homepage: http://projects.openmoko.org/projects/accell-rotate/
Package: accel-rotate (external download)
Tested on: FSO, ASU, QtExtended


  • Om2008.x package:
opkg install http://projects.openmoko.org/frs/download.php/455/accel-rotate_0.41_armv4t.ipk
  • Qt Extended 4.4.1 package:
opkg install http://projects.openmoko.org/frs/download.php/456/accel-rotate-qte_0.41_armv4t.ipk
  • Source codes are in subversion, developers are welcome
  • TODO:
    • better heuristics - any ideas how to do this well? please use discussion on this wiki.
    • disabling on screensaver
  • [1] how to display data from accelerometers on Desktop with gnuplot (there is a few of czech text, but there is also youtube video).

See also

Personal tools


Here's a quick and simple C program that reads a packet from the accelerometer once per second, and rotates the screen to a new orientation if the orientation has changed.

I don't mean this to conflict with Paul's excellent work on Gestures; my reason for writing it is so that it can be used as an always-on daemon in the OM distributions. (Full gesture interpretation is more CPU heavy and requires reading data more often than once per second, so perhaps that will be done on-demand instead of always-on.)

The code is: http://github.com/cjb/freerunner-rotate/tree/master/rotate.c?raw=true

There's an ARM binary here (chmod a+x rotate && ./rotate): http://dev.laptop.org/~cjb/rotate

omnewrotate at code.google.com

accel-rotate at projects.openmoko.org

No-screenshot.png accel-rotate

Rotates the screen according to the position of the Neo FreeRunner.


Homepage: http://projects.openmoko.org/projects/accell-rotate/
Package: accel-rotate (external download)
Tested on: FSO, ASU, QtExtended


  • Om2008.x package:
opkg install http://projects.openmoko.org/frs/download.php/435/accel-rotate_0.4_armv4t.ipk
  • Qt Extended 4.4.1 package:
opkg install http://projects.openmoko.org/frs/download.php/436/accel-rotate-qte_0.4_armv4t.ipk
  • Source codes are in subversion, developers are welcome
  • TODO:
    • better heuristics - any ideas how to do this well? please use discussion on this wiki.
    • disabling on screensaver
  • [1] how to display data from accelerometers on Desktop with gnuplot (there is a few of czech text, but there is also youtube video).

See also