Wednesday, May 04, 2005

GPS and Director MX: "GPSy is a software interface for a variety of GPS receivers including Garmin. GPSy is AppleScriptable, meaning that the data it captures can be passed through AppleScript to other applications, such as Director MX. Although GPSy currently runs in the Classic MacOS, it has no difficulty communicating with USB ports under OSX. But GPSy must be configured to receive the GPS data correctly from the serial port. The settings in this example are:

serial port: P#1USA19W1 (the identity of the USB adapter)
real time display protocol: NMEA 0183
protocol BPS rate: 4800 8N1
data transfer protocol: Garmin data protocol

AppleScript is used to extract latitude, longitude, and altitude data from GPSy. But by itself it has limited capabilities to visualize the data. Director MX, which has sophisticated capabilities to build dynamic displays, doesn't natively send or receive AppleEvents. So an extension to Director, called an Xtra, is used. The Xtra in this example is ZScript. The Xtra must be placed in the Director MX application folder, in the Xtras directory."

No comments: