Go Back   maemo.org - Talk > OS / Platform > Maemo 5 / Fremantle
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2009-07-26, 09:32
qgil's Avatar
qgil qgil is offline
 
Join Date: Jul 2007
Location: Mountain View (CA, USA)
Posts: 3,105
Thanks!: 2,316
Thanked 11,088 Times in 1,998 Posts
Default Jaffa's Horizon

I installed Jaffa's Horizon in a Maemo 5 unit with accelerometer and it does show something green like a field of grass and something blue like a sky. It moves as you move the device.

The vertical axis seems to work well: pointing the device up/down/middle shows an horizon as expected. I'd say it misses some callibration based on the result when putting the device on the wall but maybe that's not even the app's fault.

But there is something wrong with the rest: when putting the device in portrait mode the horizon is just upside down. This means that your "spirit level" is mostly unbalanced all the time. Wrong math? Psychological terrorism?

By the way, there is already an application called Horizon and it was even ported to Maemo in the past.
Attached Images
 
Reply With Quote
The Following 12 Users Say Thank You to qgil For This Useful Post:
  #2  
Old 2009-07-26, 10:36
lcuk's Avatar
lcuk lcuk is offline
 
Join Date: Apr 2008
Location: Manchester, England
Posts: 1,635
Thanks!: 1,486
Thanked 1,816 Times in 642 Posts
Default Re: Jaffa's Horizon

that looks cool qgil,

does the bug imply jaffa has been watching indt too closely
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
Reply With Quote
  #3  
Old 2009-07-26, 11:55
Master of Gizmo Master of Gizmo is offline
 
Join Date: Nov 2007
Location: Germany
Posts: 345
Thanks!: 15
Thanked 467 Times in 127 Posts
Default Re: Jaffa's Horizon

Quote:
Originally Posted by qgil View Post
I'd say it misses some callibration based on the result when putting the device on the wall but maybe that's not even the app's fault.
I'd say calibration belongs into some framework/config plugin/whatever, but not in every single application.

Also, if you like accelerometers, get yourself a wii motion+. That's what i call precise inertial sensorics. My tilt dongle is stone age technology compared to that and so are all the cell phone things. The wii sensors reference coordinates are rock solid over several minutes of constant movent at all six degrees of freedom which is pretty cool for his kind of technology.
Reply With Quote
  #4  
Old 2009-07-26, 12:09
fpp's Avatar
fpp fpp is offline
 
Join Date: Nov 2005
Posts: 2,853
Thanks!: 449
Thanked 968 Times in 453 Posts
Default Re: Jaffa's Horizon

Is this really just a bug report on Horizon, or is Quim trying to tell us something about "Maemo5 hardware" ? :-)
Reply With Quote
  #5  
Old 2009-07-26, 12:15
Master of Gizmo Master of Gizmo is offline
 
Join Date: Nov 2007
Location: Germany
Posts: 345
Thanks!: 15
Thanked 467 Times in 127 Posts
Default Re: Jaffa's Horizon

Quote:
Originally Posted by fpp View Post
Is this really just a bug report on Horizon, or is Quim trying to tell us something about "Maemo5 hardware" ? :-)
Or about software like the nice blue theme he's using?
Reply With Quote
  #6  
Old 2009-07-26, 14:22
debernardis's Avatar
debernardis debernardis is offline
 
Join Date: Dec 2006
Location: Sicily
Posts: 2,142
Thanks!: 1,540
Thanked 2,054 Times in 821 Posts
Default Re: Jaffa's Horizon

Quote:
Originally Posted by qgil View Post
By the way, there is already an application called Horizon and it was even ported to Maemo in the past.
Yep, I had forgot it. It's not bad as a scratchpad. Deserves some more love... would be fun in the new device, I bet. Quim why don't you test it also, if it can run on Fremantle?
__________________
Ernesto de Bernardis

Reply With Quote
  #7  
Old 2009-07-26, 15:58
tso's Avatar
tso tso is offline
 
Join Date: Aug 2007
Location: norway
Posts: 4,783
Thanks!: 315
Thanked 1,253 Times in 835 Posts
Default Re: Jaffa's Horizon

heh, only thing missing now is a flying suit
__________________
Be warned, posts are often line of thoughts at highway speeds...
Reply With Quote
  #8  
Old 2009-07-27, 08:20
Jaffa's Avatar
Jaffa Jaffa is offline
 
Join Date: Mar 2008
Location: UK
Posts: 2,535
Thanks!: 3,635
Thanked 6,681 Times in 1,632 Posts
Send a message via MSN to Jaffa
Default Re: Jaffa's Horizon

Not having hardware to test on is a bit of a *****, so I've gone off the wiki page - and, more particularly on the raw values it says are returned.

Does it rotate the correct way as you move the device and "flip" when you stand the device on its side? Or is it just rotating the wrong way all the way round?

On calibration, I was thinking about storing the values returned when a "Calibration" menu option is selected, and subtracting them from the current values (use case would be to take into account any non-vertical mounting in your vehicle). But I'm unsure how well that'd work from the maths point-of-view. However, danielwilms mentioned it was reporting -4 deg on his table, so there may need to be some system-level calibration of the accelerometers as well.

I was aware of the other app called "Horizon" but a) it's unmaintained (AFAICT); b) not in Extras. Suggestions for other names for my Horizon welcome :-)
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Reply With Quote
The Following 3 Users Say Thank You to Jaffa For This Useful Post:
  #9  
Old 2009-07-27, 08:51
lardman lardman is offline
 
Join Date: Sep 2006
Posts: 2,102
Thanks!: 658
Thanked 1,309 Times in 638 Posts
Default Re: Jaffa's Horizon

Hmm, looks interesting. Might have to try changing the controller input to read from the wii remote.

Jaffa, now all you need to do is sort out the landscape rendering and flight model, I'm happy with subsonic and <60k', but if you can manage the whole hypersonic regime that would be cool
Reply With Quote
  #10  
Old 2009-07-27, 09:01
Jaffa's Avatar
Jaffa Jaffa is offline
 
Join Date: Mar 2008
Location: UK
Posts: 2,535
Thanks!: 3,635
Thanked 6,681 Times in 1,632 Posts
Send a message via MSN to Jaffa
Default Re: Jaffa's Horizon

Quote:
Originally Posted by lardman View Post
Hmm, looks interesting. Might have to try changing the controller input to read from the wii remote.
Should be straightforward. Create a new provider class:

https://garage.maemo.org/plugins/scm...er&view=markup

Then change the bottom of main.py to use in preference.

Quote:
now all you need to do is sort out the landscape rendering and flight model, I'm happy with subsonic and <60k', but if you can manage the whole hypersonic regime that would be cool
Some indication of speed based on the GPS would be cool. Maybe as well as being a utility, a fork can evolve into a 3D version of CubeRunner.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Reply With Quote
Reply

Tags
accelerometer, fremantle


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:36.