iPhone Srbija Servis, Beograd Kosovska 28
Results 1 to 4 of 4

Thread: Akcelerometar

  1. #1
    iSrbijaBigFan
    Join Date
    Aug 2009
    Age
    50
    Posts
    188
    Thanks
    3
    Thanked 44 Times in 40 Posts

    Default Akcelerometar

    xxxxxxxxxxxxxxxx
    Last edited by Juga; 27-01-2011 at 10:43.

  2. #2
    Administrator 1024's Avatar
    Join Date
    Jul 2009
    Location
    the Internet
    Age
    35
    Posts
    4,833
    Thanks
    113
    Thanked 1,137 Times in 648 Posts

    Default Re: Akcelerometar

    Probao jos nisam, ali na osnovu onoga sto sam cuo suma mora da bude, i njega moras da resavas softverski.

    Konkretno za gravitaciju se prica o high-pass (i low-pass) filteru.
    Evo recimo ovde:
    Code:
    http://www.idevgames.com/forum/showthread.php?t=16774
    Na drugom mestu sam cuo da Apple-ova sample aplikacija "CrashLanding" isto koristi neki low-pass filter, mozda bi mogao nesto da izvuces odatle.
    iMisao dana*:
    Na sta se sveo ovaj svet kad mene mrzi da gledam Apple event?
    * ili nedelje, ili... necega

  3. #3
    iSrbijaBigFan
    Join Date
    Aug 2009
    Age
    50
    Posts
    188
    Thanks
    3
    Thanked 44 Times in 40 Posts

    Default Re: Akcelerometar

    xxxxxxxxxxxxxxxx
    Last edited by Juga; 27-01-2011 at 10:43. Reason: sredj

  4. #4
    Administrator 1024's Avatar
    Join Date
    Jul 2009
    Location
    the Internet
    Age
    35
    Posts
    4,833
    Thanks
    113
    Thanked 1,137 Times in 648 Posts

    Default Re: Akcelerometar

    Hmm... Gravitacija je uvek 1.0 g, to moze da pomogne

    Ako iPhone miruje (u proizvoljnoj poziciji), kad vektorski saberes akceleraciju po svim osama trebalo bi da dobijes zbir 1, i to je gravitacija. Znaci, ako u proizvoljnom trenutku saberes sve tri akceleracije (saberes vektorski) i od toga oduzmes 1, ono sto ostane bi trebala da bude tvoja trazena vrednost. Sad jedino ne znam tacno kako da odredis na koju stranu pokazuje taj 1G koji treba da oduzmes. Ako kojim slucajem iPhone ne treba da se rotira, vec uvek stoji u istoj poziciji, onda je to lako. A ako treba da se rotira, onda vec ne znam... mozda je izvodljivo da se pamti prethodna pozicija pa na osnovu toga, a mozda i nije. :S
    iMisao dana*:
    Na sta se sveo ovaj svet kad mene mrzi da gledam Apple event?
    * ili nedelje, ili... necega

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •