mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-25 08:36:08 +08:00
CAL_MAG_SIDES: do not save with factory cal
This commit is contained in:
@@ -47,7 +47,7 @@ static bool filter_calibration_params(param_t handle)
|
||||
{
|
||||
const char *name = param_name(handle);
|
||||
// filter all non-calibration params
|
||||
return strncmp(name, "CAL_", 4) == 0 || strncmp(name, "TC_", 3) == 0;
|
||||
return (strncmp(name, "CAL_", 4) == 0 && strncmp(name, "CAL_MAG_SIDES", 13) != 0) || strncmp(name, "TC_", 3) == 0;
|
||||
}
|
||||
|
||||
FactoryCalibrationStorage::FactoryCalibrationStorage()
|
||||
|
||||
Reference in New Issue
Block a user