|
|
@ -762,8 +762,8 @@ MS5611::collect() |
|
|
|
report.temperature = _TEMP / 100.0f; |
|
|
|
report.temperature = _TEMP / 100.0f; |
|
|
|
report.pressure = P / 100.0f; /* convert to millibar */ |
|
|
|
report.pressure = P / 100.0f; /* convert to millibar */ |
|
|
|
|
|
|
|
|
|
|
|
/* TODO get device ID for sensor */ |
|
|
|
/* return device ID */ |
|
|
|
report.device_id = 0; |
|
|
|
report.device_id = _device_id; |
|
|
|
|
|
|
|
|
|
|
|
/* altitude calculations based on http://www.kansasflyer.org/index.asp?nav=Avi&sec=Alti&tab=Theory&pg=1 */ |
|
|
|
/* altitude calculations based on http://www.kansasflyer.org/index.asp?nav=Avi&sec=Alti&tab=Theory&pg=1 */ |
|
|
|
|
|
|
|
|
|
|
|