mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-18 00:08:22 +08:00
commander: fix accel sensor present flag
This must have been a copy paste mistake.
This commit is contained in:
@@ -62,7 +62,7 @@ void AccelerometerChecks::checkAndReport(const Context &context, Report &reporte
|
||||
is_calibration_valid = (calibration::FindCurrentCalibrationIndex("ACC", accel_data.device_id) >= 0);
|
||||
}
|
||||
|
||||
reporter.setIsPresent(health_component_t::gyro);
|
||||
reporter.setIsPresent(health_component_t::accel);
|
||||
}
|
||||
|
||||
const bool is_sensor_ok = is_valid && is_calibration_valid;
|
||||
|
||||
Reference in New Issue
Block a user