Update GPS data retrieval to use fake GPS readings for testing
This commit is contained in:
@@ -25,3 +25,9 @@ GPSData_t GPS_Read()
|
||||
|
||||
return {lat, lon};
|
||||
}
|
||||
|
||||
GPSData_t GPS_Read_Fake()
|
||||
{
|
||||
float rnd = random(-0.005, 0.005);
|
||||
return {37.358201f + rnd, -5.986640f + rnd};
|
||||
}
|
||||
@@ -105,7 +105,7 @@ void readBME280()
|
||||
|
||||
void readGPS()
|
||||
{
|
||||
gpsData = GPS_Read();
|
||||
gpsData = GPS_Read_Fake();
|
||||
}
|
||||
|
||||
void writeMatrix(const char *message)
|
||||
|
||||
Reference in New Issue
Block a user