I'm thinking about possibly considering thinking about designing a navigation program. My company uses a proprietary Windows one, but I think that in my mind, I could make a better one, more suited to our needs.
So what a navigation program does is read in 3 basic things: position, heading, and pitch/roll. These come into the system as data telegrams, usually via serial cables. Nearly half the non-graphical part of the program function will be decoding these telegrams, which can be updated as often as every second. The other half is applying the information to the ship's attitude, to determine course, bearing, and speed. After that it's all survey modules and trigonometry. The input processing is the key.
Here's what I would like real quick: an example, like 3 lines, of how one would listen for, read, and decrypt a continuous stream of data on a comport. In C preferably. Just something I can wrap my hands around, for prototyping. Would this be like a filestream, or is there something else involved?


