import random
# Simulate GPS data
class MockGPS:
def __init__(self):
self.lat = 40.7128 # placeholder for latitude(e.g., New York City)
self.lng = -74.0060 # placeholder for longitude(e.g., New York City)
self.satellites = 8 # Number of satellites locked
self.speed = 30 # Speed in MPH
self.altitude = 33 # Altitude in feet
def update(self):
# Keeping the GPS data static for simplicity
pass
# Simulate accelerometer readings with random values
class MockAccelerometer:
def __init__(self):
self.x_still = 512
self.y_still = 512
self.z_still = 512
self.x_value = self.x_still