Page 3 of 11 FirstFirst 1234567891011 LastLast
Results 21 to 30 of 104

Thread: programming deadreckoning gps software?

  1. #21
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    I give up.



    But gravity will accelerate you toward the earth. You said yes it will accelerate you at 9.8m/s^2 downward.

    I used to think gravity had nothing do with accelerometer until I got my ADXL202 evaluation board...I said oh yeah duhh gravity is acceleration.

    If you accelerate a car how does it feel? your head moves back and get stuck to the head rest? if you tilt the car upward hows does it feel? your head still get stuck on the headrest same feeling

    Notice you get a more intense of acceleration feeling when accelerating a car hard up the hill.

    LOL yeah wait to get your sensors...you beleive me soon

  2. #22
    Constant Bitrate jpelzer's Avatar
    Join Date
    May 2004
    Location
    NYC
    Posts
    173
    DOH! You're right. If you dropped the sensor, it would read 0g, not 1g. Crud.

    OK, so we should be able to correct for tilt if we tap into the OBD. Maybe.

    Dominik, where did you get that compass Phidget? I don't see it on their website. I believe compasses (magnetometers) have the same problem with tilt, unless you have a 3-axis one where you can correct for it... Tell us more!
    Bush: Proof that humans really did evolve from apes.

  3. #23
    Constant Bitrate jpelzer's Avatar
    Join Date
    May 2004
    Location
    NYC
    Posts
    173
    Bush: Proof that humans really did evolve from apes.

  4. #24
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    DOH! You're right. If you dropped the sensor, it would read 0g, not 1g. Crud.



    Yeah I have checked the phigets site....cant find the compass. Cant we use an optical sensors like the one found on mouse to detect how much the steering wheel it turned? probably more accurate?

  5. #25
    Raw Wave rando's Avatar
    Join Date
    Mar 2004
    Location
    Redondo Beach, CA
    Posts
    1,973
    Quote Originally Posted by jpelzer
    I give up.
    Maybe a frame of reference based discussion might help? Ignoring all other forces, gravity will cause an object to accelerate (roughly) towards the core of the earth at 9.8m/s/s. In the case of our sensor, let's assume it's affixed to our car. That means that the car now exherts an equal and opposite force on the sensor -- no matter if it's on level ground or driving up a hill. If the car is not accelerating, neither is the compass. The compass will always measure the same acceleration as the car because their frames of reference remain congruent.

    Now if accuracy and GPS plotting is the goal here; driving up a hill may still introduce a error in your plotting. The problem is that your speed measurement correspond to a distance vector in three dimensions and your lat/lon positional data (relative to the earths surface) is only two dimensional. In other words, your map distance traveled will be (measured speed * interval * cos (angle of incline)) assuming a constant speed and angle of incline. For long highway trips up/down steep grades this will probably introduce substantial error. Unless you have three dimensional mapping data and/or some additional sensors, I'm not sure there is away around this.

    UPDATE: I just did some reading on how accelerometers work and apparently they ignore gravitational forces. Hence an accelerometer sitting on a table will measure an acceleration of 1G strait up.
    http://www.lunar.org/docs/LUNARclips...erometers.html

    I guess this means we need to distinguish between what an accelerometer reads and actual acceleration.

  6. #26
    Raw Wave rando's Avatar
    Join Date
    Mar 2004
    Location
    Redondo Beach, CA
    Posts
    1,973
    Quote Originally Posted by jpelzer
    I have that one and some code I wrote to read it over the parallel port. I haven't tried it in my car yet though I'm bit concerned that it might not be too accurate because of all the metal and other magnetic interference in the car. Walk up to your car with a normal compass and check our what happens. Maybe that's why dead reckoning is usually done with gyros?

  7. #27
    Maximum Bitrate wi77iam's Avatar
    Join Date
    Jun 2003
    Location
    Chester Springs, PA
    Posts
    603
    Quote Originally Posted by jpelzer
    You're confusing yourself. An accelerometer measures acceleration. Period. Not gravity. If we wanted to measure gravity, we could use a scale, and tilting it compared to the earth would change the reading.

    If you have an accelerometer, and it is parallel to the ground, not moving, it will measure 0g. If it is 45 degrees to the ground, not moving, it will measure 0g. 90 degrees to the ground, not moving, 0g. It won't measure any value other than zero if its actual speed is not changing.
    .
    Think of the accelerometer as a small mass on a spring oriented along an axis. Acceleration along the axis will make the mass move against the spring and this movement can be measured as a voltage. If you place an acc (I'll abbreviate since I'm tired of writing out accelerometer) oriented on the long axis of the car, you will measure acceleration forward and back. (In an aircraft this is called thrust.) An acc oriented perpendicular to this and parallel to the ground will measure acceleration left and right (yaw). And another acc oriented perpendicular to both of these will measure acceleration up and down (pitch). An acc on the fourth axis (roll), would measure acceleration of a car on a banked turn.

    The pitch acc (and possibly the roll acc) will also sense the effects of gravity, which is indeed an acceleration. A scale measures weight, not gravity.

    The thing to remember is that these accelerations being sensed are only used to apply corrections to the current direction and speed of travel of the vehicle. So with the last known speed (from the GPS before it loses lock), the acc will sense acceleration or deceleration of a certain amount, that can be used to correct the last known speed, which can then be used to calculate the change in latitude and longitude. Similarly for change in direction, which is measured as acceleration in the left/right axis, and applied to the last known heading. Again used along with the speed to calculate new latitude/longitude.

    The pitch acc would sense the car going up or down a hill, but I don't think this would be important to the lat/long calculations because the thrust acc will always be providing the corrections to the speed, which along with the direction sensor is all you need to update your position.

    This is the essence of dead reckoning navigation.
    *******************************
    *******************************

  8. #28
    Maximum Bitrate wi77iam's Avatar
    Join Date
    Jun 2003
    Location
    Chester Springs, PA
    Posts
    603
    Quote Originally Posted by rando
    I have that one and some code I wrote to read it over the parallel port. I haven't tried it in my car yet though I'm bit concerned that it might not be too accurate because of all the metal and other magnetic interference in the car. Walk up to your car with a normal compass and check our what happens. Maybe that's why dead reckoning is usually done with gyros?
    Don't confuse dead reckoning with inertial navigation, which does use gyros.
    *******************************
    *******************************

  9. #29
    Raw Wave rando's Avatar
    Join Date
    Mar 2004
    Location
    Redondo Beach, CA
    Posts
    1,973
    Yah, what he said. It all makes sense now.

  10. #30
    Variable Bitrate
    Join Date
    Jun 2004
    Location
    Sydney, Australia
    Posts
    273
    That was the compass i was thinking of (even though the conversation has passed that)

    I didnt consider the magnetic problem. Then there is always the problem of the metal plates used to detect when you are waiting at traffic lights etc. Are there any gyro phidgets?

Similar Threads

  1. Wtb: Gps Software And Gps Mouse!!!!
    By HitmanZ in forum Classified Archive
    Replies: 2
    Last Post: 08-03-2004, 10:56 PM
  2. CoPilot Software or USB GPS Receiver package
    By Zip-Lock in forum Classified Archive
    Replies: 5
    Last Post: 05-13-2004, 08:30 AM
  3. Replies: 2
    Last Post: 01-06-2004, 10:19 PM
  4. GPS software
    By waylonh in forum Input Devices
    Replies: 3
    Last Post: 11-25-2003, 07:48 AM

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
  •