Shop OBEX P1 Docs P2 Docs Learn Events
For Cluso and other sailors — Parallax Forums

For Cluso and other sailors

Jay KickliterJay Kickliter Posts: 446
edited 2009-02-17 18:45 in Propeller 1
I used to live on/cruise on a sailboat (beautifully small Nor'Sea 27). A problem I had anytime I was in the Gulf Stream or any other strong cross current was wether to rely on my basic GPS heading or mentally process my cheap compass' deviation. Has anybody here tired to integrate a Prop with two GPS's to get a true heading? I think it has been done commercially. Would it work on a small boat, between 27' - 40', one antenna in the bow, and one in the stern? I know GPS aren't necessarily sure where they are, but are very certain where they are in relative to other GPS nearby.

Post Edited (Jay Kickliter) : 2/15/2009 1:31:13 PM GMT

Comments

  • Carl HayesCarl Hayes Posts: 841
    edited 2009-02-15 14:39
    What an interesting idea!· Lessee -- brainstorming a bit --

    You'd need good resolution·in the two GPSs.· How good?· Hmmm -- if you want 5 degree resolution in the calculated heading, and the GPSs are 27 feet apart, then you'd need (27 sin 5deg) feet resolution, just better than 2.5 feet.· That takes a rather expensive GPS.· Almost any electronic compass would cost less.· But maybe you've already got'em.· Continuing --

    Well, OK, you've got two GPS positions, in degrees, minutes, seconds, hundredths of seconds.· Latitude first, as it's slightly simpler --

    Subtract one latitude from the other, getting an angle.· For each 1/100 second of this difference, the latitudes differ by about one foot.· (If Earth were an exact sphere with diameter 8000 statute miles, 1/100 second would be 1.02 feet.)· So take the difference in latitudes (in 1/100 sec units), and that's the latitude difference in feet, close enough.· Pretty easy.

    For longitude, do the same, but lines of longitude approach each other and meet at the poles, so you've got to take that into account.· Take the difference in longitude (in 1/100 sec units), multiply it by the cosine of the latitude, and that's the longitude difference in feet, unless I screwed up somewhere above.· That's easy too.

    Divide the longitude difference by the latitude difference, and that's the sine of your heading.· Take the arcsine, and there you are!

    But can you find GPSs that read to 1/100 second?· GPSs that accurate (and much more accurate) do exist, and are used by surveyors, among others.· I wonder what they cost?







    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-02-15 17:27
    Jay,

    One additional thing you need to be sure of is that both GPSes are using the exact same set of satellites. Although this may the case most of the time between identical GPS units, given equally unobstructed views of the sky (a problem with steel rigging, wet sails, etc?), there will be transistional periods when satellites are dropped and picked up unequally. It's during these times that their apparent relative positions could be off.

    If you have two GPS units, it would be a simple experiment to place them in stationary positions on land and record their positions over the course of a day. Both will "wander" within a confined area, and you can check to see if their relative positions and resultant "heading" change.

    -Phil
  • Jay KickliterJay Kickliter Posts: 446
    edited 2009-02-15 17:44
    You're right carl. It probably isn't practical for anything under about 40'. For the same price I could get a decent compass. Or even a tilt-compensated compass, which could automatically compensate for variation/deviation. Or, next time I could actually get decent electronics and an autopilot and not have to be tied to the tiller. Another option is a rate-gyro tied to a compass to filter out bias. Might not even been necessary, I haven't used any of these flux-gate compasses, they might very accurate for all I know.

    I still think there is a demand for inexpensive DIY boat electronics. Most cruisers are a few beers away from being broke, at least the ones I hang with. And all boat electronics have a ridiculous mark-up. A few components in an epoxy block for element protection and a couple of cheap laptops is all you would need. You could use off the shelf sensors, like anemometers and and depth-sound transducers, but the interface is the expensive part. Even capillary tube refrigeration with an outboard heat-exchanger is not that complicated once you get the system charged up to the right level, but the boat-parts companies charge a fortune for the packaged system, which consists a microcontroller taking temperature measurements and turning on/off the compressor.
  • Carl HayesCarl Hayes Posts: 841
    edited 2009-02-15 20:20
    Heading is a matter of interest to me too, because I'm designing and building an RDF system that is a little more fancy than most.· It'll determine the relative bearing to an unknown transmitter with one-degree precision (but yet-unknown accuracy); and it will have a heading input (RS-232) so it can calculate the true bearing.· This will all be in a vehicle, and as I drive around it will plot lines-of-position for the unknown transmitter until we've got him nailed.

    So I'm interested in how to get bearing information, and I think I'll need a three-axis compass to compensate for dip, at least when going uphill or down.· You'd need three axes on a boat, too, I think.

    Anyway, I haven't learned much about compasses yet, except that flux-gates are apparently not the hot deal any more -- they're all magnetoresistive sensors nowadays from what I read.· No matter, I don't have a clue how flux-gates work anyway.· I'll be watching to learn about electronic compasses in general.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • Carl HayesCarl Hayes Posts: 841
    edited 2009-02-15 20:29
    Phil Pilgrim (PhiPi) said...
    One additional thing you need to be sure of is that both GPSes are using the exact same set of satellites.
    Phil, I'm unconvinced that this is true.· If each GPS has a known absolute accuracy that is sufficient, I can't see that it would make any difference if one is reading satellites 1,2,3,4, and 5 and the other is reading the Dallas Morning News.· I don't claim to know enough to say it ain't so, but I'd like to hear a little more argument on the subject.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-02-15 20:41
    Carl,

    Okay, here you go: www.trimble.com/gps/dgps-how.shtml. This is an explanation of differential GPS, which is the basis for Jay's app. In DGPS, the errors from each satellite that the base station observes have to be transmitted to the roving receiver so it can pick and apply the ones from its own observed satellites. Just the computed positions alone are insufficient, since the timing errors may come from different satellites.

    -Phil
  • Cluso99Cluso99 Posts: 18,069
    edited 2009-02-16 04:38
    I have found my GPS to be extremely effective while moving for giving a true direction. My boat is a 35ft (10.7m) catamaran and the GPS is located about 25ft from the bow and about 8ft off center. I have both a chartplotter and a laptop connected. The laptop shows a bearing line forward and this is why I know it is quite stable as this line does not vary much. Our speed is typically 6-10 knots, although in a sister ship we have achieved 20 knots instantaneously surfing a wave smile.gif

    There are a couple of other ways you could do this. I was thinking about using an cheap accelerometer chip (like in the nintendo) - a 3 dimensional one. This would give good response to pitch and yaw. There are also cheap gyro compass chips available today. If you are buying a GPS unit then these days they have 42+ channels which should give better results.

    I interfaced all my boat electronics to a prop early last year using NMEA and opto isolators 6N139's. Was planning to use a single cog for this, but alas, I moved on to more interesing things. Now I have multiple props, I shall just continue to use seperate cogs - they are cheap (relatively) and easy to use. Remember, if you use multiple cogs, you only require a single xtal and eeprom on one prop. The other prop(s) can be loaded and supplied an oscillator from the primary prop (no need for a xtal or eeprom, only a bypass cap) smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Links to other interesting threads:

    · Home of the MultiBladeProps (SixBladeProp)
    · Prop Tools under Development or Completed (Index)
    · Emulators (Micros eg Altair, and Terminals eg VT100) - index
    · Search the Propeller forums (via Google)

    My cruising website is: ·www.bluemagic.biz
  • Carl HayesCarl Hayes Posts: 841
    edited 2009-02-16 05:19
    Phil Pilgrim (PhiPi) said...
    Carl,

    Okay, here you go: www.trimble.com/gps/dgps-how.shtml. This is an explanation of differential GPS, which is the basis for Jay's app. In DGPS, the errors from each satellite that the base station observes have to be transmitted to the roving receiver so it can pick and apply the ones from its own observed satellites. Just the computed positions alone are insufficient, since the timing errors may come from different satellites.

    -Phil
    Thanks, Phil.· Of course that's true for DGPS, but DGPS wasn't mentioned in the thread header, and DGPS isn't available everywhere.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • Carl HayesCarl Hayes Posts: 841
    edited 2009-02-16 05:25
    Cluso99 said...
    I have found my GPS to be extremely effective while moving for giving a true direction.
    Yes, I've used GPS for course information myself, when in motion (in airplanes).· Often I'll be interested in heading rather than course, though, and sometimes I'll be stationary [noparse][[/noparse]in ground vehicles -- I don't fly helos or balloons]·-- and I thought that was Jay's interest too.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • Carl HayesCarl Hayes Posts: 841
    edited 2009-02-16 05:31
    Parenthetically, I imagine one would see timing errors, fatal to this kind of application, caused by·transmission delays in the cable connecting the GPS antennas to the GPS receivers -- unless the receivers were located close to the antennas.· That problem could be avoided, of course -- the length of cable· over which the NMEA data are transmitted from the GPS receiver to the computing system wouldn't matter at all, even if it were miles.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-02-16 06:31
    Carl,

    DGPS is GPS — not some entirely different technology, and my reference to it in this context is apt. The issues that face DGPS are exactly the same as the issues extant here. Namely, if two GPS units are receiving data from different satellites, they will be subject to different timing errors. This will cause their relative apparent positions to wander, rendering misleading heading* information. If you can guarantee that the position computations are being done with the same sets of data (i.e. from the same satellites), then — and only then — can you be assured of some degreee of precision in the heading* computation, based on bow and stern positions. Without that assurance, all bets are off. That's precisely the reason DGPS base stations broadcast the satellite info independently, and not just their computed positions.

    -Phil

    *I believe "heading" is the wrong term to use here. "Azimuth" is the correct word to use for the direction you're facing. "Heading" is the direction you're moving, and "bearing" is the direction to your presumed destination, a torpedo target, or a rock to be avoided, for example. The angular difference between one's azimuth and heading is the "yaw angle". (Jay, you're the sailor, so please correct me if I'm wrong about this.)

    Post Edited (Phil Pilgrim (PhiPi)) : 2/16/2009 6:44:28 AM GMT
  • Cluso99Cluso99 Posts: 18,069
    edited 2009-02-16 07:28
    Phil - We dont use azimuth in sailing. Heading is the direction you are pointing and course (cog) is the actual achieved direction and bearing is the angle to another object.

    The original DGPS (cant recall ist name) used a different frequency to broadcast corrections. Now a channel within the satellite range is used to broadcast the differential. WAAS ad EGNOS are the new differential type system and they are the same but maintained by different countries. The accuracies of GPS has improved considerably and are being used by roadmakers in Australia to grade a road to within 1cm over a 1km length without surveyors. I am not privy to how they achieve this.

    Transmission delays in the receiver cable can be ignored, since sailboats cannot realistically have very long cables. I don't even have my aerial outside the boat - it is inside facing though fibreglass with absolutely no problems. The maps are more dangerous, as some of them are still based on explorers such as Captain Cook.

    As a side effect of GPS, I understand that Hawaii was moved 500 yards on the map duing the 80's smile.gif Yet the cruise ships, etc, still managed to find it !!!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Links to other interesting threads:

    · Home of the MultiBladeProps (SixBladeProp)
    · Prop Tools under Development or Completed (Index)
    · Emulators (Micros eg Altair, and Terminals eg VT100) - index
    · Search the Propeller forums (via Google)

    My cruising website is: ·www.bluemagic.biz
  • Carl HayesCarl Hayes Posts: 841
    edited 2009-02-16 07:55
    Not disagreeing exactly, Phil -- DGPS is indeed GPS, not some separate and distinct thing.· But DGPS is GPS augmented by local ground facilities not present in most places on our planet, or even in most places in the USA.

    But I'm on very firm ground on heading.

    Heading is the direction in which the vessel is pointed, whether the vessel is a ship, a boat, an airplane, a car, or a bicycle.

    Track is the direction in which the vessel is intended to travel over the ground, which differs from heading most of the time.· There is nearly always a wind (for aircraft) and nearly always a current (for watercraft) to cause drift -- and if the drift has any sideways component, the track and heading will differ, or you won't get where you meant to go.· In my slow airplane (I don't have it any longer), it was not unusual for the track to differ from the heading by 10 or 20 degrees -- sometimes more with a quartering headwind.

    Course is the direction of travel·through the water or air.· In an airplane this will be the same as the heading in coordinated straight-and-level flight, but not while slipping, skidding, or (usually)·while turning.·In a boat, the course will be the same as the heading unless the vessel is being pushed sideways by wind, or (usually) while turning.· In sailboats, almost never will the course be the same as the heading, because sailboats almost always are pushed sideways by the sail (sometimes even when sailing exactly downwind, depending upon the sails set).

    Course over ground, which is not the same as course, is the direction in which the vessel is traveling with respect to the earth (instead of with respect to the air or water).

    Azimuth is the horizontal direction from the vessel to some other object, usually a star or other navigational object.· For other objects, like other airplanes or other boats, bearing is used instead.

    Apologies to Jay -- much of this is OT for his thread.· But if words mean one thing to most people, and something else to one of them, communication fails.

    And so forth.· There are·bearings (relative and true), altitudes·(of celestial objects used in navigating), and·any number of other specialized terms used in navigation and pilotage.··But heading has only one·meaning -- the direction in which the vessel itself·is physically pointing, no matter in what direction it's moving, or whether it's moving at all.· And none of these have anything to do with where one is facing, or where one is looking.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-02-16 07:57
    Cluso99 said...
    Phil - We dont use azimuth in sailing.
    Correction noted — and it makes sense. (It's amazing how much misinformation can be Googled. smile.gif ) Thanks!

    -Phil
  • Cluso99Cluso99 Posts: 18,069
    edited 2009-02-16 09:19
    Well I don't use the stars so I haven't used azimuth :-(
    Nice definitions Carl.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Links to other interesting threads:

    · Home of the MultiBladeProps (SixBladeProp)
    · Prop Tools under Development or Completed (Index)
    · Emulators (Micros eg Altair, and Terminals eg VT100) - index
    · Search the Propeller forums (via Google)

    My cruising website is: ·www.bluemagic.biz
  • Jay KickliterJay Kickliter Posts: 446
    edited 2009-02-16 13:19
    Wow, a lot of activity while I was asleep. Carl was right, I was interested in heading, not track. I was sailing a slow monohull, so cross currents affected me a lot, especially between Florida and the Bahamas. My compass was never reliable, and they have to be calibrated for different latitudes. For all I know, this may be a moot point using todays electronic compasses, but I haven't used them. I've also used gyros for navigation, on the large merchant ships I sometimes work on. That is more what I'm interested in, it may seem like an over kill but they are very nice to work with. They are very stable and respond to the smallest change in heading. I was just brains storming ways to do it without a $10k gyro. If GPS isn't an option, I'm thinking a an electronic compass tied to a rate gyro and kalman filtered. That's what the filter is for right, take a rate and a known estimate? But deviation and variation would still have to be subtracted. But for all I know, digital compasses already do this, does anybody know?

    Carl, although I'd agree that in sailboats course and heading are rarely the same, I think currents play a much larger role than sail pressure. At least on my old boat, it had a large full-keel.

    Cluso, I'm absolutely interested in what you have don't with the nmea data. When I was crusing, I didn't know what a microcontroll was or how to program, so it was all magic to me. Now, this stuff makes sense.
  • Carl HayesCarl Hayes Posts: 841
    edited 2009-02-16 16:05
    Jay Kickliter said...
    If GPS isn't an option, I'm thinking a an electronic compass tied to a rate gyro and kalman filtered. That's what the filter is for right, take a rate and a known estimate? But deviation and variation would still have to be subtracted. But for all I know, digital compasses already do this, does anybody know?

    Carl, although I'd agree that in sailboats course and heading are rarely the same, I think currents play a much larger role than sail pressure. At least on my old boat, it had a large full-keel.
    Jay, I've been studying application notes (mostly from Philips) on electronic compasses for the last couple months.· I'm going to build one, I guess -- but it's a major design task, and I don't know nearly enough yet.· I don't even know for sure·whether I need a two-axis or a three-axis compass.· Anyway, the RDF comes first.· It'll have provision for compass input via RS-232.

    From what I've learned so far, though, it doesn't look very difficult to build deviation tables into the software; and certainly it's possible to make provision for entering variation whenever one's position has changed enough to make it necessary.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    · -- Carl, nn5i@arrl.net
  • Bob Lawrence (VE1RLL)Bob Lawrence (VE1RLL) Posts: 1,720
    edited 2009-02-17 18:45
    You guys may find this project interesting:

    SPIN: A 4-meter 400kg Robotic Sailboat with Four Propeller Chips

    www.parallax.com/tabid/730/Default.aspx

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Aka: CosmicBob
Sign In or Register to comment.