Update gps.c

Compute GPS quality signal