-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set_q()内のメンバ変数のthisポインタを明示 #128
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
条件式のやつは他のとこもお願いします
src/schneider_model.cpp
Outdated
@@ -167,25 +167,25 @@ inline void Schneider::state_equation() { | |||
void Schneider::set_q() { | |||
using std::abs; | |||
if (abs(q[0] <= 0.4F)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
条件式内のthis
抜けてる
src/schneider_model.cpp
Outdated
} | ||
while (q[3] < -schneider_PI) { | ||
q[3] += 2 * schneider_PI; | ||
this->q[3] += 2 * schneider_PI; | ||
} | ||
|
||
if (0 < q[2] && q[2] < schneider_PI) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここ以降もthis
明示してください(Schneider::set_q
の終わりまで)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
良さ
No description provided.