Page 9 of 12 FirstFirst 123456789101112 LastLast
Results 81 to 90 of 112

Thread: Flash Guages including source code

  1. #81
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,717
    Blog Entries
    1
    Thanks for the clarification. I was indeed comparing apples to oranges.

    I was researching some info about lateral G forces, and it can get very very complicated fast. I think a better alternative is a very simple approach. Determine what your speed you are going now, and compare that to one second ago, and just determine the speed difference.

    If 1 second ago you were doing 50 and now you are doing 55 (RR Updates everything at 1 second intervals) then you have a +5 on the flash gauge.

    Now the question what would be reasonable top and bottom thresholds for these numbers? With decent acceleration, you can go 0 to 60 in 8 seconds or so, as an example. This would give you a reading of 7.5 or so on the flash gauge (If the acceleration was constant that is). Then the lower end of the spectrum for hard braking as well would be needed.
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  2. #82
    The Last Good Gremlin GizmoQ's Avatar
    Join Date
    Nov 2004
    Location
    St Louis
    Posts
    2,348
    Most cars can't do more than 2 Gs generated from the driveline or braking, most tires can't handle more than 1.6 Gs laterally, an alcohol funny car does about 4.6 Gs in a 300MPH 1/4 mile run.

    Bottom line if you're talking about accel/decel and lateral: a 2G limit ought to cover you all the way around for 95% of cars on the road today.

    @MGD: Those Tornados were the only aircraft I ever saw on the Nellis Training Range that would have tree limbs stuck in their leading edges after a mission.
    HARDWARE: Fujitsu Stylistic ST5111w/WiFi and dock, internal Hitachi 500G HD, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, BoomzBox HD radio, XM Commander, Delorme GPS, Saitek X-52 Pro joystick, BluSoleil Bluetooth, TPMS, FB, Elm327

  3. #83
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    Hey john, don't you have a fusion brain? and don't they offer accelerometers?

    So... couldn't you just put 3 in (if you want a z axis, 2 for just x/y) and have it pull the info from those to put into the flash gauge?
    2007 Chrysler PT Cruiser TE
    Car PC Progress:
    Planning.......[---------X-] 95%
    Parts...........[---------X-] 90%
    Fabrication...[---------X-] 90%
    RR Skin........[---------X-] 95%
    View my
    Worklog
    Road Runner Skins
    Website
    Favorite thread EVER!

  4. #84
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,717
    Blog Entries
    1


    Quote Originally Posted by monkeyracer View Post
    Hey john, don't you have a fusion brain? and don't they offer accelerometers?

    So... couldn't you just put 3 in (if you want a z axis, 2 for just x/y) and have it pull the info from those to put into the flash gauge?
    Quote Originally Posted by JohnWPB View Post
    I want something to mimic an accelerometer or G-Force meter. When you are at a steady speed, it will be vertically centered at 0. If you increase speed, depending on how rapidly you are increasing speed, the bar will increase, and the opposite if slowing / braking.

    Sure an accelerometer or G-Force meter could be interfaced to RR using a Fusion Brain or something.... But there has to be a way to approximate this with the GPS speed being monitored and some calculations based on that input.

    If you are doing 50MPH, and 1 second later you are doing 60MPh then you are accelerating pretty hard for instance.
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  5. #85
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    Quote Originally Posted by JohnWPB View Post
    I want something to mimic an accelerometer or G-Force meter. When you are at a steady speed, it will be vertically centered at 0. If you increase speed, depending on how rapidly you are increasing speed, the bar will increase, and the opposite if slowing / braking.

    Does anyone know how to calculate something like this based on rate of speed increase?

    Sure an accelerometer or G-Force meter could be interfaced to RR using a Fusion Brain or something.... But there has to be a way to approximate this with the GPS speed being monitored and some calculations based on that input.

    If you are doing 50MPH, and 1 second later you are doing 60MPh then you are accelerating pretty hard for instance.
    well, to put it another way; you could calculate your current speed by measuring the distance you travel and the amount of time it takes to travel that distance. Or you can use the equipment that is designed to do give you that info right away. Same thing with the accelerometer, you could try to find out the right equations and have your 1hz gps signal allow the calculations at that moment.

    OR... you can have an accelerometer calculate that for you automatically.

    BTW 1G of acceleration is 9.80665 meters per second per second. So if you were at rest (0G) and one second later are at 9.8 meters per second (21.92 MPH or so) and the next second later you are at 19.6 meters per second, you are accelerating with a force of 1G. So, at 50 MPH plus one second at 1G, you would be going 72 MPH. It is a constant formula, so it wouldn't actually be that hard to do (I was just giving you flak when you have a fusion brain and the accelerometers are fairly cheap.)

    What would be cool would be a x/y graph that has a pic of a car as the pointer, when accelerating forward, the pointer would go to the lower part of the screen and turning left the pointer would go the right part of the screen.

    I guess you were thinking of the minions that have your DFX skin and want that info without having to buy the FB and accelerometers.
    2007 Chrysler PT Cruiser TE
    Car PC Progress:
    Planning.......[---------X-] 95%
    Parts...........[---------X-] 90%
    Fabrication...[---------X-] 90%
    RR Skin........[---------X-] 95%
    View my
    Worklog
    Road Runner Skins
    Website
    Favorite thread EVER!

  6. #86
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    so thinking about it more, you would have to find a way to find out the change in speed since the last known update (probably with an autoit script) and then apply the calculations each second, and then display the result in a variable that flash would read and display.

    This won't allow left and right G's though, so it would only be forward G's, which I'm not sure what the point of knowing that info would be. I'd assume it would be more important for left/right and if you are autocrossing.
    2007 Chrysler PT Cruiser TE
    Car PC Progress:
    Planning.......[---------X-] 95%
    Parts...........[---------X-] 90%
    Fabrication...[---------X-] 90%
    RR Skin........[---------X-] 95%
    View my
    Worklog
    Road Runner Skins
    Website
    Favorite thread EVER!

  7. #87
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,717
    Blog Entries
    1
    Quote Originally Posted by monkeyracer View Post
    well, to put it another way; you could calculate your current speed by measuring the distance you travel and the amount of time it takes to travel that distance. Or you can use the equipment that is designed to do give you that info right away.

    What would be cool would be a x/y graph that has a pic of a car as the pointer, when accelerating forward, the pointer would go to the lower part of the screen and turning left the pointer would go the right part of the screen.

    I guess you were thinking of the minions that have your DFX skin and want that info without having to buy the FB and accelerometers.
    That is exactly what I was wanting to do, more just eye candy than anything really Being a small plane pilot, I am used to the artificial horizon as well as banking indicators ect. I just was thinking somehting like that on the mundane gauges screen would be a nice addition.

    You mention getting the speed by measuring distance traveled, and time to travel that distance.... I was just going to use the GPSSPEED in RR. Basically, grab the speed, store it, one second later compare to the last speed. This will give rate of acceleration / deceleration in a one second time frame.

    As for banking / turning, the same thing could be done with the GPDHEADING as well. Grab the heading, store it, compare one second later to see just how quickly you are turning ect.

    I can do all the math and such with an AI script, I just do not know how to do flash Preferably the code should all be action script inside the swf to do the calculations, I just do not know flash in the slightest.....
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  8. #88
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,169
    Blog Entries
    53
    gimme a visual example of how u'd like it to look and i'll whip something up for ya.
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  9. #89
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    GPSSPD and GPSHDG will work for those guages, but you would need an autoit script to store the speed and heading one second ago to compare to now and display a new variable, which you can put into flash as dynamic text with that variable.

    here's some inspiration pics:

    (the left right and brake/gas part)


    (bottom left corner)


    Maybe like this, but flipped so that left is on the right side, and accel is on the bottom. That way when you turn left, the pointer moves to the right (like all the stuff in your trunk) and if you brake hard the pointer goes to the top (again, like the stuff in your trunk...) if you are accelerating AND turning, the pointer will not be on the line.
    2007 Chrysler PT Cruiser TE
    Car PC Progress:
    Planning.......[---------X-] 95%
    Parts...........[---------X-] 90%
    Fabrication...[---------X-] 90%
    RR Skin........[---------X-] 95%
    View my
    Worklog
    Road Runner Skins
    Website
    Favorite thread EVER!

  10. #90
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,717
    Blog Entries
    1
    Thanks sonic, I will try to put something together here and see what you think.

    @Monkey, yea, that graphic is kinda the idea I had in mind actually! Now quit posting, and go clean out your trunk! :P
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

Similar Threads

  1. Need spectrum analyzer source code
    By XPLORE in forum Software & Software Development
    Replies: 9
    Last Post: 12-07-2001, 11:19 AM
  2. MPXPlays Source code is available!!
    By Fosgate in forum Software & Software Development
    Replies: 3
    Last Post: 05-30-2001, 06:18 PM
  3. c++ LCD source code
    By mprover in forum Software & Software Development
    Replies: 3
    Last Post: 01-19-2001, 04:32 PM
  4. Keypad plugin source code
    By brandondere in forum General MP3Car Discussion
    Replies: 0
    Last Post: 12-28-2000, 10:10 PM
  5. If you use the winamp LCD plug-in, do you need a source code??
    By SSJGogeta in forum General Hardware Discussion
    Replies: 2
    Last Post: 01-03-2000, 09:36 PM

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
  •