mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 08:11:35 +08:00
Fix sensor IDs
This commit is contained in:
committed by
Lorenz Meier
parent
7d5cd02c70
commit
1134f1a868
@@ -543,8 +543,8 @@ BMP280::collect()
|
||||
report.temperature = _T;
|
||||
report.pressure = _P / 100.0f; // to mbar
|
||||
|
||||
/* TODO get device ID for sensor */
|
||||
report.device_id = _device_id;
|
||||
/* Get device ID */
|
||||
report.device_id = _device_id.devid;
|
||||
|
||||
/* altitude calculations based on http://www.kansasflyer.org/index.asp?nav=Avi&sec=Alti&tab=Theory&pg=1 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user