Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > Applications & Development > Free Toolchain Software

Reply
 
LinkBack Thread Tools Display Modes
  #451 (permalink)  
Old 08-03-2008, 04:21 AM
saxosuper1600
Status: Offline
Senior Member
 
Join Date: Oct 2007
Location: Santiago, Chile
Posts: 221
Rep Power: 18
saxosuper1600 will become famous soon enough
Default

rjshearman any news?, ryan can you send me what i asked you?, and graphic designers are you working on something? bye see ya!
__________________
Please we need help in developing an application to measure (HP, Lateral G's, Braking distance) in our cars...

http://www.hackint0sh.org/forum/show...ght=likes+cars PLEASE CODERS AND DEVELOPERS....HELP NEEDED READ POST #80 FOR MORE INFO!
THIS IS NOT AN OVERSIZED LETTER SIZE!

REP UP IF MY POST HELPED YOU IN ANY WAY!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #452 (permalink)  
Old 08-03-2008, 07:02 PM
lovemygti's Avatar
lovemygti
Status: Offline
Member
 
Join Date: Mar 2008
Posts: 61
Rep Power: 9
lovemygti will become famous soon enough
Default

Tomas.. sorted for you.. cheers Ryan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #453 (permalink)  
Old 08-03-2008, 07:52 PM
saxosuper1600
Status: Offline
Senior Member
 
Join Date: Oct 2007
Location: Santiago, Chile
Posts: 221
Rep Power: 18
saxosuper1600 will become famous soon enough
Default

Ryan already posted a pm thanks replying your pm rjshearman thanks for the update on what you're on hope the problem of the idling gets solved because is annoying and less accurate solving that we can move on bye and thanks for you effort see ya!
__________________
Please we need help in developing an application to measure (HP, Lateral G's, Braking distance) in our cars...

http://www.hackint0sh.org/forum/show...ght=likes+cars PLEASE CODERS AND DEVELOPERS....HELP NEEDED READ POST #80 FOR MORE INFO!
THIS IS NOT AN OVERSIZED LETTER SIZE!

REP UP IF MY POST HELPED YOU IN ANY WAY!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #454 (permalink)  
Old 08-04-2008, 12:35 PM
Jim Danner
Status: Offline
Respected Member
 
Join Date: Dec 2007
Posts: 1,042
Rep Power: 69
Jim Danner is a jewel in the roughJim Danner is a jewel in the roughJim Danner is a jewel in the rough
Default

Lots of user support for a 6-axis calibration. As lovemygti observed, it needs to be done only once per iPhone. Hopefully the results can be saved to a .plist file or something. In case people don't want to do the procedure, they can work with the standard values (which can be preset in the .plist shipped with the application) and accept the <10% error.

Now this will require six measurement runs, each of a sufficiently large number of data points (maybe measuring for a few seconds). We'll need the averages of x, y and z for each of the six runs. The phone must be in flat, flat upside down, straight up, straight upside down, on right side, and on left side orientations. Since I don't expect that users will be able to do this exactly, I will correct for deviations from the exact orientations -- also because we can't be sure that the accelerometer is mounted exactly straight inside the phone.

The measurement results will be six sets of averages (x,y,z): x_up is the average x value when the phone was stright up, y_up ...., x_left ... (you can figure it out). Eightteen numbers in total.

These results will then be converted to six calibration results for the zero-level and sensitivity of each of the axes: xzero, xsens, yzero, ysens, zzero and zsens. These are the characteristics of the phone's accelerometer, independent of its orientation in the car. They should be stored somewhere on the phone (maybe in the /var/mobile/Library/Preferences/com.rjshearman.cartrack.plist file or some other official settings location that would not be affected by an update of the program -- I believe the iPhone API has a way to tell the operating system to save an application's preferences and it will pick the right location automatically).

Now to find its orientation relative to the car, we'll still need further measurements. We need a forward acceleration run, to determine what "forward" means in terms of the accelerometer axes. In the old system we did this by recording the direction of gravity during the first calibration, so we could subtract it (filter it out) from the forward acceleration run (the second calibration). I'm thinking of a way to eliminate the gravity measurement and go straight to forward acceleration, maybe spanning a longer period so there will be enough precision in the data. However it's done, the user will need to accelerate the car forward (on a straight flat road) so the orientation can be figured out.

I'm leaving temperature dependance completely aside, since we don't have a thermometer in the phone.
__________________
iPhone 3GS / 3.1.2 JB (PwnageTool) / 04.26.08 carrier-locked, Carrier Logo Fixer / Cydia / 1000 posts on Hackint0sh

Installing Cydia programs on a phone that has no internet connection: read this.

Editing binary .plist, .strings, .nib and .xib files:
* on your computer: Windows tool / conversion website.
* on your iPhone: convert those files in a terminal with plutil (installed with Erica Utilities) or edit them with iFile (Cydia links).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #455 (permalink)  
Old 08-04-2008, 02:15 PM
rjshearman
Status: Offline
Senior Member
 
Join Date: Sep 2007
Posts: 370
Rep Power: 25
rjshearman will become famous soon enough
Default

Hey Jim,

Nice post. There is no problem storing the values as we are already doing this for the current Beta. These values are resistant to updates/reinstalls and could be over-written at any time by re-calibrating. We can also input default values at start up if it's the first time they've started.

I'm thinking we could present the user with an image on screen showing which way to hold the device and then display a button to press when ready. This would then start a count to 3 seconds where we build an array of accelerometer values.

Once we have this i'd need the following:
- how you plan on correcting for deviations
- how you would calculate xZero, xSen etc

I also understand your point about the forward calibration but i'm guessing you'll leave that until after the 6 point calibration is worked out?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #456 (permalink)  
Old 08-04-2008, 03:44 PM
Jim Danner
Status: Offline
Respected Member
 
Join Date: Dec 2007
Posts: 1,042
Rep Power: 69
Jim Danner is a jewel in the roughJim Danner is a jewel in the roughJim Danner is a jewel in the rough
Default

Quote:
Originally Posted by rjshearman View Post
I'm thinking we could present the user with an image on screen showing which way to hold the device and then display a button to press when ready.
My main concern is that the phone be completely still during these calibration runs. It can't be in someone's hand or we'll be measuring their heartbeats and nervous tics... They have to balance the phone on a desk somehow.
Quote:
Originally Posted by rjshearman View Post
Once we have this i'd need the following:
- how you plan on correcting for deviations
Taking the averages should be our correction for deviations. The positive and negative deviations are expected to cancel out on average. So as with the earlier versions of the calibrations, you can just add up the totals and divide them by the counter; no need to keep all the individual results. Eightteen averages is all we need.
Quote:
Originally Posted by rjshearman View Post
- how you would calculate xZero, xSen etc
I'm creating a monstrous set of calculations that will do this. (At the end of my creative session there will be six convoluted formulas which the iPhone will handle with ease.)
Quote:
Originally Posted by rjshearman View Post
I also understand your point about the forward calibration but i'm guessing you'll leave that until after the 6 point calibration is worked out?
Yes, there are a number of options and I will try them out on your earlier data dumps before making a choice.
__________________
iPhone 3GS / 3.1.2 JB (PwnageTool) / 04.26.08 carrier-locked, Carrier Logo Fixer / Cydia / 1000 posts on Hackint0sh

Installing Cydia programs on a phone that has no internet connection: read this.

Editing binary .plist, .strings, .nib and .xib files:
* on your computer: Windows tool / conversion website.
* on your iPhone: convert those files in a terminal with plutil (installed with Erica Utilities) or edit them with iFile (Cydia links).

Last edited by Jim Danner; 08-04-2008 at 03:47 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #457 (permalink)  
Old 08-04-2008, 05:27 PM
SKY-R33
Status: Offline
Junior Member
 
Join Date: Aug 2008
Posts: 5
Rep Power: 0
SKY-R33 is on a distinguished road
Default

Hi guys, I am very interested in your project here.

I would love to be involved. I am a fulltime C developer (Work for digital TV company) but I have virtually zero Obj-C. I have been meaning to get into Obj-C for sometime and this seems the perfect opportunity. I am also very into cars.

Unfortnatly I also do freelance so my time for the next few weeks is limited but I would still like very much to be involved and offer suggestions and maybe a bug fix or two (if i can get my head around obj-c).

As a bonus i have Dynolicious on my iPhone

PM if I can be of any help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #458 (permalink)  
Old 08-05-2008, 02:34 PM
rjshearman
Status: Offline
Senior Member
 
Join Date: Sep 2007
Posts: 370
Rep Power: 25
rjshearman will become famous soon enough
Default

Quote:
Originally Posted by Jim Danner View Post
My main concern is that the phone be completely still during these calibration runs. It can't be in someone's hand or we'll be measuring their heartbeats and nervous tics... They have to balance the phone on a desk somehow.
Shouldn't people be able to hold the iphone against an edge (eg: side of door frame, corner of wall etc)?
Quote:
Originally Posted by Jim Danner View Post
Taking the averages should be our correction for deviations. The positive and negative deviations are expected to cancel out on average. So as with the earlier versions of the calibrations, you can just add up the totals and divide them by the counter; no need to keep all the individual results. Eightteen averages is all we need.
Sure, no problem.
Quote:
Originally Posted by Jim Danner View Post
I'm creating a monstrous set of calculations that will do this. (At the end of my creative session there will be six convoluted formulas which the iPhone will handle with ease.)
Looking forward to it.
Quote:
Originally Posted by Jim Danner View Post
Yes, there are a number of options and I will try them out on your earlier data dumps before making a choice.
OK, let me know how you go with that data. I didn't realise until afterwards that the values were truncated to 6 decimals (this is the default in the Log statement) - hopefully there's enough detail to work with.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #459 (permalink)  
Old 08-05-2008, 02:53 PM
SKY-R33
Status: Offline
Junior Member
 
Join Date: Aug 2008
Posts: 5
Rep Power: 0
SKY-R33 is on a distinguished road
Default

Dynolicious has one setup phase where you hold the phone in different directions (in hand except for two) and then each time you do a 'run' it does a small calibration phase.

I assume this is to normalise the standard vibrations from the car when it is idle and also to get the readings for its orientation when mounted in car.

I have pulled some stats out of the database file for the dynolicous app if anyone is interested.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #460 (permalink)  
Old 08-06-2008, 07:41 AM
rjshearman
Status: Offline
Senior Member
 
Join Date: Sep 2007
Posts: 370
Rep Power: 25
rjshearman will become famous soon enough
Default

Quote:
Originally Posted by SKY-R33 View Post
Dynolicious has one setup phase where you hold the phone in different directions (in hand except for two) and then each time you do a 'run' it does a small calibration phase.

I assume this is to normalise the standard vibrations from the car when it is idle and also to get the readings for its orientation when mounted in car.

I have pulled some stats out of the database file for the dynolicous app if anyone is interested.
I agree, the app appears to let you calibrate by hand. When in each position it seems to wait until you've held it steady (or still) for about 2 seconds. Then it will buzz and move on. If you hold flat to a wall then it goes a lot quicker.

You're probaby right on the extra calibration for the idling - i'm guessing we'd only do this once if required - not each time.

I too checked out the database but the results table, from what I can see, only contains the time at the various intervals and a record date for a specific ride.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +2. The time now is 09:23 PM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407