mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 02:53:34 +08:00
drivers/differential_pressure: remove lib/drivers/airspeed dependency and cleanup
- split ms4525_airspeed into separate ms4515 and ms4525 drivers
This commit is contained in:
@@ -178,5 +178,20 @@ bool param_modify_on_import(bson_node_t node)
|
||||
}
|
||||
}
|
||||
|
||||
// 2022-04-25 (v1.13 alpha): translate MS4525->MS4525DO and MS5525->MS5525DSO
|
||||
{
|
||||
if (strcmp("SENS_EN_MS4525", node->name) == 0) {
|
||||
strcpy(node->name, "SENS_EN_MS4525DO");
|
||||
PX4_INFO("copying %s -> %s", "SENS_EN_MS4525", "SENS_EN_MS4525DO");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (strcmp("SENS_EN_MS5525", node->name) == 0) {
|
||||
strcpy(node->name, "SENS_EN_MS5525DS");
|
||||
PX4_INFO("copying %s -> %s", "SENS_EN_MS5525", "SENS_EN_MS5525DS");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user