I want to use a Garmin 16x HVS gps receiver with a Leonardo Arduino board. Basically I would solder a db9 connector to the serial comport input and output. I want to control the output from the gps receiver. I want to compare the most recent gps string with the one before and if the position has not change by 50 feet(programmeable 0 to 100 feet) the gps string would not be sent through the output serial port. How would I code this?