yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
Yes it can, if an odd anlge is less then 45º off center, i never test more then that but theoretically if its more then 45º you will get a litle lateral when you move forward bakward. Any way Total Gforce will be allways acurate :P

This remind me to make a options to chose angle so any position is accurate.
[Touch Diamond, MDA Compact IV Themes and Apps] krheinwald:
Thanks you for the nice app!

Would it be possible to (optionally) add GPS position (lat/lon) to the log? And milliseconds to the timestamp?

Thanks,

Klaus
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
,

About the millisecond stamp, the WM dont give the feedback of it only seconds, i have done a trick that i use a timer and reset it every time a new second appear in the watch.

But as the hardware is limited the counter some times counts more or less, so in 1 second i have 10 fractions, but sometimes there are 9 and others 11, so its dificul to count every second 10 fractions.

What is the time stamp every one is asking? atm is HH:mm:ss: so you what 9? as

00:00:00:8

00:00:00:9

00:00:01:0

00:00:01:1

The GPS LAT/LONG is already logging in a version of mine but i dindt realice it yet

Cuz im implementing KML export so you can get like this

But this will only be realice during or after my vacation cuz atm i dont have any spare time.
[Touch Diamond, MDA Compact IV Themes and Apps] krheinwald:
Hmmh. WM system call does not provide msecs?

Are you polling the sensor or are you getting an event every x msecs? In the later case you could add up the intervall.

Rather 00:00:00.8 as these are fractions of a second.

Nice!
[Touch Diamond, MDA Compact IV Themes and Apps] WhiteCell:
hey...just brushing the dust :P

any progress ?
[Touch Diamond, MDA Compact IV Themes and Apps] Blazeitup123:
i know i need this BAD. its gonna snow soon and then its useless! :(
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
New product function, measure your speed while snowboarding and them measure Gforce after hitting a tree :P

Any way im not make any relevant code as im sill at work, but mi ideas are growing, i was driving couple a days ago and i rely want a integrated stopwatch so i could see how much time i spend testing... hum... going to work fast :)

So its one more function to expect: Stopwatch whit manual / Autostart.
[Touch Diamond, MDA Compact IV Themes and Apps] albertchun:
this is a program well worth donation when it's done! i tried it a bit but dun find it user friendly yet but i will treat u a coffee soon. thanks for your hard work!
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
Why do you say that? How can i improve it so its more easy? feedback appreciated ;)
[Touch Diamond, MDA Compact IV Themes and Apps] Windza:
Ikari - on my P3720 (Australian version) , running SwiftBL 7.0 (radio .08) it's throwing an error at seemingly random intervals after turning on the GPS... on occasion it will pick up a signal and register speeds but than fails with these details...

NullReferenceException at Microsoft.WindowsMobile.Samples.Location.GpsPosition.GetSatellitesInSolution() at GForce.Form1.UpdateData (Objectsender, EventArgs args) etc...

Any suggestions
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
I do know that that error appears when you have gps signal and then lost it completely.

But if you start whit no gps at all an them catch it and never loss it again its no problem.

I don't know if its the case but the next version will have it resolve
[Touch Diamond, MDA Compact IV Themes and Apps] Windza:
Cheers Ikari -

I'm guessing that'll be it as I was running in and out of the house at the time (no - not trying to measure my 0-100 :P)

I actually had it working earlier today and tested in - unfortunately the accuracy is very questionable (I got a 10.5s to 100, when it should actually be 6.5s) which I'm figuring is a result of the GPS signal...

I've asked in another topic - why do we need the GPS for measuring speed and distance ? Just use the accelerometer... or am I missing something ?

If you have a reference (standstill) and acceleration unit (from Diamonds acc.) than speed and distance are Physics 101...
[Touch Diamond, MDA Compact IV Themes and Apps] Windza:
Further to my previous post and because I'd rather see speed figures coming from the accelerometer (hereafter referred to as acc.) rather than the GPS - can't we apply the following?

From the acc. it is obvious we can determine SI units of acceleration (m/s/s) through some form of conversion right? (we're already formulating g's)

Once we have this surely we can formulate a reasonable accurate instantaneous velocity after a standing start (0 m/s)...

I'm no programmer but what I imagine is taking a reading from the acc. output at every 10ms (if possible - maybe 50-100ms would still be feasible), using v=vx+at (v=velocity, vx= previous velocity, a= acceleration, t=time) for each acc value and there you have it. Obviously the first velocity reading formulated at 10ms would yield vx for the next calculation and so on.

