ekf2: adjust ekf2 aid parameters in configs

This commit is contained in:
bresch
2022-07-29 15:24:37 +02:00
committed by Daniel Agar
parent 8962cf2d25
commit 6833c7e311
10 changed files with 12 additions and 6 deletions
+2 -2
View File
@@ -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);
}
}