mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +08:00
HMC5883: Temp dummy value
This commit is contained in:
@@ -927,6 +927,9 @@ HMC5883::collect()
|
||||
/* z remains z */
|
||||
new_report.z = ((zraw_f * _range_scale) - _scale.z_offset) * _scale.z_scale;
|
||||
|
||||
/* this sensor does not measure temperature, output a constant value */
|
||||
new_report.temperature = 0.0f;
|
||||
|
||||
if (!(_pub_blocked)) {
|
||||
|
||||
if (_mag_topic != -1) {
|
||||
|
||||
Reference in New Issue
Block a user