To measure 1/4, 1/8 mile times (or whatever you want) would simply be a matter of applying similar principles to the calculated velocities using dist.=instantaneous velocity * time

Is there any reason that this wouldn't work and shouldn't we expect better accuracy than relying on GPS?
[Touch Diamond, MDA Compact IV Themes and Apps] LucidObscurity:
Drawing Graphics

I haven't read the entire thread, so I'm not sure if anyone has answered this yet, but here is a simple example of drawing to a form using C#. In this example I use a bitmap the size of the whole form, but in your implementation you will probably only be dealing with a portion of the form designated for this type of drawing while the rest of the form contains labels, buttons, etc...

This example just plots a random graph using a timer (upside down, but you'll get the idea). The bitmap is required to store the last item drawn or else it will be lost the next time the paint event fires. If you want to redraw an area (instead of update it) just declare the bitmap as a new bitmap. Hope this help.

Happy coding.

______________________________________________

using System;

using System.Linq;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

namespace deleteDrawGraphics {

public partial class Form1 : Form {

int x;

int y;

int oldX = 0;

int oldY = 0;

Timer tmr = new Timer();

Bitmap bmp;

public Form1() {

InitializeComponent();

//attach Load event

this.Load += new EventHandler(Form1_Load);

//attach paint event

this.Paint += new PaintEventHandler(Form1_Paint);

//attach timer tick event

tmr.Tick += new EventHandler(tmr_Tick);

}

void tmr_Tick(object sender, EventArgs e) {

//draw next line

draw();

}

void Form1_Load(object sender, EventArgs e) {

try {

//use a bitmap to store the screen image

bmp = new Bitmap(ClientRectangle.Width, ClientRectangle.Height);

//setup timer

tmr.Interval = 500;

tmr.Enabled = true;

}

catch (Exception ex) {

MessageBox.Show(ex.ToString());

}

}

void draw() {

try {

//increase x by 1 (moving along x axis to plot graph

x += 5;

//set y to random value between 0 and form height

y = new Random().Next(0, this.Height);

//create graphics from your bitmap

//the bitmap is required to store

//previously drawn shapes

Graphics g = Graphics.FromImage((Image)bmp);

//this will draw a line - there are many other options

//for drawing various shapes

g.DrawLine(new Pen(Color.Green), oldX, oldY, x, y);

//invalidate the form to force the paint event to fire

//for increased permforance pass a rectangle into this

//function to invalidate as little area as necessary

this.Invalidate();

//store current values for next draw

oldX = x;

oldY = y;

}

catch (Exception ex) {

MessageBox.Show(ex.ToString());

}

}

//this will fire for other reasons, but invalidating all

//or part of the form will cause this to fire

void Form1_Paint(object sender, PaintEventArgs e) {

try {

//draw the bitmap

e.Graphics.DrawImage(bmp, 0, 0);

}

catch (Exception ex) {

MessageBox.Show(ex.ToString());

}

}

}

}
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
First reason that i dint put the speed using the acc is that the hardware only permits a update every 45~50ms and that very few to get an acurate measure of speed.

Seacond reason is that WM dont give feedback of mileseconds only secound.

I have made a real Gforce meter/speed using microcontrolers and the algorithm works but i need more samples from the PDA or the reasults are not acurate.

The gps is more ore less accurate and don't forget most cars show more speed (normal +5km/h ) than the real speed.

The next release will have lots of improvements a option to chose whits algoritm you whant to use, improved gps or experimental acc.
[Touch Diamond, MDA Compact IV Themes and Apps] WhiteCell:
nice....when can we expect next release ?
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
As post before, only after my "summer" brake from 14/10/08 to 31/10/08.

thx LucidObscurity for the code, i will give it a look during my brake.
[Touch Diamond, MDA Compact IV Themes and Apps] ibanezzz:
The link is no more downloadable
[Touch Diamond, MDA Compact IV Themes and Apps] Windza:
Thanks for the explanation Ikari - disappointing that we can't get faster samples from the acc. Nonetheless I'll be keen to try it when you release the next version because I simply can't get reliable results with the GPS.

What are others experiences with the accuracy of the GPS - are we talking tenths of a second or seconds ? I know the car I currently have is around the 6.5 to 7 to 100 and 15.0-15.5 over the 1/4 yet the 0-100 on the Diamond was 10.5.
[Touch Diamond, MDA Compact IV Themes and Apps] helskov:
IDEA

Why not build in a function for 80-120km/h and so on??

Two sliders. A "min" slider where you can set 80 and a max where you can set 120. Then you will get the possibility for brake Tests too with 100-0.
[Touch Diamond, MDA Compact IV Themes and Apps] RdKetchup:
Consumer GPS usually have a refresh rate of 1hz, so even though the speed displayed is very accurate, it is not really usable for performance calculation.

Even worst, on the Diamond, there seem to be a 3 or 4 seconds lag in the GPS readings.
[Touch Diamond, MDA Compact IV Themes and Apps] WhiteCell:
well its possible to use external GPS....maybe even one whit faster sample rate
[Touch Diamond, MDA Compact IV Themes and Apps] RdKetchup:
The only receivers I know of that have refresh rates higher than 1hz are aviation receivers (2 to 5hz), very expensive, and GPS designed for the sole purpose of performance calculation (10 to 20hz), but what would be the point of hooking one of those to a Diamond when they already do all the performance stuff...
[Touch Diamond, MDA Compact IV Themes and Apps] cataplof:
try to search gps iblue 747 70$, logger and bluetooht device, it is capable of 5hz. (http://www.gpspassion.com/FORUMSEN/topic.asp?TOPIC_ID=81315)
[Touch Diamond, MDA Compact IV Themes and Apps] krheinwald:
I tested some of those consumer loggers > 1 Hz. While they quite consistent readings @ 1Hz, the data points jump around a lot when you use them @ > 1Hz. My guess is they use a (Kalman) filter @ 1Hz which is disabled at higher data rates.
[Touch Diamond, MDA Compact IV Themes and Apps] Blazeitup123:
i need a new version! :( any updates on a release? i love this app
[Touch Diamond, MDA Compact IV Themes and Apps] BlackFear:
NICE!

When I drive in my car along the roads, I have often the same question: "How much G-Force has my car when I start, stop, break or get into strong Curve?"

This will help me :)

KkThx

P.S.: Oh I forgot: This app works great! No Problems at all, testing GPS tomorrow ;)
[Touch Diamond, MDA Compact IV Themes and Apps] hellspawn69:
.net error

I have an HTC Touch Pro- it gives me an error saying it requires a newer version of the Microsoft .NET Compact Framework than the version installed on this device.

Any ideas?
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
Do what its told :P install a new (3.5) .net compact framework.

Hi all, i hope no one had think i have abandon the project, the fact is that my vacations where "cancel" so i dint had time to work on the program full time, any way im doing it step by step and optimize every thing, here a shot of the my last build

You have the small buttons in the bottom for the several windows and you can touch the blue box's (acc curv and speed) to change:

acceleration -> GForce or acc

Curve -> loop Curve Bump or Total

Speed -> Miles or Km/h

and every time you beet a record the numbers will flash and play a sound.

The display of the numbers is different, last Saturday i was driving in a mountain whit a friend (nice drifter btw) and he advice to make a filter like take 10 samples (10hz) and display only the peek number cuz what is important is to see is the maximum value and not a jumping instantaneous one. I try that and its allot more readable.

The log wont t have that filter, and the graphical gforce display will have the option to use it or not.

thats what i have done so far but because i have made a clean code is taking more time.
[Touch Diamond, MDA Compact IV Themes and Apps] chail(HTC):
hey keep up the nice work but don't feel pushed. the new design looks great! :)

even so i do not get what the curve value shows. and what's up with the unit km/h for acc? ;)
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
Curve is for gforce during cornering (need a better label i guess)

And KM/h (actua;y is Km/h/s) in acc is showing how much are you speeding. Like you are pushing the speed and it shoes like +6km/h/s that means you are increasing 6km/h every second to your speed. (some one ask that feature instead of G force.
[Touch Diamond, MDA Compact IV Themes and Apps] Corsa2:
"Lateral G-force" could be used for cornering G-force.

"Longitudinal G-force" for brake/acc.

This will give a professional touch (Touch pro :o) to it.
[Touch Diamond, MDA Compact IV Themes and Apps] Schumi911:
Perhaps I can help with mathematics a little

Hi Ikarus,

I followed the thread and downloades your v0.15

Where the "BIG" "Left/Right" option also shows "Acc/Brake" ;)

And I don't know, why "Acc/Brake" is not equal to "Up/Down" when the phone lies on the table:confused:

So new project! :

It's okay to show the acceleration and brake in another unit, because "g" is more popular for lateral acc. But correctly you have to use "m/s²", meter per square second! "km/h/s" is more unpopular than "g" ;)

So you have to transform km/h into m/s with factor 1/3,6

Thank you for your work. I look forward to the new version.

Besides where do you come from? Where did you drift through the mountains?:cool:
[Touch Diamond, MDA Compact IV Themes and Apps] Schumi911:
Competitor

Another app is offered here in the forum:

http://xdaforums.com/showthread.php?t=431965&highlight=gforce

Don't want to ad here, but I installed the tool and in my opinion it is really clever designed.

Because the application recognizes tilts (rotation) and shows the angle. At the same time the acc. value is really 0, without MOVING (translation) the phone. I have no idea, how this can be realised, but it's clever. Perhaps you can make use of it.

Have fun.
[Touch Diamond, MDA Compact IV Themes and Apps] BACHTOON:
hI

CONGRATULATIONS TO THE PROGRAM.

I have a problem on my htc diamond.

I open the application.

I turned on the GPS and application stops.

error :-(

please hoe to download v0,10 ?

PGF.EXE

NULLREFERENCEEXCEPTION

........

Regards from belgium and sory for my english

pffffffffffffffffffffffff v0.10 same problem
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
This happens when ytou got a very low gps coverage and you have 1sat and you losse it, if when you start the gps and you dont have any sat's and start to pick them up withe out losing every single one them no problem.

Still have to fix that problem. But in a road, except in tunnels, that never happen.
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
Sorry for the delay on the realease but i still dindt had my promise summer vacation :P Need a new job:P

Any way im realising a beta vertion whit some stuff working.

WARNING Only Gforce in main window and Grapic display fully work so dont complain about the rest in this beta (gps logs dynamo etc dont work).

SO KEEP THE OLD VERTION FOR THOSE FEATURES.

To avoid problems i dint put in a installer so copy the contend and execute the exe.

The data is sampled at 10hz and is only show at 1hz whit the top value.

(its much easier to read that way while driving)

You have the small buttons in the bottom for the several windows and you can touch the correspondent numbers (acc curv and speed) to change:

acceleration -> GForce or acc (Km/h/s or Mi/h/s)

Curve -> loop Curve Bump or Total

Speed -> Miles or Km/h(change acceleration to)

Show all Gforces and a visual representation of lateral and acceleration Gforce.

The program self calibrates when open and you can push the dpad ok button to calibrate but there is a bug in the code (need to fix that) that after you change any option in the main window the button will stop calibrating and start pushing that option (if any one can advise how to avoid that plz reply).

To avoid that, only change the option after calibrate the device.

http://rjsmsampaio.googlepages.com/gforcebeta.rar

Again test and comment the new GUI and the rest.
[Touch Diamond, MDA Compact IV Themes and Apps] emre_aachen:
Ikari i was thinking you would never be back in this forum... Thanks for fancy upgrade of program!! The new UI is just amazing... G scale is nice, and showing output with a lower frequency is another nic idea... The only thing i am expecting is now the speed output coming from accelerometer... Thanks...
[Touch Diamond, MDA Compact IV Themes and Apps] Blazeitup123:
oh thank the lord! this is still in development :D

the new layout is great! :)

only suggestion, higher refresh rate on the lateral tab.

thanks alot!
[Touch Diamond, MDA Compact IV Themes and Apps] MenosOcho:
I like it very much!

Please, in your final release add support for AppToDate.

Thanks!
[Touch Diamond, MDA Compact IV Themes and Apps] fabdtm:
am i th e only one who can't access the download link?

anybody can post the file in any download service please
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
1.Dont forget to recalibrate after moving the pda because you fell a normal 1G do to gravity all the time and i remove it from the output for showing only the extra ones, when you move the pda the front/back is now up/down that have a 1G of the earth.

2.I can change that and you have the option to chose

3.Im from Portugal and i dont realy drift cuz my car sucks :P but a frind of mine doz and i test the code whit him from time to time.

I already test that one and i can feedback the angle to but when i test it it was the same accuracy as mine, its very difficult to make it really accurate and i pass that to second cuz its not my intention for this program.
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
What is the lateral tab? :P Any way did you test it on a car? it looks slow when testing on your hand but in a car ist more easy to view. Most ppl like the update speed but if you want i can make an slider to change that.

I already take a look on that but it look some what troublesome so its my plan to put but not asap.

The link is from my website on google and lots of ppl are downloading it, some times google stop the page for some time due to traffic.
[Touch Diamond, MDA Compact IV Themes and Apps] Blazeitup123:
heh, by lateral tab i meant the F1 style tab with the circles. i said lateral due to the lack of better word at the time :p. a slider would be nice, any more options in any area would be great! don't hold back! the more customizable and configurable the better imo. lol
[Touch Diamond, MDA Compact IV Themes and Apps] MoiX:
found this app the other day and installed the v0.10 version first which I like but the beta has a few problems on my Diamond some of which you'll know about but I'll list them anyway

1) The slider on the Acceleration page is off the screen to the right

