mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 16:43:33 +08:00
ekf2: adjust ekf2 aid parameters in configs
This commit is contained in:
@@ -144,11 +144,11 @@ void AutopilotTester::set_height_source(AutopilotTester::HeightSource height_sou
|
||||
{
|
||||
switch (height_source) {
|
||||
case HeightSource::Baro:
|
||||
CHECK(_param->set_param_int("EKF2_HGT_MODE", 0) == Param::Result::Success);
|
||||
CHECK(_param->set_param_int("EKF2_HGT_REF", 0) == Param::Result::Success);
|
||||
break;
|
||||
|
||||
case HeightSource::Gps:
|
||||
CHECK(_param->set_param_int("EKF2_HGT_MODE", 1) == Param::Result::Success);
|
||||
CHECK(_param->set_param_int("EKF2_HGT_REF", 1) == Param::Result::Success);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user