... | @@ -16,7 +16,7 @@ The goal for the day is to make a Lego car follow the Alishan track using a gyro |
... | @@ -16,7 +16,7 @@ The goal for the day is to make a Lego car follow the Alishan track using a gyro |
|
|
|
|
|
Based on the knowledge gained from [1], a behavioral control will be implemented on the Lego car.
|
|
Based on the knowledge gained from [1], a behavioral control will be implemented on the Lego car.
|
|
|
|
|
|
## Diffirential drive
|
|
## Differential drive
|
|
|
|
|
|
### Setup
|
|
### Setup
|
|
|
|
|
... | @@ -27,16 +27,24 @@ Two ligth sensors were added to the front of the car to use line following up th |
... | @@ -27,16 +27,24 @@ Two ligth sensors were added to the front of the car to use line following up th |
|
|
|
|
|
![Lego car two light sensors attached](https://gitlab.au.dk/rene2014/lego/raw/master/Lesson8/Images/SetupWithLightSensors.jpg)
|
|
![Lego car two light sensors attached](https://gitlab.au.dk/rene2014/lego/raw/master/Lesson8/Images/SetupWithLightSensors.jpg)
|
|
|
|
|
|
### Results
|
|
The line following was implemented with a PID regulator and using the differential driver for the motors.
|
|
|
|
The relevant code is shown in the below snippet:
|
|
|
|
|
|
## Direct Motor Control
|
|
// TODO: Insert code snippet
|
|
|
|
|
|
### Setup
|
|
### Results
|
|
|
|
|
|
// BESKRIV:
|
|
// BESKRIV:
|
|
// Skift fra differential pilot class til regulær motor class
|
|
// Skift fra differential pilot class til regulær motor class
|
|
// Ikke muligt at udføre effektiv PID regulering grundet motorene ikke kan køre baglæns og er lang tid om falde i hastighed
|
|
// Ikke muligt at udføre effektiv PID regulering grundet motorene ikke kan køre baglæns og er lang tid om falde i hastighed
|
|
|
|
|
|
|
|
## Direct Motor Control
|
|
|
|
|
|
|
|
### Setup
|
|
|
|
|
|
|
|
The same physical setup was used on the car.
|
|
|
|
|
|
|
|
|
|
### Results
|
|
### Results
|
|
|
|
|
|
## Conclusion
|
|
## Conclusion
|
... | | ... | |