mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-01 19:04:07 +08:00
Merge remote-tracking branch 'upstream/master' into autostart-scripts
This commit is contained in:
commit
2a0c2ea6eb
@ -1080,10 +1080,10 @@ int HMC5883::check_offset()
|
||||
|
||||
int HMC5883::check_calibration()
|
||||
{
|
||||
bool offset_valid = !(check_offset() == OK);
|
||||
bool scale_valid = !(check_scale() == OK);
|
||||
bool offset_valid = (check_offset() == OK);
|
||||
bool scale_valid = (check_scale() == OK);
|
||||
|
||||
if (_calibrated != (offset_valid && scale_valid == OK)) {
|
||||
if (_calibrated != (offset_valid && scale_valid)) {
|
||||
warnx("mag cal status changed %s%s", (scale_valid) ? "" : "scale invalid ",
|
||||
(offset_valid) ? "" : "offset invalid");
|
||||
_calibrated = (offset_valid && scale_valid);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user