mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 10:23:33 +08:00
wind_estimator add param to enable and start
This commit is contained in:
committed by
Lorenz Meier
parent
6f204c4913
commit
ad41744670
@@ -330,5 +330,12 @@ extern "C" __EXPORT int wind_estimator_main(int argc, char *argv[]);
|
||||
int
|
||||
wind_estimator_main(int argc, char *argv[])
|
||||
{
|
||||
return WindEstimatorModule::main(argc, argv);
|
||||
int32_t wind_estimator_enabled = 0;
|
||||
param_get(param_find("WEST_EN"), &wind_estimator_enabled);
|
||||
|
||||
if (wind_estimator_enabled == 1) {
|
||||
return WindEstimatorModule::main(argc, argv);
|
||||
}
|
||||
|
||||
return PX4_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user