Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions libraries/AP_AHRS/AP_AHRS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1420,28 +1420,6 @@ Vector2f AP_AHRS::_groundspeed_vector(void)

float AP_AHRS::_groundspeed(void)
{
switch (active_EKF_type()) {
#if AP_AHRS_DCM_ENABLED
case EKFType::DCM:
return dcm.groundspeed();
#endif
#if HAL_NAVEKF2_AVAILABLE
case EKFType::TWO:
#endif

#if HAL_NAVEKF3_AVAILABLE
case EKFType::THREE:
#endif

#if AP_AHRS_EXTERNAL_ENABLED
case EKFType::EXTERNAL:
#endif

#if AP_AHRS_SIM_ENABLED
case EKFType::SIM:
#endif
break;
}
return groundspeed_vector().length();
}

Expand Down
5 changes: 0 additions & 5 deletions libraries/AP_AHRS/AP_AHRS_Backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,6 @@ class AP_AHRS_Backend
return false;
}

// return ground speed estimate in meters/second. Used by ground vehicles.
float groundspeed(void) {
return groundspeed_vector().length();
}

// return true if we will use compass for yaw
virtual bool use_compass(void) = 0;

Expand Down
Loading