mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 05:13:33 +08:00
clang-tidy fix mathlib headers and format
This commit is contained in:
@@ -114,19 +114,19 @@ public:
|
||||
{
|
||||
Block::updateParams();
|
||||
|
||||
if (getChildren().getHead() != NULL) { updateChildParams(); }
|
||||
if (getChildren().getHead() != nullptr) { updateChildParams(); }
|
||||
}
|
||||
virtual void updateSubscriptions()
|
||||
{
|
||||
Block::updateSubscriptions();
|
||||
|
||||
if (getChildren().getHead() != NULL) { updateChildSubscriptions(); }
|
||||
if (getChildren().getHead() != nullptr) { updateChildSubscriptions(); }
|
||||
}
|
||||
virtual void updatePublications()
|
||||
{
|
||||
Block::updatePublications();
|
||||
|
||||
if (getChildren().getHead() != NULL) { updateChildPublications(); }
|
||||
if (getChildren().getHead() != nullptr) { updateChildPublications(); }
|
||||
}
|
||||
protected:
|
||||
// methods
|
||||
|
||||
@@ -544,10 +544,10 @@ public:
|
||||
S = V1 * V1 + V2 * V2;
|
||||
} while (S >= 1 || fabsf(S) < 1e-8f);
|
||||
|
||||
X = V1 * float(sqrt(-2 * float(log(S)) / S));
|
||||
X = V1 * float(sqrtf(-2 * float(logf(S)) / S));
|
||||
|
||||
} else {
|
||||
X = V2 * float(sqrt(-2 * float(log(S)) / S));
|
||||
X = V2 * float(sqrtf(-2 * float(logf(S)) / S));
|
||||
}
|
||||
|
||||
phase = 1 - phase;
|
||||
|
||||
Reference in New Issue
Block a user