jessvi created page: Lab6 authored by Jesper Kurtzmann Svith's avatar Jesper Kurtzmann Svith
...@@ -30,7 +30,7 @@ To use two motors to drive the vehicle and apply the same sound value as the pow ...@@ -30,7 +30,7 @@ To use two motors to drive the vehicle and apply the same sound value as the pow
We started by equipping the robot with a sound sensor as seen in the picture below: We started by equipping the robot with a sound sensor as seen in the picture below:
![fig1](http://gitlab.au.dk/uploads/group-22/lego/e8e60b9d15/fig1.jpg) ![IMG_0567 angle 45_smaller](http://gitlab.au.dk/uploads/group-22/lego/a311065595/IMG_0567_angle_45_smaller.jpg)
##### Fig. 1 - robot with microphone ##### Fig. 1 - robot with microphone
Then we configured a SoundVehicle.java class which reads values from the sound sensor and maps the value to both motors on the robot. The code snippet[Fig. 2] below shows how the program reads the sound value and maps it to the motors: Then we configured a SoundVehicle.java class which reads values from the sound sensor and maps the value to both motors on the robot. The code snippet[Fig. 2] below shows how the program reads the sound value and maps it to the motors:
... ...
......