make gps and mpu data as functions