AP_Avoidance: correct compilation when HAL_GCS_ENABLED is false

This commit is contained in:
Peter Barker 2023-12-11 17:44:00 +11:00 committed by Andrew Tridgell
parent c15a73c798
commit 93907f4a6d

View File

@ -396,6 +396,7 @@ MAV_COLLISION_THREAT_LEVEL AP_Avoidance::current_threat_level() const {
return _obstacles[_current_most_serious_threat].threat_level;
}
#if HAL_GCS_ENABLED
void AP_Avoidance::send_collision_all(const AP_Avoidance::Obstacle &threat, MAV_COLLISION_ACTION behaviour) const
{
const mavlink_collision_t packet{
@ -409,6 +410,7 @@ void AP_Avoidance::send_collision_all(const AP_Avoidance::Obstacle &threat, MAV_
};
gcs().send_to_active_channels(MAVLINK_MSG_ID_COLLISION, (const char *)&packet);
}
#endif
void AP_Avoidance::handle_threat_gcs_notify(AP_Avoidance::Obstacle *threat)
{