Skip to content

Commit

Permalink
feat: edit initial value of best time, inf to 999.9 (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arata-Stu authored Oct 8, 2024
1 parent 6d2577d commit d575dbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class SectionTimerNode : public rclcpp::Node

// セクションタイム配列とベストタイム差分配列を初期化(13要素: 12セクション + 1ラップタイム)
section_times_.resize(sections_.size() + 1, 0.0);
best_times_.resize(sections_.size(), std::numeric_limits<float>::infinity());
best_times_.resize(sections_.size(), 999.9);
best_times_diff_.resize(sections_.size() + 1, 0.0); // 最初は全て0.0で初期化
}

Expand Down

0 comments on commit d575dbc

Please sign in to comment.