mirror of
https://github.com/cosmic-pi-deprecated/cosmicpi-arduino_V1.6.git
synced 2026-05-12 16:09:25 +00:00
added altitude values
This commit is contained in:
parent
4223aa4973
commit
34b716c668
1 changed files with 4 additions and 1 deletions
|
|
@ -436,13 +436,16 @@ void GPS_PPS()
|
|||
sensors_event_t a, m, g, temp;
|
||||
lsm.getEvent(&a, &m, &g, &temp);
|
||||
|
||||
float pressure = ps.readPressureMillibars();
|
||||
float pressure = ps.readPressureMillibars();
|
||||
float altitude = ps.pressureToAltitudeMeters(pressure);
|
||||
float temperature = ps.readTemperatureC();
|
||||
|
||||
float humd = myHumidity.readHumidity();
|
||||
float temphum = myHumidity.readTemperature();
|
||||
|
||||
Serial.print("Pressure: ");
|
||||
Serial.print(pressure, 6);
|
||||
Serial.println(';');
|
||||
Serial.print("Altitude: ");
|
||||
Serial.print(altitude, 6);
|
||||
Serial.println(';');
|
||||
|
|
|
|||
Loading…
Reference in a new issue