Skip to content

Commit

Permalink
AP_Baro: correct placement of field elevation #endif
Browse files Browse the repository at this point in the history
wind compensation and field elevation should be unrelated
  • Loading branch information
peterbarker committed Apr 28, 2024
1 parent 202cc6a commit 0a3ff72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_Baro/AP_Baro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,13 @@ const AP_Param::GroupInfo AP_Baro::var_info[] = {
// @Path: AP_Baro_Wind.cpp
AP_SUBGROUPINFO(sensors[1].wind_coeff, "2_WCF_", 19, AP_Baro, WindCoeff),
#endif

#if BARO_MAX_INSTANCES > 2
// @Group: 3_WCF_
// @Path: AP_Baro_Wind.cpp
AP_SUBGROUPINFO(sensors[2].wind_coeff, "3_WCF_", 20, AP_Baro, WindCoeff),
#endif
#endif // HAL_BARO_WIND_COMP_ENABLED

#if AP_FIELD_ELEVATION_ENABLED
// @Param: _FIELD_ELV
// @DisplayName: field elevation
Expand All @@ -233,7 +234,6 @@ const AP_Param::GroupInfo AP_Baro::var_info[] = {
// @User: Advanced
AP_GROUPINFO("_FIELD_ELV", 22, AP_Baro, _field_elevation, 0),
#endif
#endif

#if APM_BUILD_COPTER_OR_HELI || APM_BUILD_TYPE(APM_BUILD_ArduPlane)
// @Param: _ALTERR_MAX
Expand Down

0 comments on commit 0a3ff72

Please sign in to comment.