2) Setting it to mph doesn't work (or save when app is closed) although I have noticed press the main displays mph does seem to switch but again setting is lost when exiting

3) Need bigger buttons for switching between tabs (I like the buttons design itself) and bigger finger friendly buttons for initiating the GO on acceleraiton test as either on a bike or car I wouldn't usually have my stylus at the ready while ramping up the revs :p

Have to be honest here and say the G force readings are not what I like in this app as nice as they are, I'm not overly confident such a thing can be accurately determined using the Diamonds g-sensor and the numbers are fairly meaningless but the feature I do like is the Acceleration time to 60, 100 etc.. and the way it starts on the first movement of the car/bike. Being a biker can't wait to try it out but did test it in the car the other night and managed 0-60mph in 13secs which wasn't bad considering I was starting with a left hand turn (off a roundabout) and the road was damp.

Any chance I could persuade you to focus more on getting the the program record and log proper performance data such as 0-"top speed" times (in 10mph/kph increments) and maybe also 100-0 braking times (ideally with increments again eg 60-0, 30-0 braking times etc..) and initially triggered using the g-sensor. If the diamond could be made to perform these sorts of performance recording stats to a log/database then the equipment car & bike mags use to record these sorts of real performance figures will be available to all :D

other than that, good work and awaiting the next release
[Touch Diamond, MDA Compact IV Themes and Apps] wheelsun:
how do i set it to MPH? whenever i uncheck the "Use KM instead of miles" nothing changes :o
[Touch Diamond, MDA Compact IV Themes and Apps] Blazeitup123:
tap the speed display on tab one.
[Touch Diamond, MDA Compact IV Themes and Apps] motronic1:
gforce and omnia

