Page 3 of 50 FirstFirst 1234567891011121323 ... LastLast
Results 21 to 30 of 497
Discuss [Req] This is for all of us who likes cars! at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; Originally Posted by saxosuper1600 so then pkanders can you copy the code to make the ...
  1. #21
    Advanced Array

    Join Date
    Nov 2007
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by saxosuper1600 View Post
    so then pkanders can you copy the code to make the app? cause in that code it says how to log the data....
    I'm on the right path now. I get consistent data from the accelerometer, but at the moment I'm using AcceleratedInX, which seems to update at 6.7Hz.. FAR to slow..

    If I access it directly (like the AccelLog) then I get some not so cool sideeffects (AccelLog also have these..) like the volume icon popping up when starting the app..

    But I _have_ to use the direct method - the AcceleratedInX is just too danm slow.

    On the good side, I have a algorithm sketch that I can use to calculate the speed and 0-100Km times - it's really rough at the moment - needs the iphone to be level to get an accurate reading. If I do it properly I'll have to use vectors, that has to wait until the rest is up and working.


  2. #22
    Advanced Array

    Join Date
    Nov 2007
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by saxosuper1600 View Post
    so then pkanders can you copy the code to make the app? cause in that code it says how to log the data....
    I can't copy the code as there is no code to copy.. I'm building this from scratch..

  3. #23
    Rookie Array

    Join Date
    Oct 2007
    Posts
    23
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Keeping a close eye on this also - looks like there is a lot of interest in this

  4. #24
    Supporter Array

    Join Date
    Aug 2007
    Posts
    164
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default

    Hi, thing sounds nice!

    I wonder what the "unit of measure" of the internal accelerometer is?
    how do you calibrate it to e.g. mpH or km/h?

  5. #25
    Advanced Array

    Join Date
    Nov 2007
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    It measures between -2G and 2G. The output is a percentage of max - so 0.5 is 1G

    1G is 9.88m/s/s - that means if you accelerate from 0m/s (0km/h) at 1G for one second you'll be travelling at 9.88 m/s. 100km/t is 27.777778ms/s and 60Mph is a bit lower.

    Waht you do is simply calculate the actual speed at 100 times per second - when you hit 27.77778 - you have the time it toook to reach that speed.


  6. #26
    Supporter Array

    Join Date
    Aug 2007
    Posts
    164
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    15

    Default

    thank you!
    the "G" was the unit I was searching for :-)

    ...but what if my car accelerates with more that 2G?
    just kidding...

  7. #27
    Senior Professional Array

    Join Date
    Sep 2007
    Location
    Germany, Europe :)
    Posts
    199
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    17

    Default

    @Rello,
    you "car" would have to make the 0-100 km/h thingy in around 1,5 seconds if it can do that you won't care for the measurement, everyone would know your car anyways :-)

    --> Isn't it 9,81 m/s^2 ??

    :-)

    Ender
    Last edited by enderffx; 11-28-2007 at 01:58 PM.

  8. #28
    Advanced Array

    Join Date
    Nov 2007
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I'm pretty sure it is 9.88 m/s^2

  9. #29
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    154
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    14

    Default

    Quote Originally Posted by pkanders View Post
    I'm pretty sure it is 9.88 m/s^2
    9.81m/(s^2) is the correct value. I remember it from my first year physics courses.
    16GB Black iPhone 3G

    Synced with a 15" MacBook Pro 2.0GHz Intel Core Duo

  10. #30
    Advanced Array

    Join Date
    Nov 2007
    Posts
    45
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Allright, I'll update my code


 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 11:17 PM.
twitter, follow us!