mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 14:13:33 +08:00
sensors/vehicle_magnetometer: fix multi_mode check
Signed-off-by: Serhat Aksun <serhat.aksun@maxwell-innovations.com>
This commit is contained in:
committed by
Daniel Agar
parent
12a81979a8
commit
bc220ddb82
@@ -486,7 +486,7 @@ void VehicleMagnetometer::Run()
|
|||||||
// Publish
|
// Publish
|
||||||
if (_param_sens_mag_rate.get() > 0) {
|
if (_param_sens_mag_rate.get() > 0) {
|
||||||
int interval_us = 1e6f / _param_sens_mag_rate.get();
|
int interval_us = 1e6f / _param_sens_mag_rate.get();
|
||||||
const bool multi_mode = (_param_sens_mag_mode.get() == 1);
|
const bool multi_mode = (_param_sens_mag_mode.get() == 0);
|
||||||
|
|
||||||
for (int instance = 0; instance < MAX_SENSOR_COUNT; instance++) {
|
for (int instance = 0; instance < MAX_SENSOR_COUNT; instance++) {
|
||||||
if (updated[instance] && (_data_sum_count[instance] > 0)) {
|
if (updated[instance] && (_data_sum_count[instance] > 0)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user