@@ -124,12 +124,32 @@ The distance noise factor was determined by having the robot perform multiple fo
...
@@ -124,12 +124,32 @@ The distance noise factor was determined by having the robot perform multiple fo
The angle noise factor was determined by two tests, both performed multiple times. In the first test, the robot performed four 360 degrees rotation. The second test was similar, but reversed the direction of the 2nd and 4th rotation. For both tests, the average deviation was 0.5 degrees.
The angle noise factor was determined by two tests, both performed multiple times. In the first test, the robot performed four 360 degrees rotation. The second test was similar, but reversed the direction of the 2nd and 4th rotation. For both tests, the average deviation was 0.5 degrees.
### Test with `PilotMonitor` and `PilotRoute`
### Test with `PilotMonitor` and `PilotRoute`
The `applyMove` function in the `Particle` class was initially corrected, so that the addition of the random error is not dependent of the coordinate system. In the snippet below, the old implementation is shown. Here the addition of noise depends on the distance traveled in the x or y direction, meaning that if the Lego car only moved in the y direction, no noise would be added to the x-coordinate. And vice versa.
In the snippet below the corrected implementation is shown. Instead of using the distance in the x and y direction, the total distance is used. In this way, the noise addition is independent of the coordinate system.
The particle filter was tested by making the car follow the track as shown in the picture below. By using the poster with distances it is possible to see how accurate the car is.
