Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

Commit 0f5d79c

Browse files
committed
Add constant odoMinIntervalDuration.
1 parent f6d1783 commit 0f5d79c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

robot-control-src/board.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ extern MCP23017Pin rightBumper;
2828

2929
constexpr auto maxVelocity = 220; //!< [mm/s]
3030
constexpr float odoIntervalLength = 12*pi; //!< [mm]
31+
//! Minimum time with buffer factor [ms]
32+
constexpr Milliseconds odoMinIntervalDuration = (odoIntervalLength * 1000.0) / (maxVelocity*2.0);
3133
};
3234

3335
#endif // BOARD_HPP

0 commit comments

Comments
 (0)