jessvi created page: Lab10 authored by Jesper Kurtzmann Svith's avatar Jesper Kurtzmann Svith
......@@ -79,6 +79,7 @@ Avg. wheel thickness:
![Skærmbillede 2015-06-01 kl. 09.42.53](http://gitlab.au.dk/uploads/group-22/lego/a94a8f240e/Sk%C3%A6rmbillede_2015-06-01_kl._09.42.53.png)
##### Fig. 8 - Average wheel thickness.
The point of the wheel where the diameter is largest would naturally be at the centre point, at 0,31cm/2 = 0,155 cm
The True Track Width with the slim wheels was therefore calculated as following:
......@@ -99,3 +100,14 @@ Play in the wheels is a non-systematic error, as it is determined by chance and
## Calibrate the wheel diameter and the track width
To calibrate the robots travel distance according to the wheel diameter we modified the code from PilotSquare.java as follows:
```
pilot.travel(50);
show(poseProvider.getPose());
```
##### Fig. 11 - Codesnippet from PilotSquare.java
This code should drive the robot forward 50 cm’s. In order to get accurate results the robot was placed on a paper with a grid layout and markers for each 25 cm’s. By doing this we know that if the robot is calibrated correctly it will stop after two lines corresponding to 50 cm.