I use 0.15 (but 0.25 have same problem) on Samsung omnia: works, but speed goes never to 0 (always stay on about 3 km/h minimum) so I can't have mya 0-100 value :(

Please, help me ;)
[Touch Diamond, MDA Compact IV Themes and Apps] Blazeitup123:
calibrate your g sensor, and make sure your device is on a table or mounted before launching the app. should help :p
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
Hi all, i was aways for some days to continue my school projects (my students are killing me :P)

Some questions have been made by new users of the program and happily older ones had answer for me, Apparently there are still some people using my program :D

Im cleaning up the bugs that apear when i made the 0v25B and in the weekend or so i will release the 0v25 whit all the functions working (the ones in the 0.15).
[Touch Diamond, MDA Compact IV Themes and Apps] Blazeitup123:
GREAT NEWS!

this is the best "show off" app i have on my diamond!

still no snow where i live so hopfully will be able to pull some g's in the comming days. :D
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
Is comments like thise that makes me go on ;)

Last time that snow where i live was 58 years ago :P
[Touch Diamond, MDA Compact IV Themes and Apps] Ikari:
I every one i have some great news, my latest version is complete and is running some heavy tests whit a couple of my friends to check if every thing is working.Will be realease in the next week after some minor changes (if necessary).

Other thing my summer vacation (part two) will start day 14/12 until January first so i will work very hard in a some new features.

Last but most important i had get my first two donations for my program.

George Mitropoulos - Greece - €5.00

Javier Garcia - Spain - €15.00

I have my donation button for 3 months and i never imagine i could get anything. Yesterday i get 2 donations after some time of the last version.

So i really appreciate it.
[Touch Diamond, MDA Compact IV Themes and Apps] D25002011:
Put accurate horsepower in it and you got yourself a other donation ;)