Skip to content

Commit

Permalink
if文を無視するように変更
Browse files Browse the repository at this point in the history
  • Loading branch information
rein0925 committed Apr 7, 2024
1 parent bf81539 commit 4fb96ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/schneider_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,16 @@ void Schneider::set_q() {
void Schneider::rotate() {
fet_1 = 0.5F;
fet_2 = 0.5F;
// ifとelseで内容が同じだといわれたがそんなことない
// NOLINTBEGIN(bugprone-branch-clone)
if (volume_ < volumeThreshold) {
servo_1.pulsewidth_us(550);
servo_2.pulsewidth_us(2350);
} else {
servo_2.pulsewidth_us(550);
servo_1.pulsewidth_us(2350);
}
// NOLINTEND(bugprone-branch-clone)
}

void Schneider::led(int num) {
Expand Down

0 comments on commit 4fb96ec

Please sign in to comment.