Skip to content

Commit

Permalink
refactor: 左車輪M_PI=3.15のときの累計走行距離の計算値を小数点以下までコメント
Browse files Browse the repository at this point in the history
  • Loading branch information
YKhm20020 committed Jun 8, 2024
1 parent 2b092d7 commit d0b7381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/MileageTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace etrobocon2024_test {
// 2.左車輪の累計走行距離を算出
// double leftWheelMileage = 2.0 * leftAngle * radius * M_PI / 360.0;
// M_PI = 3.14: leftWheelMileage = 2.0 * 40.0 * 50.0 * 3.14 / 360.0 = 32.1111...
// M_PI = 3.15: leftWheelMileage = 2.0 * 40.0 * 50.0 * 3.15 / 360.0 = 35
// M_PI = 3.15: leftWheelMileage = 2.0 * 40.0 * 50.0 * 3.15 / 360.0 = 35.0
// 3.両車輪の累計走行距離の平均を算出
// double expected = (rightWheelMileage + leftWheelMileage) / 2.0;
// M_PI = 3.14: (26.1666... + 32.1111...) / 2 = 29.13888...
Expand Down

0 comments on commit d0b7381

Please sign in to comment.