Refactor sensor data handling: update sensor read functions to return structured data and improve timer management in main loop
This commit is contained in:
@@ -3,5 +3,10 @@
|
||||
#define RX 4
|
||||
#define TX 5
|
||||
|
||||
void GPS_Init();
|
||||
void GPS_Read(float &lat, float &lon);
|
||||
struct GPSData_t
|
||||
{
|
||||
float lat;
|
||||
float lon;
|
||||
};
|
||||
|
||||
GPSData_t GPS_Read();
|
||||
Reference in New Issue
Block a user