mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_Avoidance: Add missing const in member functions
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
7e01935893
commit
f6937babfa
@ -609,7 +609,7 @@ void AP_Avoidance::handle_msg(const mavlink_message_t &msg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get unit vector away from the nearest obstacle
|
// get unit vector away from the nearest obstacle
|
||||||
bool AP_Avoidance::get_vector_perpendicular(const AP_Avoidance::Obstacle *obstacle, Vector3f &vec_neu)
|
bool AP_Avoidance::get_vector_perpendicular(const AP_Avoidance::Obstacle *obstacle, Vector3f &vec_neu) const
|
||||||
{
|
{
|
||||||
if (obstacle == nullptr) {
|
if (obstacle == nullptr) {
|
||||||
// why where we called?!
|
// why where we called?!
|
||||||
|
@ -140,7 +140,7 @@ protected:
|
|||||||
bool get_destination_perpendicular(const AP_Avoidance::Obstacle *obstacle, Vector3f &newdest_neu, const float wp_speed_xy, const float wp_speed_z, const uint8_t _minimum_avoid_height);
|
bool get_destination_perpendicular(const AP_Avoidance::Obstacle *obstacle, Vector3f &newdest_neu, const float wp_speed_xy, const float wp_speed_z, const uint8_t _minimum_avoid_height);
|
||||||
|
|
||||||
// get unit vector away from the nearest obstacle
|
// get unit vector away from the nearest obstacle
|
||||||
bool get_vector_perpendicular(const AP_Avoidance::Obstacle *obstacle, Vector3f &vec_neu);
|
bool get_vector_perpendicular(const AP_Avoidance::Obstacle *obstacle, Vector3f &vec_neu) const;
|
||||||
|
|
||||||
// helper functions to calculate destination to get us away from obstacle
|
// helper functions to calculate destination to get us away from obstacle
|
||||||
// Note: v1 is NED
|
// Note: v1 is NED
|
||||||
|
Loading…
Reference in New Issue
Block a user