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

Commit 8038576

Browse files
committed
Added documentation on odometry calculation.
See https://rn-wissen.de/wiki/index.php/CCRP5#Odometrie
1 parent 0f5d79c commit 8038576

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

robot-control-src/board.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,18 @@ extern MCP23017Pin rightBackwards;
2626
extern MCP23017Pin leftBumper;
2727
extern MCP23017Pin rightBumper;
2828

29+
/**
30+
* Maximum robot velocity.
31+
*
32+
* According to [this wiki](https://rn-wissen.de/wiki/index.php/CCRP5#Technische_Daten).
33+
*/
2934
constexpr auto maxVelocity = 220; //!< [mm/s]
35+
/**
36+
* distance of one outer wheel turn U = d*pi
37+
* diameter of outer wheel d = 50 mm
38+
* fraction of one odometry interval to outer wheel f = 6/25
39+
* distance of one odometry interval = f*U
40+
*/
3041
constexpr float odoIntervalLength = 12*pi; //!< [mm]
3142
//! Minimum time with buffer factor [ms]
3243
constexpr Milliseconds odoMinIntervalDuration = (odoIntervalLength * 1000.0) / (maxVelocity*2.0);

0 commit comments

Comments
 (0)