mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 08:57:34 +08:00
clang-tidy performance-unnecessary-value-param
This commit is contained in:
@@ -398,8 +398,8 @@ MulticopterPositionControlMultiplatform::control_offboard(float dt)
|
||||
}
|
||||
|
||||
bool
|
||||
MulticopterPositionControlMultiplatform::cross_sphere_line(const math::Vector<3> &sphere_c, float sphere_r,
|
||||
const math::Vector<3> line_a, const math::Vector<3> line_b, math::Vector<3> &res)
|
||||
MulticopterPositionControlMultiplatform::cross_sphere_line(const math::Vector<3> &sphere_c, const float sphere_r,
|
||||
const math::Vector<3> &line_a, const math::Vector<3> &line_b, math::Vector<3> &res)
|
||||
{
|
||||
/* project center of sphere on line */
|
||||
/* normalized AB */
|
||||
|
||||
@@ -214,8 +214,8 @@ protected:
|
||||
*/
|
||||
void control_offboard(float dt);
|
||||
|
||||
bool cross_sphere_line(const math::Vector<3> &sphere_c, float sphere_r,
|
||||
const math::Vector<3> line_a, const math::Vector<3> line_b, math::Vector<3> &res);
|
||||
bool cross_sphere_line(const math::Vector<3> &sphere_c, const float sphere_r,
|
||||
const math::Vector<3> &line_a, const math::Vector<3> &line_b, math::Vector<3> &res);
|
||||
|
||||
/**
|
||||
* Set position setpoint for AUTO
|
||||
|
||||
Reference in New Issue
Block a user