mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 01:17:51 +08:00
clang-tidy modernize-redundant-void-arg
This commit is contained in:
@@ -2854,7 +2854,7 @@ bool AttPosEKF::FilterHealthy()
|
||||
return true;
|
||||
}
|
||||
|
||||
void AttPosEKF::ResetPosition(void)
|
||||
void AttPosEKF::ResetPosition()
|
||||
{
|
||||
if (staticMode) {
|
||||
states[7] = 0;
|
||||
@@ -2877,7 +2877,7 @@ void AttPosEKF::ResetPosition(void)
|
||||
P[8][8] = P[7][7];
|
||||
}
|
||||
|
||||
void AttPosEKF::ResetHeight(void)
|
||||
void AttPosEKF::ResetHeight()
|
||||
{
|
||||
// write to the state vector
|
||||
states[9] = -hgtMea;
|
||||
@@ -2892,7 +2892,7 @@ void AttPosEKF::ResetHeight(void)
|
||||
P[6][6] = sq(0.7f);
|
||||
}
|
||||
|
||||
void AttPosEKF::ResetVelocity(void)
|
||||
void AttPosEKF::ResetVelocity()
|
||||
{
|
||||
if (staticMode) {
|
||||
states[4] = 0.0f;
|
||||
|
||||
@@ -74,12 +74,12 @@ void ekf_debug(const char *fmt, ...) { while(0){} }
|
||||
/* we don't want to pull in the standard lib just to swap two floats */
|
||||
void swap_var(float &d1, float &d2);
|
||||
|
||||
float Vector3f::length(void) const
|
||||
float Vector3f::length() const
|
||||
{
|
||||
return sqrt(x*x + y*y + z*z);
|
||||
}
|
||||
|
||||
void Vector3f::zero(void)
|
||||
void Vector3f::zero()
|
||||
{
|
||||
x = 0.0f;
|
||||
y = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user